#987DC2#987DC2

#987DC2 is a light, moderate violet. Relative luminance 0.252; OKLCH L 64.2% C 0.105 H 301.5°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#987DC2
RGBrgb(152, 125, 194)
HSLhsl(263, 36%, 63%)
HSVhsv(263, 36%, 76%)
CMYKcmyk(21.6%, 35.6%, 0%, 23.9%)
CIE-LABlab(57.31, 24.53, -32.23)
CIE-LCHlch(57.31, 40.50, 307.27°)
OKLaboklab(64.16% 0.0548 -0.0893)
OKLCHoklch(64.16% 0.105 301.5)
XYZxyz(30.0180, 25.2376, 54.3184)
Luminance0.2524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DC2 #A7C27D
analogous
#7D84C2 #987DC2 #BA7DC2
triadic
#987DC2 #C2987D #7DC298
tetradic
#987DC2 #C27D84 #A7C27D #7DC2BA
square
#987DC2 #C27D84 #A7C27D #7DC2BA
split-complementary
#987DC2 #C2BA7D #84C27D
monochromatic
#5B3F86 #7753AE #987DC2 #B9A7D6 #DAD0E9

Accessibility & contrast

On white

3.47
#987DC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#987DC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DC2
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DC2#FFFFFF#000000##000000
##987DC21.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D89C5
Deuteranopia (green-blind)
#7289C0
Tritanopia (blue-blind)
#918896
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #987dc2;
/* rgb */ color: rgb(152, 125, 194);
/* oklch */ color: oklch(64.2% 0.105 301.5);
Tailwind
colors: {
  custom: {
    50: '#b7a3d4',
    500: '#987dc2',
    950: '#000000',
  },
}
SCSS
$custom: #987dc2;
$custom-light: #b7a3d4;
$custom-dark: #000000;
JSON
{
  "hex": "#987dc2",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 194
  },
  "hsl": {
    "h": 263.478,
    "s": 36.126,
    "l": 62.549
  },
  "oklch": {
    "l": 0.64164,
    "c": 0.10474,
    "h": 301.5
  },
  "luminance": 0.25238
}

Semantic roles & 50–950 ramp

primary
#987DC2
secondary
#D0DAC1
accent
#AF3680
background
#FBFAFD
surface
#F6F3FA
border
#D0CDD3
text
#110F14
muted
#807F83

Preview Lab

Preview with #987DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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