#987CD4#987CD4

#987CD4 is a light, vivid violet. Relative luminance 0.258; OKLCH L 64.9% C 0.131 H 297.3°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#987CD4
RGBrgb(152, 124, 212)
HSLhsl(259, 51%, 66%)
HSVhsv(259, 42%, 83%)
CMYKcmyk(28.3%, 41.5%, 0%, 16.9%)
CIE-LABlab(57.89, 29.49, -41.50)
CIE-LCHlch(57.89, 50.91, 305.39°)
OKLaboklab(64.88% 0.0599 -0.1161)
OKLCHoklch(64.88% 0.131 297.3)
XYZxyz(32.0374, 25.8438, 65.5751)
Luminance0.2584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CD4 #B8D47C
analogous
#7C8CD4 #987CD4 #C47CD4
triadic
#987CD4 #D4987C #7CD498
tetradic
#987CD4 #D47C8C #B8D47C #7CD4C4
square
#987CD4 #D47C8C #B8D47C #7CD4C4
split-complementary
#987CD4 #D4C47C #8CD47C
monochromatic
#5735A1 #744EC5 #987CD4 #BCAAE3 #E0D8F2

Accessibility & contrast

On white

3.40
#987CD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#987CD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CD4
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CD4#FFFFFF#000000##000000
##987CD41.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#638BD7
Deuteranopia (green-blind)
#688AD2
Tritanopia (blue-blind)
#8C8B9E
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #987cd4;
/* rgb */ color: rgb(152, 124, 212);
/* oklch */ color: oklch(64.9% 0.131 297.3);
Tailwind
colors: {
  custom: {
    50: '#b8a2e1',
    500: '#987cd4',
    950: '#000000',
  },
}
SCSS
$custom: #987cd4;
$custom-light: #b8a2e1;
$custom-dark: #000000;
JSON
{
  "hex": "#987cd4",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 212
  },
  "hsl": {
    "h": 259.091,
    "s": 50.575,
    "l": 65.882
  },
  "oklch": {
    "l": 0.64877,
    "c": 0.13061,
    "h": 297.3
  },
  "luminance": 0.25844
}

Semantic roles & 50–950 ramp

primary
#987CD4
secondary
#DBE4C7
accent
#BE288E
background
#FBFAFD
surface
#F6F3FB
border
#D0CDD4
text
#120F15
muted
#817F83

Preview Lab

Preview with #987CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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