#987CD9#987CD9

#987CD9 is a light, vivid violet. Relative luminance 0.261; OKLCH L 65.1% C 0.137 H 296.3°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#987CD9
RGBrgb(152, 124, 217)
HSLhsl(258, 55%, 67%)
HSVhsv(258, 43%, 85%)
CMYKcmyk(30%, 42.9%, 0%, 14.9%)
CIE-LABlab(58.13, 30.74, -43.93)
CIE-LCHlch(58.13, 53.62, 304.98°)
OKLaboklab(65.14% 0.0607 -0.1231)
OKLCHoklch(65.14% 0.137 296.3)
XYZxyz(32.6779, 26.1000, 68.9484)
Luminance0.2610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CD9 #BDD97C
analogous
#7C8ED9 #987CD9 #C77CD9
triadic
#987CD9 #D9987C #7CD998
tetradic
#987CD9 #D97C8E #BDD97C #7CD9C7
square
#987CD9 #D97C8E #BDD97C #7CD9C7
split-complementary
#987CD9 #D9C77C #8ED97C
monochromatic
#5531A9 #734DCB #987CD9 #BDABE7 #E3DBF5

Accessibility & contrast

On white

3.38
#987CD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#987CD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CD9
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CD9#FFFFFF#000000##000000
##987CD91.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#608CDC
Deuteranopia (green-blind)
#658BD7
Tritanopia (blue-blind)
#8A8DA0
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #987cd9;
/* rgb */ color: rgb(152, 124, 217);
/* oklch */ color: oklch(65.1% 0.137 296.3);
Tailwind
colors: {
  custom: {
    50: '#b8a2e5',
    500: '#987cd9',
    950: '#000000',
  },
}
SCSS
$custom: #987cd9;
$custom-light: #b8a2e5;
$custom-dark: #000000;
JSON
{
  "hex": "#987cd9",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 217
  },
  "hsl": {
    "h": 258.065,
    "s": 55.03,
    "l": 66.863
  },
  "oklch": {
    "l": 0.6514,
    "c": 0.13729,
    "h": 296.3
  },
  "luminance": 0.261
}

Semantic roles & 50–950 ramp

primary
#987CD9
secondary
#DEE7CA
accent
#C32392
background
#FBFAFE
surface
#F6F3FC
border
#D0CDD5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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