#987FCE#987FCE

#987FCE is a light, moderate violet. Relative luminance 0.263; OKLCH L 65.1% C 0.118 H 297.6°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#987FCE
RGBrgb(152, 127, 206)
HSLhsl(259, 45%, 65%)
HSVhsv(259, 38%, 81%)
CMYKcmyk(26.2%, 38.3%, 0%, 19.2%)
CIE-LABlab(58.33, 26.27, -37.43)
CIE-LCHlch(58.33, 45.73, 305.06°)
OKLaboklab(65.12% 0.0545 -0.1043)
OKLCHoklch(65.12% 0.118 297.6)
XYZxyz(31.6763, 26.3101, 61.7901)
Luminance0.2631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FCE #B5CE7F
analogous
#7F8DCE #987FCE #BF7FCE
triadic
#987FCE #CE987F #7FCE98
tetradic
#987FCE #CE7F8D #B5CE7F #7FCEBF
square
#987FCE #CE7F8D #B5CE7F #7FCEBF
split-complementary
#987FCE #CEBF7F #8DCE7F
monochromatic
#583A98 #7453BD #987FCE #BCABDF #DFD8F0

Accessibility & contrast

On white

3.35
#987FCE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#987FCE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FCE
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FCE#FFFFFF#000000##000000
##987FCE1.003.356.266.26
#FFFFFF3.351.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A8CD1
Deuteranopia (green-blind)
#6E8BCC
Tritanopia (blue-blind)
#8D8C9D
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #987fce;
/* rgb */ color: rgb(152, 127, 206);
/* oklch */ color: oklch(65.1% 0.118 297.6);
Tailwind
colors: {
  custom: {
    50: '#b8a4dd',
    500: '#987fce',
    950: '#000000',
  },
}
SCSS
$custom: #987fce;
$custom-light: #b8a4dd;
$custom-dark: #000000;
JSON
{
  "hex": "#987fce",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 206
  },
  "hsl": {
    "h": 258.987,
    "s": 44.633,
    "l": 65.294
  },
  "oklch": {
    "l": 0.65119,
    "c": 0.11767,
    "h": 297.6
  },
  "luminance": 0.2631
}

Semantic roles & 50–950 ramp

primary
#987FCE
secondary
#D9E2C7
accent
#B82E8C
background
#FBFAFD
surface
#F6F4FB
border
#D0CED4
text
#110F15
muted
#807F83

Preview Lab

Preview with #987FCE

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

Preview Lab → · Contrast checker → · Palette generator →

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