#987CBB#987CBB

#987CBB is a light, moderate violet. Relative luminance 0.247; OKLCH L 63.6% C 0.097 H 304.2°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#987CBB
RGBrgb(152, 124, 187)
HSLhsl(267, 32%, 61%)
HSVhsv(267, 34%, 73%)
CMYKcmyk(18.7%, 33.7%, 0%, 26.7%)
CIE-LABlab(56.76, 23.46, -29.09)
CIE-LCHlch(56.76, 37.37, 308.89°)
OKLaboklab(63.65% 0.0545 -0.0803)
OKLCHoklch(63.65% 0.097 304.2)
XYZxyz(29.1244, 24.6786, 50.2332)
Luminance0.2468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CBB #9FBB7C
analogous
#7C7FBB #987CBB #B77CBB
triadic
#987CBB #BB987C #7CBB98
tetradic
#987CBB #BB7C7F #9FBB7C #7CBBB7
square
#987CBB #BB7C7F #9FBB7C #7CBBB7
split-complementary
#987CBB #BBB77C #7FBB7C
monochromatic
#5B407C #7955A4 #987CBB #B8A4D0 #D7CDE5

Accessibility & contrast

On white

3.54
#987CBB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#987CBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CBB
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CBB#FFFFFF#000000##000000
##987CBB1.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F87BD
Deuteranopia (green-blind)
#7488B9
Tritanopia (blue-blind)
#938593
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #987cbb;
/* rgb */ color: rgb(152, 124, 187);
/* oklch */ color: oklch(63.6% 0.097 304.2);
Tailwind
colors: {
  custom: {
    50: '#b7a2cf',
    500: '#987cbb',
    950: '#000000',
  },
}
SCSS
$custom: #987cbb;
$custom-light: #b7a2cf;
$custom-dark: #000000;
JSON
{
  "hex": "#987cbb",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 187
  },
  "hsl": {
    "h": 266.667,
    "s": 31.658,
    "l": 60.98
  },
  "oklch": {
    "l": 0.6365,
    "c": 0.09705,
    "h": 304.2
  },
  "luminance": 0.24679
}

Semantic roles & 50–950 ramp

primary
#987CBB
secondary
#CBD5BE
accent
#AA3B79
background
#FBFAFC
surface
#F6F3F9
border
#D0CDD2
text
#110F14
muted
#807F82

Preview Lab

Preview with #987CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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