#BA52D1#BA52D1

#BA52D1 is a light, highly saturated purple. Relative luminance 0.211; OKLCH L 62.1% C 0.205 H 320.0°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#BA52D1
RGBrgb(186, 82, 209)
HSLhsl(289, 58%, 57%)
HSVhsv(289, 61%, 82%)
CMYKcmyk(11%, 60.8%, 0%, 18%)
CIE-LABlab(53.04, 60.04, -47.23)
CIE-LCHlch(53.04, 76.39, 321.81°)
OKLaboklab(62.08% 0.1569 -0.1317)
OKLCHoklch(62.08% 0.205 320)
XYZxyz(34.7742, 21.0787, 62.5461)
Luminance0.2108 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52D1 #69D152
analogous
#7B52D1 #BA52D1 #D152A9
triadic
#BA52D1 #D1BA52 #52D1BA
tetradic
#BA52D1 #D17B52 #69D152 #52A9D1
square
#BA52D1 #D17B52 #69D152 #52A9D1
split-complementary
#BA52D1 #A9D152 #52D17B
monochromatic
#732385 #9D30B6 #BA52D1 #CD82DE #E1B3EB

Accessibility & contrast

On white

4.03
#BA52D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#BA52D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52D1
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52D1#FFFFFF#000000##000000
##BA52D11.004.035.225.22
#FFFFFF4.031.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3377D5
Deuteranopia (green-blind)
#5C82CE
Tritanopia (blue-blind)
#BB668A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba52d1;
/* rgb */ color: rgb(186, 82, 209);
/* oklch */ color: oklch(62.1% 0.205 320.0);
Tailwind
colors: {
  custom: {
    50: '#d289df',
    500: '#ba52d1',
    950: '#000000',
  },
}
SCSS
$custom: #ba52d1;
$custom-light: #d289df;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52d1",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 209
  },
  "hsl": {
    "h": 289.134,
    "s": 57.991,
    "l": 57.059
  },
  "oklch": {
    "l": 0.62081,
    "c": 0.20483,
    "h": 320
  },
  "luminance": 0.21077
}

Semantic roles & 50–950 ramp

primary
#BA52D1
secondary
#AFD9A6
accent
#E14763
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA52D1

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

Preview Lab → · Contrast checker → · Palette generator →

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