#BA54D4#BA54D4

#BA54D4 is a light, highly saturated purple. Relative luminance 0.215; OKLCH L 62.5% C 0.205 H 319.0°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#BA54D4
RGBrgb(186, 84, 212)
HSLhsl(288, 60%, 58%)
HSVhsv(288, 60%, 83%)
CMYKcmyk(12.3%, 60.4%, 0%, 16.9%)
CIE-LABlab(53.53, 59.71, -48.15)
CIE-LCHlch(53.53, 76.71, 321.12°)
OKLaboklab(62.49% 0.1546 -0.1344)
OKLCHoklch(62.49% 0.205 319)
XYZxyz(35.3021, 21.5347, 64.5717)
Luminance0.2153 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54D4 #6ED454
analogous
#7A54D4 #BA54D4 #D454AE
triadic
#BA54D4 #D4BA54 #54D4BA
tetradic
#BA54D4 #D47A54 #6ED454 #54AED4
square
#BA54D4 #D47A54 #6ED454 #54AED4
split-complementary
#BA54D4 #AED454 #54D47A
monochromatic
#76238B #9F2FBC #BA54D4 #CE85E0 #E1B6ED

Accessibility & contrast

On white

3.96
#BA54D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#BA54D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54D4
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54D4#FFFFFF#000000##000000
##BA54D41.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3379D8
Deuteranopia (green-blind)
#5C83D1
Tritanopia (blue-blind)
#BA698C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba54d4;
/* rgb */ color: rgb(186, 84, 212);
/* oklch */ color: oklch(62.5% 0.205 319.0);
Tailwind
colors: {
  custom: {
    50: '#d28ae2',
    500: '#ba54d4',
    950: '#000000',
  },
}
SCSS
$custom: #ba54d4;
$custom-light: #d28ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54d4",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 212
  },
  "hsl": {
    "h": 287.813,
    "s": 59.813,
    "l": 58.039
  },
  "oklch": {
    "l": 0.62493,
    "c": 0.20482,
    "h": 319
  },
  "luminance": 0.21533
}

Semantic roles & 50–950 ramp

primary
#BA54D4
secondary
#B3DBA8
accent
#E34565
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA54D4

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#BA54D4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva