#BA52D2#BA52D2

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

Color values

HEX#BA52D2
RGBrgb(186, 82, 210)
HSLhsl(289, 59%, 57%)
HSVhsv(289, 61%, 82%)
CMYKcmyk(11.4%, 61%, 0%, 17.6%)
CIE-LABlab(53.09, 60.23, -47.71)
CIE-LCHlch(53.09, 76.84, 321.62°)
OKLaboklab(62.14% 0.1569 -0.1331)
OKLCHoklch(62.14% 0.206 319.7)
XYZxyz(34.8984, 21.1284, 63.2002)
Luminance0.2113 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52D2 #6AD252
analogous
#7A52D2 #BA52D2 #D252AA
triadic
#BA52D2 #D2BA52 #52D2BA
tetradic
#BA52D2 #D27A52 #6AD252 #52AAD2
square
#BA52D2 #D27A52 #6AD252 #52AAD2
split-complementary
#BA52D2 #AAD252 #52D27A
monochromatic
#742387 #9E30B7 #BA52D2 #CD83DF #E1B3EB

Accessibility & contrast

On white

4.02
#BA52D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#BA52D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52D2
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52D2#FFFFFF#000000##000000
##BA52D21.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3278D6
Deuteranopia (green-blind)
#5C82CF
Tritanopia (blue-blind)
#BB678B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba52d2;
/* rgb */ color: rgb(186, 82, 210);
/* oklch */ color: oklch(62.1% 0.206 319.7);
Tailwind
colors: {
  custom: {
    50: '#d289e0',
    500: '#ba52d2',
    950: '#000000',
  },
}
SCSS
$custom: #ba52d2;
$custom-light: #d289e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52d2",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 210
  },
  "hsl": {
    "h": 288.75,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.62138,
    "c": 0.20576,
    "h": 319.7
  },
  "luminance": 0.21127
}

Semantic roles & 50–950 ramp

primary
#BA52D2
secondary
#B0DAA6
accent
#E24663
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA52D2

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

Preview Lab → · Contrast checker → · Palette generator →

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