#987CC2#987CC2

#987CC2 is a light, moderate violet. Relative luminance 0.250; OKLCH L 64.0% C 0.106 H 301.9°. Best body text is #000000 at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#987CC2
RGBrgb(152, 124, 194)
HSLhsl(264, 36%, 62%)
HSVhsv(264, 36%, 76%)
CMYKcmyk(21.6%, 36.1%, 0%, 23.9%)
CIE-LABlab(57.06, 25.10, -32.61)
CIE-LCHlch(57.06, 41.15, 307.59°)
OKLaboklab(63.98% 0.0562 -0.0904)
OKLCHoklch(63.98% 0.106 301.9)
XYZxyz(29.8921, 24.9857, 54.2764)
Luminance0.2499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CC2 #A6C27C
analogous
#7C83C2 #987CC2 #BB7CC2
triadic
#987CC2 #C2987C #7CC298
tetradic
#987CC2 #C27C83 #A6C27C #7CC2BB
square
#987CC2 #C27C83 #A6C27C #7CC2BB
split-complementary
#987CC2 #C2BB7C #83C27C
monochromatic
#5B3E85 #7752AF #987CC2 #B9A6D5 #DAD0E9

Accessibility & contrast

On white

3.50
#987CC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.00
#987CC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CC2
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CC2#FFFFFF#000000##000000
##987CC21.003.506.006.00
#FFFFFF3.501.0021.0021.00
#0000006.0021.001.001.00
##0000006.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C88C5
Deuteranopia (green-blind)
#7189C0
Tritanopia (blue-blind)
#918796
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #987cc2;
/* rgb */ color: rgb(152, 124, 194);
/* oklch */ color: oklch(64.0% 0.106 301.9);
Tailwind
colors: {
  custom: {
    50: '#b7a2d4',
    500: '#987cc2',
    950: '#000000',
  },
}
SCSS
$custom: #987cc2;
$custom-light: #b7a2d4;
$custom-dark: #000000;
JSON
{
  "hex": "#987cc2",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 194
  },
  "hsl": {
    "h": 264,
    "s": 36.458,
    "l": 62.353
  },
  "oklch": {
    "l": 0.63978,
    "c": 0.10643,
    "h": 301.9
  },
  "luminance": 0.24986
}

Semantic roles & 50–950 ramp

primary
#987CC2
secondary
#CFDAC0
accent
#AF367F
background
#FBFAFD
surface
#F6F3FA
border
#D0CDD3
text
#110F14
muted
#807F83

Preview Lab

Preview with #987CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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