#BA59DC#BA59DC

#BA59DC is a light, highly saturated purple. Relative luminance 0.228; OKLCH L 63.6% C 0.205 H 316.4°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#BA59DC
RGBrgb(186, 89, 220)
HSLhsl(284, 65%, 61%)
HSVhsv(284, 60%, 86%)
CMYKcmyk(15.5%, 59.5%, 0%, 13.7%)
CIE-LABlab(54.82, 58.98, -50.64)
CIE-LCHlch(54.82, 77.74, 319.35°)
OKLaboklab(63.57% 0.1487 -0.1417)
OKLCHoklch(63.57% 0.205 316.4)
XYZxyz(36.7384, 22.7525, 70.1527)
Luminance0.2275 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA59DC #7BDC59
analogous
#7859DC #BA59DC #DC59BD
triadic
#BA59DC #DCBA59 #59DCBA
tetradic
#BA59DC #DC7859 #7BDC59 #59BDDC
square
#BA59DC #DC7859 #7BDC59 #59BDDC
split-complementary
#BA59DC #BDDC59 #59DC78
monochromatic
#7B209A #A32BCD #BA59DC #CF8CE7 #E4BEF1

Accessibility & contrast

On white

3.78
#BA59DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#BA59DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA59DC
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA59DC#FFFFFF#000000##000000
##BA59DC1.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#337DE0
Deuteranopia (green-blind)
#5A86D9
Tritanopia (blue-blind)
#B86F92
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba59dc;
/* rgb */ color: rgb(186, 89, 220);
/* oklch */ color: oklch(63.6% 0.205 316.4);
Tailwind
colors: {
  custom: {
    50: '#d28de7',
    500: '#ba59dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba59dc;
$custom-light: #d28de7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba59dc",
  "rgb": {
    "r": 186,
    "g": 89,
    "b": 220
  },
  "hsl": {
    "h": 284.427,
    "s": 65.174,
    "l": 60.588
  },
  "oklch": {
    "l": 0.63569,
    "c": 0.20537,
    "h": 316.4
  },
  "luminance": 0.22751
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA59DC

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

Preview Lab → · Contrast checker → · Palette generator →

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