#BA52DB#BA52DB

#BA52DB is a light, highly saturated purple. Relative luminance 0.216; OKLCH L 62.7% C 0.214 H 317.1°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#BA52DB
RGBrgb(186, 82, 219)
HSLhsl(286, 66%, 59%)
HSVhsv(286, 63%, 86%)
CMYKcmyk(15.1%, 62.6%, 0%, 14.1%)
CIE-LABlab(53.59, 61.98, -52.03)
CIE-LCHlch(53.59, 80.93, 319.99°)
OKLaboklab(62.66% 0.157 -0.1457)
OKLCHoklch(62.66% 0.214 317.1)
XYZxyz(36.0513, 21.5896, 69.2723)
Luminance0.2159 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52DB #73DB52
analogous
#7652DB #BA52DB #DB52B8
triadic
#BA52DB #DBBA52 #52DBBA
tetradic
#BA52DB #DB7652 #73DB52 #52B8DB
square
#BA52DB #DB7652 #73DB52 #52B8DB
split-complementary
#BA52DB #B8DB52 #52DB76
monochromatic
#781F94 #A129C6 #BA52DB #CE85E6 #E2B7F0

Accessibility & contrast

On white

3.95
#BA52DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#BA52DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52DB
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52DB#FFFFFF#000000##000000
##BA52DB1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2579DF
Deuteranopia (green-blind)
#5583D8
Tritanopia (blue-blind)
#B96A8F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba52db;
/* rgb */ color: rgb(186, 82, 219);
/* oklch */ color: oklch(62.7% 0.214 317.1);
Tailwind
colors: {
  custom: {
    50: '#d289e7',
    500: '#ba52db',
    950: '#000000',
  },
}
SCSS
$custom: #ba52db;
$custom-light: #d289e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52db",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 219
  },
  "hsl": {
    "h": 285.547,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.62661,
    "c": 0.2142,
    "h": 317.1
  },
  "luminance": 0.21588
}

Semantic roles & 50–950 ramp

primary
#BA52DB
secondary
#B6DFAA
accent
#E93F68
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA52DB

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

Preview Lab → · Contrast checker → · Palette generator →

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