#BA52D9#BA52D9

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

Color values

HEX#BA52D9
RGBrgb(186, 82, 217)
HSLhsl(286, 64%, 59%)
HSVhsv(286, 62%, 85%)
CMYKcmyk(14.3%, 62.2%, 0%, 14.9%)
CIE-LABlab(53.48, 61.59, -51.08)
CIE-LCHlch(53.48, 80.02, 320.33°)
OKLaboklab(62.54% 0.157 -0.1429)
OKLCHoklch(62.54% 0.212 317.7)
XYZxyz(35.7896, 21.4849, 67.8939)
Luminance0.2148 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52D9 #71D952
analogous
#7652D9 #BA52D9 #D952B4
triadic
#BA52D9 #D9BA52 #52D9BA
tetradic
#BA52D9 #D97652 #71D952 #52B4D9
square
#BA52D9 #D97652 #71D952 #52B4D9
split-complementary
#BA52D9 #B4D952 #52D976
monochromatic
#772091 #A02BC3 #BA52D9 #CE84E4 #E2B6EF

Accessibility & contrast

On white

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

On black

5.30
#BA52D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52D9
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52D9#FFFFFF#000000##000000
##BA52D91.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2879DD
Deuteranopia (green-blind)
#5783D6
Tritanopia (blue-blind)
#B9698E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba52d9;
/* rgb */ color: rgb(186, 82, 217);
/* oklch */ color: oklch(62.5% 0.212 317.7);
Tailwind
colors: {
  custom: {
    50: '#d289e5',
    500: '#ba52d9',
    950: '#000000',
  },
}
SCSS
$custom: #ba52d9;
$custom-light: #d289e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52d9",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 217
  },
  "hsl": {
    "h": 286.222,
    "s": 63.981,
    "l": 58.627
  },
  "oklch": {
    "l": 0.62543,
    "c": 0.21232,
    "h": 317.7
  },
  "luminance": 0.21483
}

Semantic roles & 50–950 ramp

primary
#BA52D9
secondary
#B5DEA9
accent
#E74167
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA52D9

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

Preview Lab → · Contrast checker → · Palette generator →

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