#987CE4#987CE4

#987CE4 is a light, vivid violet. Relative luminance 0.267; OKLCH L 65.7% C 0.152 H 294.2°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#987CE4
RGBrgb(152, 124, 228)
HSLhsl(256, 66%, 69%)
HSVhsv(256, 46%, 89%)
CMYKcmyk(33.3%, 45.6%, 0%, 10.6%)
CIE-LABlab(58.69, 33.55, -49.21)
CIE-LCHlch(58.69, 59.56, 304.29°)
OKLaboklab(65.74% 0.0624 -0.1385)
OKLCHoklch(65.74% 0.152 294.2)
XYZxyz(34.1566, 26.6915, 76.7362)
Luminance0.2669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CE4 #C8E47C
analogous
#7C94E4 #987CE4 #CC7CE4
triadic
#987CE4 #E4987C #7CE498
tetradic
#987CE4 #E47C94 #C8E47C #7CE4CC
square
#987CE4 #E47C94 #C8E47C #7CE4CC
split-complementary
#987CE4 #E4CC7C #94E47C
monochromatic
#5027BE #7049DA #987CE4 #C0AFEE #E8E1F9

Accessibility & contrast

On white

3.31
#987CE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#987CE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CE4
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CE4#FFFFFF#000000##000000
##987CE41.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#598EE8
Deuteranopia (green-blind)
#5E8CE1
Tritanopia (blue-blind)
#8690A5
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #987ce4;
/* rgb */ color: rgb(152, 124, 228);
/* oklch */ color: oklch(65.7% 0.152 294.2);
Tailwind
colors: {
  custom: {
    50: '#b9a2ed',
    500: '#987ce4',
    950: '#000000',
  },
}
SCSS
$custom: #987ce4;
$custom-light: #b9a2ed;
$custom-dark: #000000;
JSON
{
  "hex": "#987ce4",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 228
  },
  "hsl": {
    "h": 256.154,
    "s": 65.823,
    "l": 69.02
  },
  "oklch": {
    "l": 0.6574,
    "c": 0.15191,
    "h": 294.2
  },
  "luminance": 0.26692
}

Semantic roles & 50–950 ramp

primary
#987CE4
secondary
#E5EDCF
accent
#CE189D
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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