#987ECA#987ECA

#987ECA is a light, moderate violet. Relative luminance 0.259; OKLCH L 64.7% C 0.114 H 298.9°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#987ECA
RGBrgb(152, 126, 202)
HSLhsl(261, 42%, 64%)
HSVhsv(261, 38%, 79%)
CMYKcmyk(24.8%, 37.6%, 0%, 20.8%)
CIE-LABlab(57.91, 25.87, -35.83)
CIE-LCHlch(57.91, 44.20, 305.83°)
OKLaboklab(64.74% 0.0551 -0.0997)
OKLCHoklch(64.74% 0.114 298.9)
XYZxyz(31.0680, 25.8612, 59.2206)
Luminance0.2586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987ECA #B0CA7E
analogous
#7E8ACA #987ECA #BE7ECA
triadic
#987ECA #CA987E #7ECA98
tetradic
#987ECA #CA7E8A #B0CA7E #7ECABE
square
#987ECA #CA7E8A #B0CA7E #7ECABE
split-complementary
#987ECA #CABE7E #8ACA7E
monochromatic
#593C92 #7553B8 #987ECA #BBA9DC #DDD5EE

Accessibility & contrast

On white

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

On black

6.17
#987ECA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987ECA
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987ECA#FFFFFF#000000##000000
##987ECA1.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B8BCD
Deuteranopia (green-blind)
#6F8BC8
Tritanopia (blue-blind)
#8F8B9A
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #987eca;
/* rgb */ color: rgb(152, 126, 202);
/* oklch */ color: oklch(64.7% 0.114 298.9);
Tailwind
colors: {
  custom: {
    50: '#b8a3da',
    500: '#987eca',
    950: '#000000',
  },
}
SCSS
$custom: #987eca;
$custom-light: #b8a3da;
$custom-dark: #000000;
JSON
{
  "hex": "#987eca",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 202
  },
  "hsl": {
    "h": 260.526,
    "s": 41.758,
    "l": 64.314
  },
  "oklch": {
    "l": 0.64736,
    "c": 0.11389,
    "h": 298.9
  },
  "luminance": 0.25861
}

Semantic roles & 50–950 ramp

primary
#987ECA
secondary
#D6DFC5
accent
#B53188
background
#FBFAFD
surface
#F6F4FB
border
#D0CED4
text
#110F15
muted
#807F83

Preview Lab

Preview with #987ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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