#9871EC#9871EC

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

Color values

HEX#9871EC
RGBrgb(152, 113, 236)
HSLhsl(259, 76%, 68%)
HSVhsv(259, 52%, 93%)
CMYKcmyk(35.6%, 52.1%, 0%, 7.5%)
CIE-LABlab(56.63, 41.86, -56.96)
CIE-LCHlch(56.63, 70.69, 306.31°)
OKLaboklab(64.34% 0.0772 -0.1612)
OKLCHoklch(64.34% 0.179 295.6)
XYZxyz(33.9905, 24.5412, 82.2867)
Luminance0.2454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871EC #C5EC71
analogous
#7187EC #9871EC #D571EC
triadic
#9871EC #EC9871 #71EC98
tetradic
#9871EC #EC7187 #C5EC71 #71ECD5
square
#9871EC #EC7187 #C5EC71 #71ECD5
split-complementary
#9871EC #ECD571 #87EC71
monochromatic
#521BC8 #713BE5 #9871EC #BFA7F3 #E6DDFA

Accessibility & contrast

On white

3.55
#9871EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#9871EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871EC
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871EC#FFFFFF#000000##000000
##9871EC1.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F89F0
Deuteranopia (green-blind)
#4986E9
Tritanopia (blue-blind)
#848AA4
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9871ec;
/* rgb */ color: rgb(152, 113, 236);
/* oklch */ color: oklch(64.3% 0.179 295.6);
Tailwind
colors: {
  custom: {
    50: '#ba9bf3',
    500: '#9871ec',
    950: '#000000',
  },
}
SCSS
$custom: #9871ec;
$custom-light: #ba9bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#9871ec",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 236
  },
  "hsl": {
    "h": 259.024,
    "s": 76.398,
    "l": 68.431
  },
  "oklch": {
    "l": 0.6434,
    "c": 0.17871,
    "h": 295.6
  },
  "luminance": 0.24542
}

Semantic roles & 50–950 ramp

primary
#9871EC
secondary
#E3EFCA
accent
#D90D98
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9871EC

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

Preview Lab → · Contrast checker → · Palette generator →

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