#987CD6#987CD6

#987CD6 is a light, vivid violet. Relative luminance 0.259; OKLCH L 65.0% C 0.133 H 296.9°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#987CD6
RGBrgb(152, 124, 214)
HSLhsl(259, 52%, 66%)
HSVhsv(259, 42%, 84%)
CMYKcmyk(29%, 42.1%, 0%, 16.1%)
CIE-LABlab(57.99, 29.99, -42.48)
CIE-LCHlch(57.99, 51.99, 305.22°)
OKLaboklab(64.98% 0.0602 -0.1189)
OKLCHoklch(64.98% 0.133 296.9)
XYZxyz(32.2912, 25.9454, 66.9120)
Luminance0.2595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CD6 #BAD67C
analogous
#7C8DD6 #987CD6 #C57CD6
triadic
#987CD6 #D6987C #7CD698
tetradic
#987CD6 #D67C8D #BAD67C #7CD6C5
square
#987CD6 #D67C8D #BAD67C #7CD6C5
split-complementary
#987CD6 #D6C57C #8DD67C
monochromatic
#5633A4 #734DC7 #987CD6 #BDABE5 #E1D9F3

Accessibility & contrast

On white

3.39
#987CD6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#987CD6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CD6
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CD6#FFFFFF#000000##000000
##987CD61.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#628CD9
Deuteranopia (green-blind)
#678AD4
Tritanopia (blue-blind)
#8B8C9F
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #987cd6;
/* rgb */ color: rgb(152, 124, 214);
/* oklch */ color: oklch(65.0% 0.133 296.9);
Tailwind
colors: {
  custom: {
    50: '#b8a2e3',
    500: '#987cd6',
    950: '#000000',
  },
}
SCSS
$custom: #987cd6;
$custom-light: #b8a2e3;
$custom-dark: #000000;
JSON
{
  "hex": "#987cd6",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 214
  },
  "hsl": {
    "h": 258.667,
    "s": 52.326,
    "l": 66.275
  },
  "oklch": {
    "l": 0.64981,
    "c": 0.13328,
    "h": 296.9
  },
  "luminance": 0.25946
}

Semantic roles & 50–950 ramp

primary
#987CD6
secondary
#DCE6C8
accent
#C02690
background
#FBFAFD
surface
#F6F3FB
border
#D0CDD4
text
#120F15
muted
#817F83

Preview Lab

Preview with #987CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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