#987CE8#987CE8

#987CE8 is a light, vivid violet. Relative luminance 0.269; OKLCH L 66.0% C 0.157 H 293.6°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#987CE8
RGBrgb(152, 124, 232)
HSLhsl(256, 70%, 70%)
HSVhsv(256, 47%, 91%)
CMYKcmyk(34.5%, 46.6%, 0%, 9%)
CIE-LABlab(58.90, 34.59, -51.11)
CIE-LCHlch(58.90, 61.71, 304.09°)
OKLaboklab(65.96% 0.0629 -0.1441)
OKLCHoklch(65.96% 0.157 293.6)
XYZxyz(34.7183, 26.9162, 79.6945)
Luminance0.2692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CE8 #CCE87C
analogous
#7C96E8 #987CE8 #CE7CE8
triadic
#987CE8 #E8987C #7CE898
tetradic
#987CE8 #E87C96 #CCE87C #7CE8CE
square
#987CE8 #E87C96 #CCE87C #7CE8CE
split-complementary
#987CE8 #E8CE7C #96E87C
monochromatic
#4D23C7 #6F48DF #987CE8 #C1B0F1 #EAE4FA

Accessibility & contrast

On white

3.29
#987CE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#987CE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CE8
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CE8#FFFFFF#000000##000000
##987CE81.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#578FEC
Deuteranopia (green-blind)
#5B8CE5
Tritanopia (blue-blind)
#8591A7
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987ce8;
/* rgb */ color: rgb(152, 124, 232);
/* oklch */ color: oklch(66.0% 0.157 293.6);
Tailwind
colors: {
  custom: {
    50: '#b9a2f0',
    500: '#987ce8',
    950: '#000000',
  },
}
SCSS
$custom: #987ce8;
$custom-light: #b9a2f0;
$custom-dark: #000000;
JSON
{
  "hex": "#987ce8",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 232
  },
  "hsl": {
    "h": 255.556,
    "s": 70.13,
    "l": 69.804
  },
  "oklch": {
    "l": 0.65965,
    "c": 0.15717,
    "h": 293.6
  },
  "luminance": 0.26917
}

Semantic roles & 50–950 ramp

primary
#987CE8
secondary
#E7EFD1
accent
#D213A1
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987CE8

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

Preview Lab → · Contrast checker → · Palette generator →

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