#987EE6#987EE6

#987EE6 is a light, vivid violet. Relative luminance 0.273; OKLCH L 66.2% C 0.152 H 293.3°. Best body text is #000000 at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#987EE6
RGBrgb(152, 126, 230)
HSLhsl(255, 68%, 70%)
HSVhsv(255, 45%, 90%)
CMYKcmyk(33.9%, 45.2%, 0%, 9.8%)
CIE-LABlab(59.26, 32.92, -49.42)
CIE-LCHlch(59.26, 59.38, 303.67°)
OKLaboklab(66.2% 0.06 -0.1391)
OKLCHoklch(66.2% 0.152 293.3)
XYZxyz(34.6890, 27.3096, 78.2912)
Luminance0.2731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EE6 #CCE67E
analogous
#7E98E6 #987EE6 #CC7EE6
triadic
#987EE6 #E6987E #7EE698
tetradic
#987EE6 #E67E98 #CCE67E #7EE6CC
square
#987EE6 #E67E98 #CCE67E #7EE6CC
split-complementary
#987EE6 #E6CC7E #98E67E
monochromatic
#4D26C4 #6F4BDC #987EE6 #C1B1F0 #EAE5FA

Accessibility & contrast

On white

3.25
#987EE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.46
#987EE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EE6
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EE6#FFFFFF#000000##000000
##987EE61.003.256.466.46
#FFFFFF3.251.0021.0021.00
#0000006.4621.001.001.00
##0000006.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B90EA
Deuteranopia (green-blind)
#5F8DE3
Tritanopia (blue-blind)
#8692A7
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987ee6;
/* rgb */ color: rgb(152, 126, 230);
/* oklch */ color: oklch(66.2% 0.152 293.3);
Tailwind
colors: {
  custom: {
    50: '#b9a3ee',
    500: '#987ee6',
    950: '#000000',
  },
}
SCSS
$custom: #987ee6;
$custom-light: #b9a3ee;
$custom-dark: #000000;
JSON
{
  "hex": "#987ee6",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 230
  },
  "hsl": {
    "h": 255,
    "s": 67.532,
    "l": 69.804
  },
  "oklch": {
    "l": 0.66204,
    "c": 0.15151,
    "h": 293.3
  },
  "luminance": 0.2731
}

Semantic roles & 50–950 ramp

primary
#987EE6
secondary
#E7EFD1
accent
#CF16A1
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987EE6

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

Preview Lab → · Contrast checker → · Palette generator →

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