#987EA8#987EA8

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

Color values

HEX#987EA8
RGBrgb(152, 126, 168)
HSLhsl(277, 19%, 58%)
HSVhsv(277, 25%, 66%)
CMYKcmyk(9.5%, 25%, 0%, 34.1%)
CIE-LABlab(56.51, 18.06, -18.58)
CIE-LCHlch(56.51, 25.92, 314.18°)
OKLaboklab(63.21% 0.0461 -0.0505)
OKLCHoklch(63.21% 0.068 312.4)
XYZxyz(27.4765, 24.4246, 40.3051)
Luminance0.2442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EA8 #8EA87E
analogous
#837EA8 #987EA8 #A87EA3
triadic
#987EA8 #A8987E #7EA898
tetradic
#987EA8 #A8837E #8EA87E #7EA3A8
square
#987EA8 #A8837E #8EA87E #7EA3A8
split-complementary
#987EA8 #A3A87E #7EA883
monochromatic
#5A4566 #7A5E8B #987EA8 #B5A3C1 #D2C7D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987EA8#FFFFFF#000000##000000
##987EA81.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)
#7886AA
Deuteranopia (green-blind)
#7D88A7
Tritanopia (blue-blind)
#97838D
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #987ea8;
/* rgb */ color: rgb(152, 126, 168);
/* oklch */ color: oklch(63.2% 0.068 312.4);
Tailwind
colors: {
  custom: {
    50: '#b6a3c2',
    500: '#987ea8',
    950: '#000000',
  },
}
SCSS
$custom: #987ea8;
$custom-light: #b6a3c2;
$custom-dark: #000000;
JSON
{
  "hex": "#987ea8",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 168
  },
  "hsl": {
    "h": 277.143,
    "s": 19.444,
    "l": 57.647
  },
  "oklch": {
    "l": 0.63211,
    "c": 0.06839,
    "h": 312.4
  },
  "luminance": 0.24424
}

Semantic roles & 50–950 ramp

primary
#987EA8
secondary
#BFC9B8
accent
#BC6C8A
background
#FBFAFB
surface
#F6F3F7
border
#D0CDD0
text
#110F12
muted
#807F81

Preview Lab

Preview with #987EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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