#987CE9#987CE9

#987CE9 is a light, vivid violet. Relative luminance 0.270; OKLCH L 66.0% C 0.158 H 293.4°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#987CE9
RGBrgb(152, 124, 233)
HSLhsl(255, 71%, 70%)
HSVhsv(255, 47%, 91%)
CMYKcmyk(34.8%, 46.8%, 0%, 8.6%)
CIE-LABlab(58.95, 34.85, -51.58)
CIE-LCHlch(58.95, 62.25, 304.04°)
OKLaboklab(66.02% 0.063 -0.1454)
OKLCHoklch(66.02% 0.158 293.4)
XYZxyz(34.8607, 26.9732, 80.4447)
Luminance0.2697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CE9 #CDE97C
analogous
#7C96E9 #987CE9 #CF7CE9
triadic
#987CE9 #E9987C #7CE998
tetradic
#987CE9 #E97C96 #CDE97C #7CE9CF
square
#987CE9 #E97C96 #CDE97C #7CE9CF
split-complementary
#987CE9 #E9CF7C #96E97C
monochromatic
#4D22C9 #6F48E0 #987CE9 #C1B0F2 #EAE5FB

Accessibility & contrast

On white

3.28
#987CE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#987CE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CE9
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CE9#FFFFFF#000000##000000
##987CE91.003.286.396.39
#FFFFFF3.281.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#568FED
Deuteranopia (green-blind)
#5A8CE6
Tritanopia (blue-blind)
#8591A7
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987ce9;
/* rgb */ color: rgb(152, 124, 233);
/* oklch */ color: oklch(66.0% 0.158 293.4);
Tailwind
colors: {
  custom: {
    50: '#baa2f0',
    500: '#987ce9',
    950: '#000000',
  },
}
SCSS
$custom: #987ce9;
$custom-light: #baa2f0;
$custom-dark: #000000;
JSON
{
  "hex": "#987ce9",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 233
  },
  "hsl": {
    "h": 255.413,
    "s": 71.242,
    "l": 70
  },
  "oklch": {
    "l": 0.66022,
    "c": 0.15849,
    "h": 293.4
  },
  "luminance": 0.26974
}

Semantic roles & 50–950 ramp

primary
#987CE9
secondary
#E8F0D1
accent
#D312A2
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#120F17
muted
#817F85

Preview Lab

Preview with #987CE9

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

Preview Lab → · Contrast checker → · Palette generator →

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