#9871EE#9871EE

#9871EE is a light, vivid violet. Relative luminance 0.247; OKLCH L 64.5% C 0.181 H 295.2°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#9871EE
RGBrgb(152, 113, 238)
HSLhsl(259, 79%, 69%)
HSVhsv(259, 53%, 93%)
CMYKcmyk(36.1%, 52.5%, 0%, 6.7%)
CIE-LABlab(56.74, 42.38, -57.89)
CIE-LCHlch(56.74, 71.74, 306.21°)
OKLaboklab(64.46% 0.0773 -0.1639)
OKLCHoklch(64.46% 0.181 295.2)
XYZxyz(34.2827, 24.6581, 83.8256)
Luminance0.2466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871EE #C7EE71
analogous
#7189EE #9871EE #D771EE
triadic
#9871EE #EE9871 #71EE98
tetradic
#9871EE #EE7189 #C7EE71 #71EED7
square
#9871EE #EE7189 #C7EE71 #71EED7
split-complementary
#9871EE #EED771 #89EE71
monochromatic
#5118CC #703AE7 #9871EE #C0A8F5 #E7DEFB

Accessibility & contrast

On white

3.54
#9871EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#9871EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871EE
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871EE#FFFFFF#000000##000000
##9871EE1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D89F2
Deuteranopia (green-blind)
#4786EB
Tritanopia (blue-blind)
#838AA5
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9871ee;
/* rgb */ color: rgb(152, 113, 238);
/* oklch */ color: oklch(64.5% 0.181 295.2);
Tailwind
colors: {
  custom: {
    50: '#ba9bf4',
    500: '#9871ee',
    950: '#000000',
  },
}
SCSS
$custom: #9871ee;
$custom-light: #ba9bf4;
$custom-dark: #000000;
JSON
{
  "hex": "#9871ee",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 238
  },
  "hsl": {
    "h": 258.72,
    "s": 78.616,
    "l": 68.824
  },
  "oklch": {
    "l": 0.64463,
    "c": 0.18122,
    "h": 295.2
  },
  "luminance": 0.24659
}

Semantic roles & 50–950 ramp

primary
#9871EE
secondary
#E4F0CB
accent
#DB0B9A
background
#FBF9FF
surface
#F7F2FE
border
#D0CCD6
text
#120E17
muted
#817E85

Preview Lab

Preview with #9871EE

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

Preview Lab → · Contrast checker → · Palette generator →

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