#987CD8#987CD8

#987CD8 is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.1% C 0.136 H 296.5°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#987CD8
RGBrgb(152, 124, 216)
HSLhsl(258, 54%, 67%)
HSVhsv(258, 43%, 85%)
CMYKcmyk(29.6%, 42.6%, 0%, 15.3%)
CIE-LABlab(58.08, 30.49, -43.45)
CIE-LCHlch(58.08, 53.08, 305.06°)
OKLaboklab(65.09% 0.0606 -0.1217)
OKLCHoklch(65.09% 0.136 296.5)
XYZxyz(32.5482, 26.0482, 68.2654)
Luminance0.2605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CD8 #BCD87C
analogous
#7C8ED8 #987CD8 #C67CD8
triadic
#987CD8 #D8987C #7CD898
tetradic
#987CD8 #D87C8E #BCD87C #7CD8C6
square
#987CD8 #D87C8E #BCD87C #7CD8C6
split-complementary
#987CD8 #D8C67C #8ED87C
monochromatic
#5632A8 #734DCA #987CD8 #BDABE6 #E2DAF4

Accessibility & contrast

On white

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

On black

6.21
#987CD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CD8
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CD8#FFFFFF#000000##000000
##987CD81.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#618CDB
Deuteranopia (green-blind)
#668AD6
Tritanopia (blue-blind)
#8A8DA0
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #987cd8;
/* rgb */ color: rgb(152, 124, 216);
/* oklch */ color: oklch(65.1% 0.136 296.5);
Tailwind
colors: {
  custom: {
    50: '#b8a2e4',
    500: '#987cd8',
    950: '#000000',
  },
}
SCSS
$custom: #987cd8;
$custom-light: #b8a2e4;
$custom-dark: #000000;
JSON
{
  "hex": "#987cd8",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 216
  },
  "hsl": {
    "h": 258.261,
    "s": 54.118,
    "l": 66.667
  },
  "oklch": {
    "l": 0.65087,
    "c": 0.13596,
    "h": 296.5
  },
  "luminance": 0.26049
}

Semantic roles & 50–950 ramp

primary
#987CD8
secondary
#DEE7C9
accent
#C22492
background
#FBFAFE
surface
#F6F3FC
border
#D0CDD5
text
#120F15
muted
#817F84

Preview Lab

Preview with #987CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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