#987EE9#987EE9

#987EE9 is a light, vivid violet. Relative luminance 0.275; OKLCH L 66.4% C 0.155 H 292.9°. Best body text is #000000 at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#987EE9
RGBrgb(152, 126, 233)
HSLhsl(255, 71%, 70%)
HSVhsv(255, 46%, 91%)
CMYKcmyk(34.8%, 45.9%, 0%, 8.6%)
CIE-LABlab(59.42, 33.70, -50.84)
CIE-LCHlch(59.42, 61.00, 303.54°)
OKLaboklab(66.37% 0.0604 -0.1433)
OKLCHoklch(66.37% 0.155 292.9)
XYZxyz(35.1139, 27.4796, 80.5291)
Luminance0.2748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EE9 #CFE97E
analogous
#7E9AE9 #987EE9 #CD7EE9
triadic
#987EE9 #E9987E #7EE998
tetradic
#987EE9 #E97E9A #CFE97E #7EE9CD
square
#987EE9 #E97E9A #CFE97E #7EE9CD
split-complementary
#987EE9 #E9CD7E #9AE97E
monochromatic
#4B22CA #6E4AE0 #987EE9 #C2B2F2 #EAE5FB

Accessibility & contrast

On white

3.23
#987EE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.50
#987EE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EE9
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EE9#FFFFFF#000000##000000
##987EE91.003.236.506.50
#FFFFFF3.231.0021.0021.00
#0000006.5021.001.001.00
##0000006.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5990ED
Deuteranopia (green-blind)
#5D8DE6
Tritanopia (blue-blind)
#8493A8
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987ee9;
/* rgb */ color: rgb(152, 126, 233);
/* oklch */ color: oklch(66.4% 0.155 292.9);
Tailwind
colors: {
  custom: {
    50: '#b9a3f0',
    500: '#987ee9',
    950: '#000000',
  },
}
SCSS
$custom: #987ee9;
$custom-light: #b9a3f0;
$custom-dark: #000000;
JSON
{
  "hex": "#987ee9",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 233
  },
  "hsl": {
    "h": 254.579,
    "s": 70.861,
    "l": 70.392
  },
  "oklch": {
    "l": 0.66372,
    "c": 0.15549,
    "h": 292.9
  },
  "luminance": 0.2748
}

Semantic roles & 50–950 ramp

primary
#987EE9
secondary
#E9F0D3
accent
#D313A4
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#120F17
muted
#817F85

Preview Lab

Preview with #987EE9

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

Preview Lab → · Contrast checker → · Palette generator →

#987EE9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva