#BA55DC#BA55DC

#BA55DC is a light, highly saturated purple. Relative luminance 0.221; OKLCH L 63.1% C 0.211 H 316.7°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#BA55DC
RGBrgb(186, 85, 220)
HSLhsl(285, 66%, 60%)
HSVhsv(285, 61%, 86%)
CMYKcmyk(15.5%, 61.4%, 0%, 13.7%)
CIE-LABlab(54.14, 60.83, -51.72)
CIE-LCHlch(54.14, 79.85, 319.62°)
OKLaboklab(63.08% 0.1535 -0.1448)
OKLCHoklch(63.08% 0.211 316.7)
XYZxyz(36.4145, 22.1048, 70.0447)
Luminance0.2210 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA55DC #77DC55
analogous
#7755DC #BA55DC #DC55BB
triadic
#BA55DC #DCBA55 #55DCBA
tetradic
#BA55DC #DC7755 #77DC55 #55BBDC
square
#BA55DC #DC7755 #77DC55 #55BBDC
split-complementary
#BA55DC #BBDC55 #55DC77
monochromatic
#791F97 #A22ACA #BA55DC #CF88E6 #E3BBF1

Accessibility & contrast

On white

3.87
#BA55DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#BA55DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA55DC
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA55DC#FFFFFF#000000##000000
##BA55DC1.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B7BE0
Deuteranopia (green-blind)
#5784D9
Tritanopia (blue-blind)
#B86D91
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ba55dc;
/* rgb */ color: rgb(186, 85, 220);
/* oklch */ color: oklch(63.1% 0.211 316.7);
Tailwind
colors: {
  custom: {
    50: '#d28be7',
    500: '#ba55dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba55dc;
$custom-light: #d28be7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba55dc",
  "rgb": {
    "r": 186,
    "g": 85,
    "b": 220
  },
  "hsl": {
    "h": 284.889,
    "s": 65.854,
    "l": 59.804
  },
  "oklch": {
    "l": 0.63077,
    "c": 0.21102,
    "h": 316.7
  },
  "luminance": 0.22103
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA55DC

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

Preview Lab → · Contrast checker → · Palette generator →

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