#BA51E9#BA51E9

#BA51E9 is a light, highly saturated purple. Relative luminance 0.222; OKLCH L 63.4% C 0.229 H 313.6°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#BA51E9
RGBrgb(186, 81, 233)
HSLhsl(281, 78%, 62%)
HSVhsv(281, 65%, 91%)
CMYKcmyk(20.2%, 65.2%, 0%, 8.6%)
CIE-LABlab(54.25, 65.22, -58.88)
CIE-LCHlch(54.25, 87.86, 317.93°)
OKLaboklab(63.4% 0.1577 -0.1657)
OKLCHoklch(63.4% 0.229 313.6)
XYZxyz(37.8976, 22.2083, 79.3653)
Luminance0.2221 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51E9 #80E951
analogous
#6E51E9 #BA51E9 #E951CC
triadic
#BA51E9 #E9BA51 #51E9BA
tetradic
#BA51E9 #E96E51 #80E951 #51CCE9
square
#BA51E9 #E96E51 #80E951 #51CCE9
split-complementary
#BA51E9 #CCE951 #51E96E
monochromatic
#7C16AA #A41CE0 #BA51E9 #D087F0 #E5BEF7

Accessibility & contrast

On white

3.86
#BA51E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#BA51E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51E9
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51E9#FFFFFF#000000##000000
##BA51E91.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CEE
Deuteranopia (green-blind)
#4884E5
Tritanopia (blue-blind)
#B56F96
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ba51e9;
/* rgb */ color: rgb(186, 81, 233);
/* oklch */ color: oklch(63.4% 0.229 313.6);
Tailwind
colors: {
  custom: {
    50: '#d389f1',
    500: '#ba51e9',
    950: '#000000',
  },
}
SCSS
$custom: #ba51e9;
$custom-light: #d389f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51e9",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 233
  },
  "hsl": {
    "h": 281.447,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.63398,
    "c": 0.22879,
    "h": 313.6
  },
  "luminance": 0.22207
}

Semantic roles & 50–950 ramp

primary
#BA51E9
secondary
#C0E7AF
accent
#DA0C4B
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA51E9

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

Preview Lab → · Contrast checker → · Palette generator →

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