#9871EB#9871EB

#9871EB is a light, vivid violet. Relative luminance 0.245; OKLCH L 64.3% C 0.177 H 295.7°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#9871EB
RGBrgb(152, 113, 235)
HSLhsl(259, 75%, 68%)
HSVhsv(259, 52%, 92%)
CMYKcmyk(35.3%, 51.9%, 0%, 7.8%)
CIE-LABlab(56.57, 41.60, -56.49)
CIE-LCHlch(56.57, 70.16, 306.37°)
OKLaboklab(64.28% 0.0771 -0.1598)
OKLCHoklch(64.28% 0.177 295.7)
XYZxyz(33.8456, 24.4832, 81.5237)
Luminance0.2448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871EB #C4EB71
analogous
#7187EB #9871EB #D571EB
triadic
#9871EB #EB9871 #71EB98
tetradic
#9871EB #EB7187 #C4EB71 #71EBD5
square
#9871EB #EB7187 #C4EB71 #71EBD5
split-complementary
#9871EB #EBD571 #87EB71
monochromatic
#521CC6 #713BE3 #9871EB #BFA7F3 #E6DCFA

Accessibility & contrast

On white

3.56
#9871EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#9871EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871EB
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871EB#FFFFFF#000000##000000
##9871EB1.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4089EF
Deuteranopia (green-blind)
#4A86E8
Tritanopia (blue-blind)
#8589A3
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9871eb;
/* rgb */ color: rgb(152, 113, 235);
/* oklch */ color: oklch(64.3% 0.177 295.7);
Tailwind
colors: {
  custom: {
    50: '#ba9bf2',
    500: '#9871eb',
    950: '#000000',
  },
}
SCSS
$custom: #9871eb;
$custom-light: #ba9bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#9871eb",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 259.18,
    "s": 75.309,
    "l": 68.235
  },
  "oklch": {
    "l": 0.64279,
    "c": 0.17745,
    "h": 295.7
  },
  "luminance": 0.24484
}

Semantic roles & 50–950 ramp

primary
#9871EB
secondary
#E3EEC9
accent
#D70E97
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9871EB

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

Preview Lab → · Contrast checker → · Palette generator →

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