#BA51DB#BA51DB

#BA51DB is a light, highly saturated purple. Relative luminance 0.214; OKLCH L 62.5% C 0.216 H 317.2°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#BA51DB
RGBrgb(186, 81, 219)
HSLhsl(286, 66%, 59%)
HSVhsv(286, 63%, 86%)
CMYKcmyk(15.1%, 63%, 0%, 14.1%)
CIE-LABlab(53.43, 62.43, -52.29)
CIE-LCHlch(53.43, 81.43, 320.05°)
OKLaboklab(62.54% 0.1582 -0.1464)
OKLCHoklch(62.54% 0.216 317.2)
XYZxyz(35.9765, 21.4399, 69.2473)
Luminance0.2144 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51DB #72DB51
analogous
#7551DB #BA51DB #DB51B7
triadic
#BA51DB #DBBA51 #51DBBA
tetradic
#BA51DB #DB7551 #72DB51 #51B7DB
square
#BA51DB #DB7551 #72DB51 #51B7DB
split-complementary
#BA51DB #B7DB51 #51DB75
monochromatic
#771E93 #A029C6 #BA51DB #CE84E5 #E2B6F0

Accessibility & contrast

On white

3.97
#BA51DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#BA51DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51DB
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51DB#FFFFFF#000000##000000
##BA51DB1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2279DF
Deuteranopia (green-blind)
#5483D8
Tritanopia (blue-blind)
#B9698F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba51db;
/* rgb */ color: rgb(186, 81, 219);
/* oklch */ color: oklch(62.5% 0.216 317.2);
Tailwind
colors: {
  custom: {
    50: '#d288e7',
    500: '#ba51db',
    950: '#000000',
  },
}
SCSS
$custom: #ba51db;
$custom-light: #d288e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51db",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 285.652,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.62544,
    "c": 0.21556,
    "h": 317.2
  },
  "luminance": 0.21438
}

Semantic roles & 50–950 ramp

primary
#BA51DB
secondary
#B6DFA9
accent
#E93F68
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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