#987EA7#987EA7

#987EA7 is a light, moderate violet. Relative luminance 0.244; OKLCH L 63.2% C 0.067 H 313.0°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#987EA7
RGBrgb(152, 126, 167)
HSLhsl(278, 19%, 57%)
HSVhsv(278, 25%, 65%)
CMYKcmyk(9%, 24.6%, 0%, 34.5%)
CIE-LABlab(56.47, 17.85, -18.07)
CIE-LCHlch(56.47, 25.39, 314.65°)
OKLaboklab(63.17% 0.0458 -0.0491)
OKLCHoklch(63.17% 0.067 313)
XYZxyz(27.3837, 24.3875, 39.8164)
Luminance0.2439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EA7 #8DA77E
analogous
#847EA7 #987EA7 #A77EA1
triadic
#987EA7 #A7987E #7EA798
tetradic
#987EA7 #A7847E #8DA77E #7EA1A7
square
#987EA7 #A7847E #8DA77E #7EA1A7
split-complementary
#987EA7 #A1A77E #7EA784
monochromatic
#5A4565 #7A5E8A #987EA7 #B5A2C0 #D2C7D9

Accessibility & contrast

On white

3.57
#987EA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#987EA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EA7
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EA7#FFFFFF#000000##000000
##987EA71.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7886A9
Deuteranopia (green-blind)
#7D88A6
Tritanopia (blue-blind)
#97838C
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #987ea7;
/* rgb */ color: rgb(152, 126, 167);
/* oklch */ color: oklch(63.2% 0.067 313.0);
Tailwind
colors: {
  custom: {
    50: '#b6a3c1',
    500: '#987ea7',
    950: '#000000',
  },
}
SCSS
$custom: #987ea7;
$custom-light: #b6a3c1;
$custom-dark: #000000;
JSON
{
  "hex": "#987ea7",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 167
  },
  "hsl": {
    "h": 278.049,
    "s": 18.894,
    "l": 57.451
  },
  "oklch": {
    "l": 0.6317,
    "c": 0.0671,
    "h": 313
  },
  "luminance": 0.24387
}

Semantic roles & 50–950 ramp

primary
#987EA7
secondary
#BEC9B8
accent
#BC6C89
background
#FBFAFB
surface
#F6F3F7
border
#D0CDD0
text
#110F12
muted
#807F81

Preview Lab

Preview with #987EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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