#987CEE#987CEE

#987CEE is a light, vivid violet. Relative luminance 0.273; OKLCH L 66.3% C 0.165 H 292.6°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#987CEE
RGBrgb(152, 124, 238)
HSLhsl(255, 77%, 71%)
HSVhsv(255, 48%, 93%)
CMYKcmyk(36.1%, 47.9%, 0%, 6.7%)
CIE-LABlab(59.22, 36.16, -53.93)
CIE-LCHlch(59.22, 64.93, 303.84°)
OKLaboklab(66.31% 0.0635 -0.1523)
OKLCHoklch(66.31% 0.165 292.6)
XYZxyz(35.5851, 27.2629, 84.2598)
Luminance0.2726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CEE #D2EE7C
analogous
#7C99EE #987CEE #D17CEE
triadic
#987CEE #EE987C #7CEE98
tetradic
#987CEE #EE7C99 #D2EE7C #7CEED1
square
#987CEE #EE7C99 #D2EE7C #7CEED1
split-complementary
#987CEE #EED17C #99EE7C
monochromatic
#491CD4 #6D46E7 #987CEE #C3B2F5 #EAE4FB

Accessibility & contrast

On white

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

On black

6.45
#987CEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CEE
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CEE#FFFFFF#000000##000000
##987CEE1.003.256.456.45
#FFFFFF3.251.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5290F2
Deuteranopia (green-blind)
#568CEB
Tritanopia (blue-blind)
#8392AA
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987cee;
/* rgb */ color: rgb(152, 124, 238);
/* oklch */ color: oklch(66.3% 0.165 292.6);
Tailwind
colors: {
  custom: {
    50: '#baa2f4',
    500: '#987cee',
    950: '#000000',
  },
}
SCSS
$custom: #987cee;
$custom-light: #baa2f4;
$custom-dark: #000000;
JSON
{
  "hex": "#987cee",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 238
  },
  "hsl": {
    "h": 254.737,
    "s": 77.027,
    "l": 70.98
  },
  "oklch": {
    "l": 0.66309,
    "c": 0.16504,
    "h": 292.6
  },
  "luminance": 0.27264
}

Semantic roles & 50–950 ramp

primary
#987CEE
secondary
#EBF2D4
accent
#D90CA7
background
#FBFAFE
surface
#F7F3FD
border
#D0CDD5
text
#120F17
muted
#817F85

Preview Lab

Preview with #987CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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