#987DBB#987DBB

#987DBB is a light, moderate violet. Relative luminance 0.249; OKLCH L 63.8% C 0.095 H 303.8°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#987DBB
RGBrgb(152, 125, 187)
HSLhsl(266, 31%, 61%)
HSVhsv(266, 33%, 73%)
CMYKcmyk(18.7%, 33.2%, 0%, 26.7%)
CIE-LABlab(57.01, 22.88, -28.71)
CIE-LCHlch(57.01, 36.71, 308.56°)
OKLaboklab(63.84% 0.053 -0.0792)
OKLCHoklch(63.84% 0.095 303.8)
XYZxyz(29.2503, 24.9306, 50.2752)
Luminance0.2493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DBB #A0BB7D
analogous
#7D81BB #987DBB #B77DBB
triadic
#987DBB #BB987D #7DBB98
tetradic
#987DBB #BB7D81 #A0BB7D #7DBBB7
square
#987DBB #BB7D81 #A0BB7D #7DBBB7
split-complementary
#987DBB #BBB77D #81BB7D
monochromatic
#5B417C #7856A5 #987DBB #B8A5D0 #D8CDE5

Accessibility & contrast

On white

3.51
#987DBB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#987DBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DBB
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DBB#FFFFFF#000000##000000
##987DBB1.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7088BD
Deuteranopia (green-blind)
#7589B9
Tritanopia (blue-blind)
#938694
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #987dbb;
/* rgb */ color: rgb(152, 125, 187);
/* oklch */ color: oklch(63.8% 0.095 303.8);
Tailwind
colors: {
  custom: {
    50: '#b7a3cf',
    500: '#987dbb',
    950: '#000000',
  },
}
SCSS
$custom: #987dbb;
$custom-light: #b7a3cf;
$custom-dark: #000000;
JSON
{
  "hex": "#987dbb",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 187
  },
  "hsl": {
    "h": 266.129,
    "s": 31.313,
    "l": 61.176
  },
  "oklch": {
    "l": 0.63838,
    "c": 0.09531,
    "h": 303.8
  },
  "luminance": 0.2493
}

Semantic roles & 50–950 ramp

primary
#987DBB
secondary
#CBD6BE
accent
#AA3B7A
background
#FBFAFC
surface
#F6F3F9
border
#D0CDD2
text
#110F14
muted
#807F82

Preview Lab

Preview with #987DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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