#987ECB#987ECB

#987ECB is a light, moderate violet. Relative luminance 0.259; OKLCH L 64.8% C 0.115 H 298.7°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#987ECB
RGBrgb(152, 126, 203)
HSLhsl(260, 43%, 65%)
HSVhsv(260, 38%, 80%)
CMYKcmyk(25.1%, 37.9%, 0%, 20.4%)
CIE-LABlab(57.95, 26.11, -36.33)
CIE-LCHlch(57.95, 44.74, 305.71°)
OKLaboklab(64.79% 0.0553 -0.1011)
OKLCHoklch(64.79% 0.115 298.7)
XYZxyz(31.1868, 25.9087, 59.8462)
Luminance0.2591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987ECB #B1CB7E
analogous
#7E8BCB #987ECB #BF7ECB
triadic
#987ECB #CB987E #7ECB98
tetradic
#987ECB #CB7E8B #B1CB7E #7ECBBF
square
#987ECB #CB7E8B #B1CB7E #7ECBBF
split-complementary
#987ECB #CBBF7E #8BCB7E
monochromatic
#593B93 #7552B9 #987ECB #BBAADD #DED5EE

Accessibility & contrast

On white

3.40
#987ECB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#987ECB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987ECB
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987ECB#FFFFFF#000000##000000
##987ECB1.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A8BCE
Deuteranopia (green-blind)
#6F8BC9
Tritanopia (blue-blind)
#8E8B9B
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #987ecb;
/* rgb */ color: rgb(152, 126, 203);
/* oklch */ color: oklch(64.8% 0.115 298.7);
Tailwind
colors: {
  custom: {
    50: '#b8a3db',
    500: '#987ecb',
    950: '#000000',
  },
}
SCSS
$custom: #987ecb;
$custom-light: #b8a3db;
$custom-dark: #000000;
JSON
{
  "hex": "#987ecb",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 203
  },
  "hsl": {
    "h": 260.26,
    "s": 42.541,
    "l": 64.51
  },
  "oklch": {
    "l": 0.64786,
    "c": 0.11524,
    "h": 298.7
  },
  "luminance": 0.25909
}

Semantic roles & 50–950 ramp

primary
#987ECB
secondary
#D7E0C5
accent
#B63088
background
#FBFAFD
surface
#F6F4FB
border
#D0CED4
text
#110F15
muted
#807F83

Preview Lab

Preview with #987ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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