#987EEA#987EEA

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

Color values

HEX#987EEA
RGBrgb(152, 126, 234)
HSLhsl(254, 72%, 71%)
HSVhsv(254, 46%, 92%)
CMYKcmyk(35%, 46.2%, 0%, 8.2%)
CIE-LABlab(59.47, 33.96, -51.31)
CIE-LCHlch(59.47, 61.54, 303.50°)
OKLaboklab(66.43% 0.0605 -0.1447)
OKLCHoklch(66.43% 0.157 292.7)
XYZxyz(35.2572, 27.5369, 81.2835)
Luminance0.2754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EEA #D0EA7E
analogous
#7E9AEA #987EEA #CE7EEA
triadic
#987EEA #EA987E #7EEA98
tetradic
#987EEA #EA7E9A #D0EA7E #7EEACE
square
#987EEA #EA7E9A #D0EA7E #7EEACE
split-complementary
#987EEA #EACE7E #9AEA7E
monochromatic
#4A21CC #6E49E1 #987EEA #C2B3F3 #EAE5FB

Accessibility & contrast

On white

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

On black

6.51
#987EEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EEA
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EEA#FFFFFF#000000##000000
##987EEA1.003.236.516.51
#FFFFFF3.231.0021.0021.00
#0000006.5121.001.001.00
##0000006.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5991EE
Deuteranopia (green-blind)
#5C8DE7
Tritanopia (blue-blind)
#8493A9
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987eea;
/* rgb */ color: rgb(152, 126, 234);
/* oklch */ color: oklch(66.4% 0.157 292.7);
Tailwind
colors: {
  custom: {
    50: '#baa3f1',
    500: '#987eea',
    950: '#000000',
  },
}
SCSS
$custom: #987eea;
$custom-light: #baa3f1;
$custom-dark: #000000;
JSON
{
  "hex": "#987eea",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 234
  },
  "hsl": {
    "h": 254.444,
    "s": 72,
    "l": 70.588
  },
  "oklch": {
    "l": 0.66428,
    "c": 0.15681,
    "h": 292.7
  },
  "luminance": 0.27538
}

Semantic roles & 50–950 ramp

primary
#987EEA
secondary
#EAF1D3
accent
#D411A5
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#120F17
muted
#817F85

Preview Lab

Preview with #987EEA

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

Preview Lab → · Contrast checker → · Palette generator →

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