#987EA6#987EA6

#987EA6 is a light, moderate violet. Relative luminance 0.243; OKLCH L 63.1% C 0.066 H 313.6°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#987EA6
RGBrgb(152, 126, 166)
HSLhsl(279, 18%, 57%)
HSVhsv(279, 24%, 65%)
CMYKcmyk(8.4%, 24.1%, 0%, 34.9%)
CIE-LABlab(56.44, 17.63, -17.55)
CIE-LCHlch(56.44, 24.88, 315.14°)
OKLaboklab(63.13% 0.0454 -0.0476)
OKLCHoklch(63.13% 0.066 313.6)
XYZxyz(27.2916, 24.3506, 39.3314)
Luminance0.2435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EA6 #8CA67E
analogous
#847EA6 #987EA6 #A67EA0
triadic
#987EA6 #A6987E #7EA698
tetradic
#987EA6 #A6847E #8CA67E #7EA0A6
square
#987EA6 #A6847E #8CA67E #7EA0A6
split-complementary
#987EA6 #A0A67E #7EA684
monochromatic
#594564 #7A5E89 #987EA6 #B5A2BF #D2C6D8

Accessibility & contrast

On white

3.58
#987EA6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#987EA6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EA6
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EA6#FFFFFF#000000##000000
##987EA61.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #987ea6;
/* rgb */ color: rgb(152, 126, 166);
/* oklch */ color: oklch(63.1% 0.066 313.6);
Tailwind
colors: {
  custom: {
    50: '#b6a3c0',
    500: '#987ea6',
    950: '#000000',
  },
}
SCSS
$custom: #987ea6;
$custom-light: #b6a3c0;
$custom-dark: #000000;
JSON
{
  "hex": "#987ea6",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 166
  },
  "hsl": {
    "h": 279,
    "s": 18.349,
    "l": 57.255
  },
  "oklch": {
    "l": 0.6313,
    "c": 0.06582,
    "h": 313.6
  },
  "luminance": 0.2435
}

Semantic roles & 50–950 ramp

primary
#987EA6
secondary
#BDC8B8
accent
#BB6D88
background
#FBFAFB
surface
#F6F3F7
border
#D0CDD0
text
#110F12
muted
#807F81

Preview Lab

Preview with #987EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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