#987EE8#987EE8

#987EE8 is a light, vivid violet. Relative luminance 0.274; OKLCH L 66.3% C 0.154 H 293.0°. Best body text is #000000 at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#987EE8
RGBrgb(152, 126, 232)
HSLhsl(255, 70%, 70%)
HSVhsv(255, 46%, 91%)
CMYKcmyk(34.5%, 45.7%, 0%, 9%)
CIE-LABlab(59.36, 33.44, -50.37)
CIE-LCHlch(59.36, 60.46, 303.58°)
OKLaboklab(66.32% 0.0603 -0.1419)
OKLCHoklch(66.32% 0.154 293)
XYZxyz(34.9715, 27.4226, 79.7789)
Luminance0.2742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EE8 #CEE87E
analogous
#7E99E8 #987EE8 #CD7EE8
triadic
#987EE8 #E8987E #7EE898
tetradic
#987EE8 #E87E99 #CEE87E #7EE8CD
square
#987EE8 #E87E99 #CEE87E #7EE8CD
split-complementary
#987EE8 #E8CD7E #99E87E
monochromatic
#4C24C8 #6F4ADF #987EE8 #C1B2F1 #EAE5FA

Accessibility & contrast

On white

3.24
#987EE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.48
#987EE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EE8
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EE8#FFFFFF#000000##000000
##987EE81.003.246.486.48
#FFFFFF3.241.0021.0021.00
#0000006.4821.001.001.00
##0000006.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A90EC
Deuteranopia (green-blind)
#5E8DE5
Tritanopia (blue-blind)
#8592A8
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987ee8;
/* rgb */ color: rgb(152, 126, 232);
/* oklch */ color: oklch(66.3% 0.154 293.0);
Tailwind
colors: {
  custom: {
    50: '#b9a3f0',
    500: '#987ee8',
    950: '#000000',
  },
}
SCSS
$custom: #987ee8;
$custom-light: #b9a3f0;
$custom-dark: #000000;
JSON
{
  "hex": "#987ee8",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 232
  },
  "hsl": {
    "h": 254.717,
    "s": 69.737,
    "l": 70.196
  },
  "oklch": {
    "l": 0.66316,
    "c": 0.15416,
    "h": 293
  },
  "luminance": 0.27423
}

Semantic roles & 50–950 ramp

primary
#987EE8
secondary
#E8F0D2
accent
#D214A3
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987EE8

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

Preview Lab → · Contrast checker → · Palette generator →

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