#987EBD#987EBD

#987EBD is a light, moderate violet. Relative luminance 0.253; OKLCH L 64.1% C 0.096 H 302.7°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#987EBD
RGBrgb(152, 126, 189)
HSLhsl(265, 32%, 62%)
HSVhsv(265, 33%, 74%)
CMYKcmyk(19.6%, 33.3%, 0%, 25.9%)
CIE-LABlab(57.34, 22.77, -29.33)
CIE-LCHlch(57.34, 37.14, 307.82°)
OKLaboklab(64.12% 0.0521 -0.081)
OKLCHoklch(64.12% 0.096 302.7)
XYZxyz(29.5931, 25.2713, 51.4530)
Luminance0.2527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EBD #A3BD7E
analogous
#7E84BD #987EBD #B87EBD
triadic
#987EBD #BD987E #7EBD98
tetradic
#987EBD #BD7E84 #A3BD7E #7EBDB8
square
#987EBD #BD7E84 #A3BD7E #7EBDB8
split-complementary
#987EBD #BDB87E #84BD7E
monochromatic
#5B417F #7856A8 #987EBD #B8A6D2 #D9CFE6

Accessibility & contrast

On white

3.47
#987EBD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#987EBD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EBD
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EBD#FFFFFF#000000##000000
##987EBD1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7089C0
Deuteranopia (green-blind)
#758ABB
Tritanopia (blue-blind)
#928895
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #987ebd;
/* rgb */ color: rgb(152, 126, 189);
/* oklch */ color: oklch(64.1% 0.096 302.7);
Tailwind
colors: {
  custom: {
    50: '#b7a3d1',
    500: '#987ebd',
    950: '#000000',
  },
}
SCSS
$custom: #987ebd;
$custom-light: #b7a3d1;
$custom-dark: #000000;
JSON
{
  "hex": "#987ebd",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 189
  },
  "hsl": {
    "h": 264.762,
    "s": 32.308,
    "l": 61.765
  },
  "oklch": {
    "l": 0.64119,
    "c": 0.09627,
    "h": 302.7
  },
  "luminance": 0.25271
}

Semantic roles & 50–950 ramp

primary
#987EBD
secondary
#CDD7C0
accent
#AB3A7D
background
#FBFAFC
surface
#F6F4F9
border
#D0CED2
text
#110F14
muted
#807F82

Preview Lab

Preview with #987EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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