#BA51DC#BA51DC

#BA51DC is a light, highly saturated purple. Relative luminance 0.215; OKLCH L 62.6% C 0.216 H 316.9°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#BA51DC
RGBrgb(186, 81, 220)
HSLhsl(285, 67%, 59%)
HSVhsv(285, 63%, 86%)
CMYKcmyk(15.5%, 63.2%, 0%, 13.7%)
CIE-LABlab(53.48, 62.62, -52.77)
CIE-LCHlch(53.48, 81.89, 319.88°)
OKLaboklab(62.6% 0.1582 -0.1478)
OKLCHoklch(62.6% 0.217 316.9)
XYZxyz(36.1085, 21.4927, 69.9427)
Luminance0.2149 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51DC #73DC51
analogous
#7551DC #BA51DC #DC51B8
triadic
#BA51DC #DCBA51 #51DCBA
tetradic
#BA51DC #DC7551 #73DC51 #51B8DC
square
#BA51DC #DC7551 #73DC51 #51B8DC
split-complementary
#BA51DC #B8DC51 #51DC75
monochromatic
#781E95 #A128C8 #BA51DC #CE84E6 #E2B7F0

Accessibility & contrast

On white

3.96
#BA51DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#BA51DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51DC
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51DC#FFFFFF#000000##000000
##BA51DC1.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2079E0
Deuteranopia (green-blind)
#5483D9
Tritanopia (blue-blind)
#B86A8F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba51dc;
/* rgb */ color: rgb(186, 81, 220);
/* oklch */ color: oklch(62.6% 0.216 316.9);
Tailwind
colors: {
  custom: {
    50: '#d288e7',
    500: '#ba51dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba51dc;
$custom-light: #d288e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51dc",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 285.324,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.62604,
    "c": 0.2165,
    "h": 316.9
  },
  "luminance": 0.21491
}

Semantic roles & 50–950 ramp

primary
#BA51DC
secondary
#B6E0A9
accent
#E93E68
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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