#BA52DF#BA52DF

#BA52DF is a light, highly saturated purple. Relative luminance 0.218; OKLCH L 62.9% C 0.218 H 316.1°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#BA52DF
RGBrgb(186, 82, 223)
HSLhsl(284, 69%, 60%)
HSVhsv(284, 63%, 87%)
CMYKcmyk(16.6%, 63.2%, 0%, 12.5%)
CIE-LABlab(53.82, 62.77, -53.93)
CIE-LCHlch(53.82, 82.76, 319.33°)
OKLaboklab(62.9% 0.157 -0.1512)
OKLCHoklch(62.9% 0.218 316.1)
XYZxyz(36.5842, 21.8027, 72.0790)
Luminance0.2180 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52DF #77DF52
analogous
#7352DF #BA52DF #DF52BE
triadic
#BA52DF #DFBA52 #52DFBA
tetradic
#BA52DF #DF7352 #77DF52 #52BEDF
square
#BA52DF #DF7352 #77DF52 #52BEDF
split-complementary
#BA52DF #BEDF52 #52DF73
monochromatic
#791D9A #A226CE #BA52DF #CF86E9 #E3B9F2

Accessibility & contrast

On white

3.92
#BA52DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#BA52DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52DF
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52DF#FFFFFF#000000##000000
##BA52DF1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D7AE3
Deuteranopia (green-blind)
#5284DC
Tritanopia (blue-blind)
#B86C91
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ba52df;
/* rgb */ color: rgb(186, 82, 223);
/* oklch */ color: oklch(62.9% 0.218 316.1);
Tailwind
colors: {
  custom: {
    50: '#d289ea',
    500: '#ba52df',
    950: '#000000',
  },
}
SCSS
$custom: #ba52df;
$custom-light: #d289ea;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52df",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 223
  },
  "hsl": {
    "h": 284.255,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.62899,
    "c": 0.21798,
    "h": 316.1
  },
  "luminance": 0.21801
}

Semantic roles & 50–950 ramp

primary
#BA52DF
secondary
#B9E2AB
accent
#EC3C6A
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA52DF

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

Preview Lab → · Contrast checker → · Palette generator →

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