#BA52E2#BA52E2

#BA52E2 is a light, highly saturated purple. Relative luminance 0.220; OKLCH L 63.1% C 0.221 H 315.3°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#BA52E2
RGBrgb(186, 82, 226)
HSLhsl(283, 71%, 60%)
HSVhsv(283, 64%, 89%)
CMYKcmyk(17.7%, 63.7%, 0%, 11.4%)
CIE-LABlab(53.99, 63.37, -55.35)
CIE-LCHlch(53.99, 84.14, 318.87°)
OKLaboklab(63.08% 0.1569 -0.1554)
OKLCHoklch(63.08% 0.221 315.3)
XYZxyz(36.9923, 21.9660, 74.2280)
Luminance0.2197 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52E2 #7AE252
analogous
#7252E2 #BA52E2 #E252C2
triadic
#BA52E2 #E2BA52 #52E2BA
tetradic
#BA52E2 #E27252 #7AE252 #52C2E2
square
#BA52E2 #E27252 #7AE252 #52C2E2
split-complementary
#BA52E2 #C2E252 #52E272
monochromatic
#7A1B9F #A223D3 #BA52E2 #CF86EB #E4BBF4

Accessibility & contrast

On white

3.89
#BA52E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#BA52E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52E2
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52E2#FFFFFF#000000##000000
##BA52E21.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#167BE6
Deuteranopia (green-blind)
#5084DF
Tritanopia (blue-blind)
#B76D93
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ba52e2;
/* rgb */ color: rgb(186, 82, 226);
/* oklch */ color: oklch(63.1% 0.221 315.3);
Tailwind
colors: {
  custom: {
    50: '#d289ec',
    500: '#ba52e2',
    950: '#000000',
  },
}
SCSS
$custom: #ba52e2;
$custom-light: #d289ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52e2",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 226
  },
  "hsl": {
    "h": 283.333,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.6308,
    "c": 0.22083,
    "h": 315.3
  },
  "luminance": 0.21965
}

Semantic roles & 50–950 ramp

primary
#BA52E2
secondary
#BCE3AC
accent
#D31248
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BA52E2

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

Preview Lab → · Contrast checker → · Palette generator →

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