#BA51DE#BA51DE

#BA51DE is a light, highly saturated purple. Relative luminance 0.216; OKLCH L 62.7% C 0.218 H 316.4°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#BA51DE
RGBrgb(186, 81, 222)
HSLhsl(285, 68%, 59%)
HSVhsv(285, 64%, 87%)
CMYKcmyk(16.2%, 63.5%, 0%, 12.9%)
CIE-LABlab(53.60, 63.02, -53.71)
CIE-LCHlch(53.60, 82.81, 319.56°)
OKLaboklab(62.72% 0.1581 -0.1506)
OKLCHoklch(62.72% 0.218 316.4)
XYZxyz(36.3750, 21.5992, 71.3461)
Luminance0.2160 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51DE #75DE51
analogous
#7451DE #BA51DE #DE51BC
triadic
#BA51DE #DEBA51 #51DEBA
tetradic
#BA51DE #DE7451 #75DE51 #51BCDE
square
#BA51DE #DE7451 #75DE51 #51BCDE
split-complementary
#BA51DE #BCDE51 #51DE74
monochromatic
#781D98 #A127CB #BA51DE #CE84E8 #E3B8F2

Accessibility & contrast

On white

3.95
#BA51DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#BA51DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51DE
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51DE#FFFFFF#000000##000000
##BA51DE1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C7AE2
Deuteranopia (green-blind)
#5283DB
Tritanopia (blue-blind)
#B86B91
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba51de;
/* rgb */ color: rgb(186, 81, 222);
/* oklch */ color: oklch(62.7% 0.218 316.4);
Tailwind
colors: {
  custom: {
    50: '#d288e9',
    500: '#ba51de',
    950: '#000000',
  },
}
SCSS
$custom: #ba51de;
$custom-light: #d288e9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51de",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 222
  },
  "hsl": {
    "h": 284.681,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.62723,
    "c": 0.21838,
    "h": 316.4
  },
  "luminance": 0.21598
}

Semantic roles & 50–950 ramp

primary
#BA51DE
secondary
#B8E1AA
accent
#EB3D69
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA51DE

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

Preview Lab → · Contrast checker → · Palette generator →

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