#987DC0#987DC0

#987DC0 is a light, moderate violet. Relative luminance 0.251; OKLCH L 64.1% C 0.102 H 302.1°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#987DC0
RGBrgb(152, 125, 192)
HSLhsl(264, 35%, 62%)
HSVhsv(264, 35%, 75%)
CMYKcmyk(20.8%, 34.9%, 0%, 24.7%)
CIE-LABlab(57.22, 24.05, -31.23)
CIE-LCHlch(57.22, 39.42, 307.60°)
OKLaboklab(64.07% 0.0543 -0.0864)
OKLCHoklch(64.07% 0.102 302.1)
XYZxyz(29.7949, 25.1484, 53.1434)
Luminance0.2515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DC0 #A5C07D
analogous
#7D84C0 #987DC0 #BA7DC0
triadic
#987DC0 #C0987D #7DC098
tetradic
#987DC0 #C07D84 #A5C07D #7DC0BA
square
#987DC0 #C07D84 #A5C07D #7DC0BA
split-complementary
#987DC0 #C0BA7D #84C07D
monochromatic
#5B4083 #7754AC #987DC0 #B9A6D4 #D9CFE8

Accessibility & contrast

On white

3.48
#987DC0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#987DC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DC0
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DC0#FFFFFF#000000##000000
##987DC01.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E89C3
Deuteranopia (green-blind)
#7389BE
Tritanopia (blue-blind)
#918796
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #987dc0;
/* rgb */ color: rgb(152, 125, 192);
/* oklch */ color: oklch(64.1% 0.102 302.1);
Tailwind
colors: {
  custom: {
    50: '#b7a3d3',
    500: '#987dc0',
    950: '#000000',
  },
}
SCSS
$custom: #987dc0;
$custom-light: #b7a3d3;
$custom-dark: #000000;
JSON
{
  "hex": "#987dc0",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 192
  },
  "hsl": {
    "h": 264.179,
    "s": 34.715,
    "l": 62.157
  },
  "oklch": {
    "l": 0.6407,
    "c": 0.10204,
    "h": 302.1
  },
  "luminance": 0.25148
}

Semantic roles & 50–950 ramp

primary
#987DC0
secondary
#CFD9C0
accent
#AE387E
background
#FBFAFC
surface
#F6F3F9
border
#D0CDD2
text
#110F14
muted
#807F82

Preview Lab

Preview with #987DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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