#987BC8#987BC8

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

Color values

HEX#987BC8
RGBrgb(152, 123, 200)
HSLhsl(263, 41%, 63%)
HSVhsv(263, 39%, 78%)
CMYKcmyk(24%, 38.5%, 0%, 21.6%)
CIE-LABlab(57.09, 27.12, -35.98)
CIE-LCHlch(57.09, 45.05, 307.00°)
OKLaboklab(64.09% 0.059 -0.1001)
OKLCHoklch(64.09% 0.116 300.5)
XYZxyz(30.4549, 25.0113, 57.8556)
Luminance0.2501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BC8 #ABC87B
analogous
#7B84C8 #987BC8 #BE7BC8
triadic
#987BC8 #C8987B #7BC898
tetradic
#987BC8 #C87B84 #ABC87B #7BC8BE
square
#987BC8 #C87B84 #ABC87B #7BC8BE
split-complementary
#987BC8 #C8BE7B #84C87B
monochromatic
#5A3B8E #7650B6 #987BC8 #BAA6DA #DBD1EC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987BC8#FFFFFF#000000##000000
##987BC81.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)
#6889CB
Deuteranopia (green-blind)
#6D89C6
Tritanopia (blue-blind)
#8F8898
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #987bc8;
/* rgb */ color: rgb(152, 123, 200);
/* oklch */ color: oklch(64.1% 0.116 300.5);
Tailwind
colors: {
  custom: {
    50: '#b8a1d9',
    500: '#987bc8',
    950: '#000000',
  },
}
SCSS
$custom: #987bc8;
$custom-light: #b8a1d9;
$custom-dark: #000000;
JSON
{
  "hex": "#987bc8",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 200
  },
  "hsl": {
    "h": 262.597,
    "s": 41.176,
    "l": 63.333
  },
  "oklch": {
    "l": 0.64085,
    "c": 0.11616,
    "h": 300.5
  },
  "luminance": 0.25011
}

Semantic roles & 50–950 ramp

primary
#987BC8
secondary
#D3DDC2
accent
#B43183
background
#FBF9FD
surface
#F6F2FA
border
#D0CCD3
text
#110F14
muted
#807E83

Preview Lab

Preview with #987BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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