#987EAA#987EAA

#987EAA is a light, moderate violet. Relative luminance 0.245; OKLCH L 63.3% C 0.071 H 311.1°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#987EAA
RGBrgb(152, 126, 170)
HSLhsl(275, 21%, 58%)
HSVhsv(275, 26%, 67%)
CMYKcmyk(10.6%, 25.9%, 0%, 33.3%)
CIE-LABlab(56.58, 18.49, -19.62)
CIE-LCHlch(56.58, 26.96, 313.30°)
OKLaboklab(63.29% 0.0467 -0.0534)
OKLCHoklch(63.29% 0.071 311.1)
XYZxyz(27.6642, 24.4997, 41.2940)
Luminance0.2450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EAA #90AA7E
analogous
#827EAA #987EAA #AA7EA6
triadic
#987EAA #AA987E #7EAA98
tetradic
#987EAA #AA827E #90AA7E #7EA6AA
square
#987EAA #AA827E #90AA7E #7EA6AA
split-complementary
#987EAA #A6AA7E #7EAA82
monochromatic
#5A4569 #7A5D8E #987EAA #B5A3C2 #D3C8DB

Accessibility & contrast

On white

3.56
#987EAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#987EAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EAA
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EAA#FFFFFF#000000##000000
##987EAA1.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7786AC
Deuteranopia (green-blind)
#7C88A9
Tritanopia (blue-blind)
#96848D
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #987eaa;
/* rgb */ color: rgb(152, 126, 170);
/* oklch */ color: oklch(63.3% 0.071 311.1);
Tailwind
colors: {
  custom: {
    50: '#b6a3c3',
    500: '#987eaa',
    950: '#000000',
  },
}
SCSS
$custom: #987eaa;
$custom-light: #b6a3c3;
$custom-dark: #000000;
JSON
{
  "hex": "#987eaa",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 170
  },
  "hsl": {
    "h": 275.455,
    "s": 20.561,
    "l": 58.039
  },
  "oklch": {
    "l": 0.63292,
    "c": 0.07097,
    "h": 311.1
  },
  "luminance": 0.24499
}

Semantic roles & 50–950 ramp

primary
#987EAA
secondary
#C0CBB9
accent
#BD6B8C
background
#FBFAFC
surface
#F6F3F8
border
#D0CDD1
text
#110F12
muted
#807F81

Preview Lab

Preview with #987EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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