#987EEE#987EEE

#987EEE is a light, vivid violet. Relative luminance 0.278; OKLCH L 66.7% C 0.162 H 292.1°. Best body text is #000000 at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#987EEE
RGBrgb(152, 126, 238)
HSLhsl(254, 77%, 71%)
HSVhsv(254, 47%, 93%)
CMYKcmyk(36.1%, 47.1%, 0%, 6.7%)
CIE-LABlab(59.68, 35.02, -53.20)
CIE-LCHlch(59.68, 63.69, 303.35°)
OKLaboklab(66.66% 0.061 -0.1502)
OKLCHoklch(66.66% 0.162 292.1)
XYZxyz(35.8383, 27.7693, 84.3441)
Luminance0.2777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EEE #D4EE7E
analogous
#7E9CEE #987EEE #D07EEE
triadic
#987EEE #EE987E #7EEE98
tetradic
#987EEE #EE7E9C #D4EE7E #7EEED0
square
#987EEE #EE7E9C #D4EE7E #7EEED0
split-complementary
#987EEE #EED07E #9CEE7E
monochromatic
#471CD5 #6D48E7 #987EEE #C3B4F5 #E9E4FB

Accessibility & contrast

On white

3.20
#987EEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.55
#987EEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EEE
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EEE#FFFFFF#000000##000000
##987EEE1.003.206.556.55
#FFFFFF3.201.0021.0021.00
#0000006.5521.001.001.00
##0000006.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5691F2
Deuteranopia (green-blind)
#598EEB
Tritanopia (blue-blind)
#8394AB
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987eee;
/* rgb */ color: rgb(152, 126, 238);
/* oklch */ color: oklch(66.7% 0.162 292.1);
Tailwind
colors: {
  custom: {
    50: '#baa4f4',
    500: '#987eee',
    950: '#000000',
  },
}
SCSS
$custom: #987eee;
$custom-light: #baa4f4;
$custom-dark: #000000;
JSON
{
  "hex": "#987eee",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 238
  },
  "hsl": {
    "h": 253.929,
    "s": 76.712,
    "l": 71.373
  },
  "oklch": {
    "l": 0.66656,
    "c": 0.16208,
    "h": 292.1
  },
  "luminance": 0.2777
}

Semantic roles & 50–950 ramp

primary
#987EEE
secondary
#ECF2D5
accent
#D90DA9
background
#FBFAFE
surface
#F7F4FD
border
#D0CED5
text
#120F17
muted
#817F85

Preview Lab

Preview with #987EEE

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

Preview Lab → · Contrast checker → · Palette generator →

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