#987FCB#987FCB

#987FCB is a light, moderate violet. Relative luminance 0.262; OKLCH L 65.0% C 0.114 H 298.3°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#987FCB
RGBrgb(152, 127, 203)
HSLhsl(260, 42%, 65%)
HSVhsv(260, 37%, 80%)
CMYKcmyk(25.1%, 37.4%, 0%, 20.4%)
CIE-LABlab(58.19, 25.54, -35.95)
CIE-LCHlch(58.19, 44.09, 305.39°)
OKLaboklab(64.97% 0.0539 -0.1)
OKLCHoklch(64.97% 0.114 298.3)
XYZxyz(31.3153, 26.1657, 59.8890)
Luminance0.2617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FCB #B2CB7F
analogous
#7F8CCB #987FCB #BE7FCB
triadic
#987FCB #CB987F #7FCB98
tetradic
#987FCB #CB7F8C #B2CB7F #7FCBBE
square
#987FCB #CB7F8C #B2CB7F #7FCBBE
split-complementary
#987FCB #CBBE7F #8CCB7F
monochromatic
#593C94 #7553B9 #987FCB #BBABDD #DED6EE

Accessibility & contrast

On white

3.37
#987FCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#987FCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FCB
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FCB#FFFFFF#000000##000000
##987FCB1.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C8CCE
Deuteranopia (green-blind)
#708BC9
Tritanopia (blue-blind)
#8E8C9B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #987fcb;
/* rgb */ color: rgb(152, 127, 203);
/* oklch */ color: oklch(65.0% 0.114 298.3);
Tailwind
colors: {
  custom: {
    50: '#b8a4db',
    500: '#987fcb',
    950: '#000000',
  },
}
SCSS
$custom: #987fcb;
$custom-light: #b8a4db;
$custom-dark: #000000;
JSON
{
  "hex": "#987fcb",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 203
  },
  "hsl": {
    "h": 259.737,
    "s": 42.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.64971,
    "c": 0.1136,
    "h": 298.3
  },
  "luminance": 0.26166
}

Semantic roles & 50–950 ramp

primary
#987FCB
secondary
#D7E0C6
accent
#B5308A
background
#FBFAFD
surface
#F6F4FB
border
#D0CED4
text
#110F15
muted
#807F83

Preview Lab

Preview with #987FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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