#BA52DE#BA52DE

#BA52DE is a light, highly saturated purple. Relative luminance 0.217; OKLCH L 62.8% C 0.217 H 316.3°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#BA52DE
RGBrgb(186, 82, 222)
HSLhsl(285, 68%, 60%)
HSVhsv(285, 63%, 87%)
CMYKcmyk(16.2%, 63.1%, 0%, 12.9%)
CIE-LABlab(53.76, 62.58, -53.46)
CIE-LCHlch(53.76, 82.30, 319.49°)
OKLaboklab(62.84% 0.157 -0.1499)
OKLCHoklch(62.84% 0.217 316.3)
XYZxyz(36.4498, 21.7490, 71.3710)
Luminance0.2175 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52DE #76DE52
analogous
#7452DE #BA52DE #DE52BC
triadic
#BA52DE #DEBA52 #52DEBA
tetradic
#BA52DE #DE7452 #76DE52 #52BCDE
square
#BA52DE #DE7452 #76DE52 #52BCDE
split-complementary
#BA52DE #BCDE52 #52DE74
monochromatic
#791D99 #A127CC #BA52DE #CE85E8 #E3B9F2

Accessibility & contrast

On white

3.93
#BA52DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#BA52DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52DE
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52DE#FFFFFF#000000##000000
##BA52DE1.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F7AE2
Deuteranopia (green-blind)
#5384DB
Tritanopia (blue-blind)
#B86B91
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba52de;
/* rgb */ color: rgb(186, 82, 222);
/* oklch */ color: oklch(62.8% 0.217 316.3);
Tailwind
colors: {
  custom: {
    50: '#d289e9',
    500: '#ba52de',
    950: '#000000',
  },
}
SCSS
$custom: #ba52de;
$custom-light: #d289e9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52de",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 222
  },
  "hsl": {
    "h": 284.571,
    "s": 67.961,
    "l": 59.608
  },
  "oklch": {
    "l": 0.62839,
    "c": 0.21704,
    "h": 316.3
  },
  "luminance": 0.21748
}

Semantic roles & 50–950 ramp

primary
#BA52DE
secondary
#B9E1AB
accent
#EB3D6A
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA52DE

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

Preview Lab → · Contrast checker → · Palette generator →

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