#987CE6#987CE6

#987CE6 is a light, vivid violet. Relative luminance 0.268; OKLCH L 65.9% C 0.155 H 293.9°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#987CE6
RGBrgb(152, 124, 230)
HSLhsl(256, 68%, 69%)
HSVhsv(256, 46%, 90%)
CMYKcmyk(33.9%, 46.1%, 0%, 9.8%)
CIE-LABlab(58.79, 34.07, -50.16)
CIE-LCHlch(58.79, 60.64, 304.18°)
OKLaboklab(65.85% 0.0626 -0.1413)
OKLCHoklch(65.85% 0.155 293.9)
XYZxyz(34.4358, 26.8032, 78.2068)
Luminance0.2680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CE6 #CAE67C
analogous
#7C95E6 #987CE6 #CD7CE6
triadic
#987CE6 #E6987C #7CE698
tetradic
#987CE6 #E67C95 #CAE67C #7CE6CD
square
#987CE6 #E67C95 #CAE67C #7CE6CD
split-complementary
#987CE6 #E6CD7C #95E67C
monochromatic
#4F25C2 #7049DC #987CE6 #C0AFF0 #E9E3FA

Accessibility & contrast

On white

3.30
#987CE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#987CE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CE6
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CE6#FFFFFF#000000##000000
##987CE61.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#588FEA
Deuteranopia (green-blind)
#5D8CE3
Tritanopia (blue-blind)
#8690A6
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #987ce6;
/* rgb */ color: rgb(152, 124, 230);
/* oklch */ color: oklch(65.9% 0.155 293.9);
Tailwind
colors: {
  custom: {
    50: '#b9a2ee',
    500: '#987ce6',
    950: '#000000',
  },
}
SCSS
$custom: #987ce6;
$custom-light: #b9a2ee;
$custom-dark: #000000;
JSON
{
  "hex": "#987ce6",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 230
  },
  "hsl": {
    "h": 255.849,
    "s": 67.949,
    "l": 69.412
  },
  "oklch": {
    "l": 0.65852,
    "c": 0.15454,
    "h": 293.9
  },
  "luminance": 0.26804
}

Semantic roles & 50–950 ramp

primary
#987CE6
secondary
#E6EED0
accent
#D0169F
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987CE6

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

Preview Lab → · Contrast checker → · Palette generator →

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