#987AB2#987AB2

#987AB2 is a light, moderate violet. Relative luminance 0.238; OKLCH L 62.9% C 0.089 H 308.5°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#987AB2
RGBrgb(152, 122, 178)
HSLhsl(272, 27%, 59%)
HSVhsv(272, 31%, 70%)
CMYKcmyk(14.6%, 31.5%, 0%, 30.2%)
CIE-LABlab(55.90, 22.57, -25.27)
CIE-LCHlch(55.90, 33.88, 311.76°)
OKLaboklab(62.87% 0.0552 -0.0694)
OKLCHoklch(62.87% 0.089 308.5)
XYZxyz(27.9428, 23.8091, 45.2344)
Luminance0.2381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AB2 #94B27A
analogous
#7C7AB2 #987AB2 #B27AB0
triadic
#987AB2 #B2987A #7AB298
tetradic
#987AB2 #B27C7A #94B27A #7AB0B2
square
#987AB2 #B27C7A #94B27A #7AB0B2
split-complementary
#987AB2 #B0B27A #7AB27C
monochromatic
#5A4170 #7A5897 #987AB2 #B6A1C8 #D4C8DF

Accessibility & contrast

On white

3.64
#987AB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#987AB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AB2
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AB2#FFFFFF#000000##000000
##987AB21.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7085B4
Deuteranopia (green-blind)
#7686B0
Tritanopia (blue-blind)
#95828E
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #987ab2;
/* rgb */ color: rgb(152, 122, 178);
/* oklch */ color: oklch(62.9% 0.089 308.5);
Tailwind
colors: {
  custom: {
    50: '#b7a0c9',
    500: '#987ab2',
    950: '#000000',
  },
}
SCSS
$custom: #987ab2;
$custom-light: #b7a0c9;
$custom-dark: #000000;
JSON
{
  "hex": "#987ab2",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 178
  },
  "hsl": {
    "h": 272.143,
    "s": 26.667,
    "l": 58.824
  },
  "oklch": {
    "l": 0.62867,
    "c": 0.08864,
    "h": 308.5
  },
  "luminance": 0.23809
}

Semantic roles & 50–950 ramp

primary
#987AB2
secondary
#C3CFB9
accent
#C36591
background
#FBF9FC
surface
#F6F2F8
border
#D0CCD1
text
#110E13
muted
#807E82

Preview Lab

Preview with #987AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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