#BA51E4#BA51E4

#BA51E4 is a light, highly saturated purple. Relative luminance 0.219; OKLCH L 63.1% C 0.224 H 314.8°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#BA51E4
RGBrgb(186, 81, 228)
HSLhsl(283, 73%, 61%)
HSVhsv(283, 64%, 89%)
CMYKcmyk(18.4%, 64.5%, 0%, 10.6%)
CIE-LABlab(53.95, 64.21, -56.54)
CIE-LCHlch(53.95, 85.56, 318.63°)
OKLaboklab(63.09% 0.158 -0.1589)
OKLCHoklch(63.09% 0.224 314.8)
XYZxyz(37.1934, 21.9266, 75.6568)
Luminance0.2193 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51E4 #7BE451
analogous
#7051E4 #BA51E4 #E451C4
triadic
#BA51E4 #E4BA51 #51E4BA
tetradic
#BA51E4 #E47051 #7BE451 #51C4E4
square
#BA51E4 #E47051 #7BE451 #51C4E4
split-complementary
#BA51E4 #C4E451 #51E470
monochromatic
#7B19A2 #A321D7 #BA51E4 #CF86EC #E4BBF4

Accessibility & contrast

On white

3.90
#BA51E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#BA51E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51E4
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51E4#FFFFFF#000000##000000
##BA51E41.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#087BE8
Deuteranopia (green-blind)
#4D84E1
Tritanopia (blue-blind)
#B76D94
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ba51e4;
/* rgb */ color: rgb(186, 81, 228);
/* oklch */ color: oklch(63.1% 0.224 314.8);
Tailwind
colors: {
  custom: {
    50: '#d289ed',
    500: '#ba51e4',
    950: '#000000',
  },
}
SCSS
$custom: #ba51e4;
$custom-light: #d289ed;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51e4",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 282.857,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.63088,
    "c": 0.22405,
    "h": 314.8
  },
  "luminance": 0.21925
}

Semantic roles & 50–950 ramp

primary
#BA51E4
secondary
#BCE4AC
accent
#D51049
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BA51E4

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

Preview Lab → · Contrast checker → · Palette generator →

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