#9871EA#9871EA

#9871EA is a light, vivid violet. Relative luminance 0.244; OKLCH L 64.2% C 0.176 H 295.9°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#9871EA
RGBrgb(152, 113, 234)
HSLhsl(259, 74%, 68%)
HSVhsv(259, 52%, 92%)
CMYKcmyk(35%, 51.7%, 0%, 8.2%)
CIE-LABlab(56.51, 41.35, -56.02)
CIE-LCHlch(56.51, 69.63, 306.43°)
OKLaboklab(64.22% 0.077 -0.1585)
OKLCHoklch(64.22% 0.176 295.9)
XYZxyz(33.7015, 24.4256, 80.7650)
Luminance0.2443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871EA #C3EA71
analogous
#7186EA #9871EA #D471EA
triadic
#9871EA #EA9871 #71EA98
tetradic
#9871EA #EA7186 #C3EA71 #71EAD4
square
#9871EA #EA7186 #C3EA71 #71EAD4
split-complementary
#9871EA #EAD471 #86EA71
monochromatic
#531DC4 #713CE2 #9871EA #BFA6F2 #E5DCFA

Accessibility & contrast

On white

3.57
#9871EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#9871EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871EA
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871EA#FFFFFF#000000##000000
##9871EA1.003.575.895.89
#FFFFFF3.571.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4188EE
Deuteranopia (green-blind)
#4B86E7
Tritanopia (blue-blind)
#8589A3
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9871ea;
/* rgb */ color: rgb(152, 113, 234);
/* oklch */ color: oklch(64.2% 0.176 295.9);
Tailwind
colors: {
  custom: {
    50: '#ba9bf1',
    500: '#9871ea',
    950: '#000000',
  },
}
SCSS
$custom: #9871ea;
$custom-light: #ba9bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#9871ea",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 259.339,
    "s": 74.233,
    "l": 68.039
  },
  "oklch": {
    "l": 0.64219,
    "c": 0.17619,
    "h": 295.9
  },
  "luminance": 0.24426
}

Semantic roles & 50–950 ramp

primary
#9871EA
secondary
#E2EEC9
accent
#D60F96
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9871EA

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

Preview Lab → · Contrast checker → · Palette generator →

#9871EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva