#BA51E8#BA51E8

#BA51E8 is a light, highly saturated purple. Relative luminance 0.222; OKLCH L 63.3% C 0.228 H 313.8°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#BA51E8
RGBrgb(186, 81, 232)
HSLhsl(282, 77%, 61%)
HSVhsv(282, 65%, 91%)
CMYKcmyk(19.8%, 65.1%, 0%, 9%)
CIE-LABlab(54.19, 65.02, -58.41)
CIE-LCHlch(54.19, 87.40, 318.06°)
OKLaboklab(63.34% 0.1578 -0.1644)
OKLCHoklch(63.34% 0.228 313.8)
XYZxyz(37.7551, 22.1513, 78.6151)
Luminance0.2215 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51E8 #7FE851
analogous
#6F51E8 #BA51E8 #E851CB
triadic
#BA51E8 #E8BA51 #51E8BA
tetradic
#BA51E8 #E86F51 #7FE851 #51CBE8
square
#BA51E8 #E86F51 #7FE851 #51CBE8
split-complementary
#BA51E8 #CBE851 #51E86F
monochromatic
#7C16A8 #A41DDE #BA51E8 #CF87EF #E5BDF6

Accessibility & contrast

On white

3.87
#BA51E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#BA51E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51E8
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51E8#FFFFFF#000000##000000
##BA51E81.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CED
Deuteranopia (green-blind)
#4984E4
Tritanopia (blue-blind)
#B66E96
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ba51e8;
/* rgb */ color: rgb(186, 81, 232);
/* oklch */ color: oklch(63.3% 0.228 313.8);
Tailwind
colors: {
  custom: {
    50: '#d389f0',
    500: '#ba51e8',
    950: '#000000',
  },
}
SCSS
$custom: #ba51e8;
$custom-light: #d389f0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51e8",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 281.722,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.63336,
    "c": 0.22784,
    "h": 313.8
  },
  "luminance": 0.2215
}

Semantic roles & 50–950 ramp

primary
#BA51E8
secondary
#BFE7AE
accent
#D90D4B
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA51E8

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

Preview Lab → · Contrast checker → · Palette generator →

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