#BA54DD#BA54DD

#BA54DD is a light, highly saturated purple. Relative luminance 0.220; OKLCH L 63.0% C 0.213 H 316.5°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#BA54DD
RGBrgb(186, 84, 221)
HSLhsl(285, 67%, 60%)
HSVhsv(285, 62%, 87%)
CMYKcmyk(15.8%, 62%, 0%, 13.3%)
CIE-LABlab(54.03, 61.48, -52.46)
CIE-LCHlch(54.03, 80.82, 319.52°)
OKLaboklab(63.02% 0.1547 -0.147)
OKLCHoklch(63.02% 0.213 316.5)
XYZxyz(36.4692, 22.0016, 70.7183)
Luminance0.2200 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54DD #77DD54
analogous
#7654DD #BA54DD #DD54BB
triadic
#BA54DD #DDBA54 #54DDBA
tetradic
#BA54DD #DD7654 #77DD54 #54BBDD
square
#BA54DD #DD7654 #77DD54 #54BBDD
split-complementary
#BA54DD #BBDD54 #54DD76
monochromatic
#791E98 #A228CB #BA54DD #CF87E7 #E3BAF1

Accessibility & contrast

On white

3.89
#BA54DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#BA54DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54DD
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54DD#FFFFFF#000000##000000
##BA54DD1.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#277BE1
Deuteranopia (green-blind)
#5584DA
Tritanopia (blue-blind)
#B86C91
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ba54dd;
/* rgb */ color: rgb(186, 84, 221);
/* oklch */ color: oklch(63.0% 0.213 316.5);
Tailwind
colors: {
  custom: {
    50: '#d28ae8',
    500: '#ba54dd',
    950: '#000000',
  },
}
SCSS
$custom: #ba54dd;
$custom-light: #d28ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54dd",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 221
  },
  "hsl": {
    "h": 284.672,
    "s": 66.829,
    "l": 59.804
  },
  "oklch": {
    "l": 0.63015,
    "c": 0.21336,
    "h": 316.5
  },
  "luminance": 0.22
}

Semantic roles & 50–950 ramp

primary
#BA54DD
secondary
#B9E1AC
accent
#EA3E6A
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA54DD

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

Preview Lab → · Contrast checker → · Palette generator →

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