#BA59DB#BA59DB

#BA59DB is a light, highly saturated purple. Relative luminance 0.227; OKLCH L 63.5% C 0.204 H 316.7°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#BA59DB
RGBrgb(186, 89, 219)
HSLhsl(285, 64%, 60%)
HSVhsv(285, 59%, 86%)
CMYKcmyk(15.1%, 59.4%, 0%, 14.1%)
CIE-LABlab(54.76, 58.78, -50.16)
CIE-LCHlch(54.76, 77.27, 319.52°)
OKLaboklab(63.51% 0.1486 -0.1403)
OKLCHoklch(63.51% 0.204 316.7)
XYZxyz(36.6064, 22.6997, 69.4573)
Luminance0.2270 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA59DB #7ADB59
analogous
#7959DB #BA59DB #DB59BB
triadic
#BA59DB #DBBA59 #59DBBA
tetradic
#BA59DB #DB7959 #7ADB59 #59BBDB
square
#BA59DB #DB7959 #7ADB59 #59BBDB
split-complementary
#BA59DB #BBDB59 #59DB79
monochromatic
#7A2199 #A22CCB #BA59DB #CF8BE6 #E4BEF1

Accessibility & contrast

On white

3.79
#BA59DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#BA59DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA59DB
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA59DB#FFFFFF#000000##000000
##BA59DB1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#347DDF
Deuteranopia (green-blind)
#5B86D8
Tritanopia (blue-blind)
#B86F92
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba59db;
/* rgb */ color: rgb(186, 89, 219);
/* oklch */ color: oklch(63.5% 0.204 316.7);
Tailwind
colors: {
  custom: {
    50: '#d28de7',
    500: '#ba59db',
    950: '#000000',
  },
}
SCSS
$custom: #ba59db;
$custom-light: #d28de7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba59db",
  "rgb": {
    "r": 186,
    "g": 89,
    "b": 219
  },
  "hsl": {
    "h": 284.769,
    "s": 64.356,
    "l": 60.392
  },
  "oklch": {
    "l": 0.63512,
    "c": 0.20438,
    "h": 316.7
  },
  "luminance": 0.22698
}

Semantic roles & 50–950 ramp

primary
#BA59DB
secondary
#BCE1AF
accent
#CC1947
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140D16
muted
#837D84

Preview Lab

Preview with #BA59DB

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

Preview Lab → · Contrast checker → · Palette generator →

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