#987CB2#987CB2

#987CB2 is a light, moderate violet. Relative luminance 0.243; OKLCH L 63.2% C 0.085 H 307.8°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#987CB2
RGBrgb(152, 124, 178)
HSLhsl(271, 26%, 59%)
HSVhsv(271, 30%, 70%)
CMYKcmyk(14.6%, 30.3%, 0%, 30.2%)
CIE-LABlab(56.39, 21.41, -24.51)
CIE-LCHlch(56.39, 32.55, 311.14°)
OKLaboklab(63.25% 0.0521 -0.0672)
OKLCHoklch(63.25% 0.085 307.8)
XYZxyz(28.1909, 24.3053, 45.3171)
Luminance0.2430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CB2 #96B27C
analogous
#7D7CB2 #987CB2 #B27CB1
triadic
#987CB2 #B2987C #7CB298
tetradic
#987CB2 #B27D7C #96B27C #7CB1B2
square
#987CB2 #B27D7C #96B27C #7CB1B2
split-complementary
#987CB2 #B1B27C #7CB27D
monochromatic
#5B4271 #7A5998 #987CB2 #B6A3C9 #D5C9DF

Accessibility & contrast

On white

3.58
#987CB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#987CB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CB2
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CB2#FFFFFF#000000##000000
##987CB21.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7286B4
Deuteranopia (green-blind)
#7888B0
Tritanopia (blue-blind)
#95838F
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #987cb2;
/* rgb */ color: rgb(152, 124, 178);
/* oklch */ color: oklch(63.2% 0.085 307.8);
Tailwind
colors: {
  custom: {
    50: '#b7a2c9',
    500: '#987cb2',
    950: '#000000',
  },
}
SCSS
$custom: #987cb2;
$custom-light: #b7a2c9;
$custom-dark: #000000;
JSON
{
  "hex": "#987cb2",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 178
  },
  "hsl": {
    "h": 271.111,
    "s": 25.962,
    "l": 59.216
  },
  "oklch": {
    "l": 0.63247,
    "c": 0.08507,
    "h": 307.8
  },
  "luminance": 0.24305
}

Semantic roles & 50–950 ramp

primary
#987CB2
secondary
#C5CFBA
accent
#C26592
background
#FBF9FC
surface
#F6F2F8
border
#D0CCD1
text
#110F13
muted
#807E82

Preview Lab

Preview with #987CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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