#BA52DC#BA52DC

#BA52DC is a light, highly saturated purple. Relative luminance 0.216; OKLCH L 62.7% C 0.215 H 316.9°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#BA52DC
RGBrgb(186, 82, 220)
HSLhsl(285, 66%, 59%)
HSVhsv(285, 63%, 86%)
CMYKcmyk(15.5%, 62.7%, 0%, 13.7%)
CIE-LABlab(53.65, 62.18, -52.51)
CIE-LCHlch(53.65, 81.39, 319.82°)
OKLaboklab(62.72% 0.157 -0.1471)
OKLCHoklch(62.72% 0.215 316.9)
XYZxyz(36.1834, 21.6424, 69.9677)
Luminance0.2164 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52DC #74DC52
analogous
#7552DC #BA52DC #DC52B9
triadic
#BA52DC #DCBA52 #52DCBA
tetradic
#BA52DC #DC7552 #74DC52 #52B9DC
square
#BA52DC #DC7552 #74DC52 #52B9DC
split-complementary
#BA52DC #B9DC52 #52DC75
monochromatic
#781E95 #A129C8 #BA52DC #CE85E6 #E3B8F1

Accessibility & contrast

On white

3.94
#BA52DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#BA52DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52DC
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52DC#FFFFFF#000000##000000
##BA52DC1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#237AE0
Deuteranopia (green-blind)
#5583D9
Tritanopia (blue-blind)
#B86B90
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba52dc;
/* rgb */ color: rgb(186, 82, 220);
/* oklch */ color: oklch(62.7% 0.215 316.9);
Tailwind
colors: {
  custom: {
    50: '#d289e7',
    500: '#ba52dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba52dc;
$custom-light: #d289e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52dc",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 220
  },
  "hsl": {
    "h": 285.217,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.6272,
    "c": 0.21515,
    "h": 316.9
  },
  "luminance": 0.21641
}

Semantic roles & 50–950 ramp

primary
#BA52DC
secondary
#B7E0AA
accent
#E93F69
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA52DC

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

Preview Lab → · Contrast checker → · Palette generator →

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