#987EEB#987EEB

#987EEB is a light, vivid violet. Relative luminance 0.276; OKLCH L 66.5% C 0.158 H 292.5°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#987EEB
RGBrgb(152, 126, 235)
HSLhsl(254, 73%, 71%)
HSVhsv(254, 46%, 92%)
CMYKcmyk(35.3%, 46.4%, 0%, 7.8%)
CIE-LABlab(59.52, 34.23, -51.79)
CIE-LCHlch(59.52, 62.07, 303.46°)
OKLaboklab(66.49% 0.0606 -0.146)
OKLCHoklch(66.49% 0.158 292.5)
XYZxyz(35.4012, 27.5945, 82.0422)
Luminance0.2759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EEB #D1EB7E
analogous
#7E9AEB #987EEB #CE7EEB
triadic
#987EEB #EB987E #7EEB98
tetradic
#987EEB #EB7E9A #D1EB7E #7EEBCE
square
#987EEB #EB7E9A #D1EB7E #7EEBCE
split-complementary
#987EEB #EBCE7E #9AEB7E
monochromatic
#4A20CF #6E49E3 #987EEB #C2B3F3 #EAE5FB

Accessibility & contrast

On white

3.22
#987EEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.52
#987EEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EEB
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EEB#FFFFFF#000000##000000
##987EEB1.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5891EF
Deuteranopia (green-blind)
#5B8DE8
Tritanopia (blue-blind)
#8493A9
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987eeb;
/* rgb */ color: rgb(152, 126, 235);
/* oklch */ color: oklch(66.5% 0.158 292.5);
Tailwind
colors: {
  custom: {
    50: '#baa4f2',
    500: '#987eeb',
    950: '#000000',
  },
}
SCSS
$custom: #987eeb;
$custom-light: #baa4f2;
$custom-dark: #000000;
JSON
{
  "hex": "#987eeb",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 235
  },
  "hsl": {
    "h": 254.312,
    "s": 73.154,
    "l": 70.784
  },
  "oklch": {
    "l": 0.66485,
    "c": 0.15813,
    "h": 292.5
  },
  "luminance": 0.27595
}

Semantic roles & 50–950 ramp

primary
#987EEB
secondary
#EAF1D4
accent
#D510A6
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#120F17
muted
#817F85

Preview Lab

Preview with #987EEB

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

Preview Lab → · Contrast checker → · Palette generator →

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