#BA54DC#BA54DC

#BA54DC is a light, highly saturated purple. Relative luminance 0.219; OKLCH L 63.0% C 0.212 H 316.7°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#BA54DC
RGBrgb(186, 84, 220)
HSLhsl(285, 66%, 60%)
HSVhsv(285, 62%, 86%)
CMYKcmyk(15.5%, 61.8%, 0%, 13.7%)
CIE-LABlab(53.97, 61.28, -51.99)
CIE-LCHlch(53.97, 80.36, 319.69°)
OKLaboklab(62.96% 0.1547 -0.1456)
OKLCHoklch(62.96% 0.212 316.7)
XYZxyz(36.3364, 21.9484, 70.0187)
Luminance0.2195 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54DC #76DC54
analogous
#7654DC #BA54DC #DC54BA
triadic
#BA54DC #DCBA54 #54DCBA
tetradic
#BA54DC #DC7654 #76DC54 #54BADC
square
#BA54DC #DC7654 #76DC54 #54BADC
split-complementary
#BA54DC #BADC54 #54DC76
monochromatic
#791F97 #A129CA #BA54DC #CE87E6 #E3BAF1

Accessibility & contrast

On white

3.90
#BA54DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#BA54DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54DC
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54DC#FFFFFF#000000##000000
##BA54DC1.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#287BE0
Deuteranopia (green-blind)
#5684D9
Tritanopia (blue-blind)
#B86C91
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ba54dc;
/* rgb */ color: rgb(186, 84, 220);
/* oklch */ color: oklch(63.0% 0.212 316.7);
Tailwind
colors: {
  custom: {
    50: '#d28ae7',
    500: '#ba54dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba54dc;
$custom-light: #d28ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54dc",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 220
  },
  "hsl": {
    "h": 285,
    "s": 66.019,
    "l": 59.608
  },
  "oklch": {
    "l": 0.62956,
    "c": 0.21241,
    "h": 316.7
  },
  "luminance": 0.21947
}

Semantic roles & 50–950 ramp

primary
#BA54DC
secondary
#B9E0AC
accent
#E93F69
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA54DC

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

Preview Lab → · Contrast checker → · Palette generator →

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