#987EE5#987EE5

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

Color values

HEX#987EE5
RGBrgb(152, 126, 229)
HSLhsl(255, 66%, 70%)
HSVhsv(255, 45%, 90%)
CMYKcmyk(33.6%, 45%, 0%, 10.2%)
CIE-LABlab(59.21, 32.66, -48.94)
CIE-LCHlch(59.21, 58.84, 303.72°)
OKLaboklab(66.15% 0.0599 -0.1377)
OKLCHoklch(66.15% 0.15 293.5)
XYZxyz(34.5490, 27.2536, 77.5538)
Luminance0.2725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EE5 #CBE57E
analogous
#7E97E5 #987EE5 #CC7EE5
triadic
#987EE5 #E5987E #7EE598
tetradic
#987EE5 #E57E97 #CBE57E #7EE5CC
square
#987EE5 #E57E97 #CBE57E #7EE5CC
split-complementary
#987EE5 #E5CC7E #97E57E
monochromatic
#4E27C2 #6F4BDB #987EE5 #C1B1EF #E9E4FA

Accessibility & contrast

On white

3.26
#987EE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##987EE5#FFFFFF#000000##000000
##987EE51.003.266.456.45
#FFFFFF3.261.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C90E9
Deuteranopia (green-blind)
#608DE3
Tritanopia (blue-blind)
#8691A6
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987ee5;
/* rgb */ color: rgb(152, 126, 229);
/* oklch */ color: oklch(66.1% 0.150 293.5);
Tailwind
colors: {
  custom: {
    50: '#b9a3ee',
    500: '#987ee5',
    950: '#000000',
  },
}
SCSS
$custom: #987ee5;
$custom-light: #b9a3ee;
$custom-dark: #000000;
JSON
{
  "hex": "#987ee5",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 229
  },
  "hsl": {
    "h": 255.146,
    "s": 66.452,
    "l": 69.608
  },
  "oklch": {
    "l": 0.66149,
    "c": 0.15018,
    "h": 293.5
  },
  "luminance": 0.27254
}

Semantic roles & 50–950 ramp

primary
#987EE5
secondary
#E7EED1
accent
#CE17A0
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987EE5

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

Preview Lab → · Contrast checker → · Palette generator →

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