#987BB4#987BB4

#987BB4 is a light, moderate violet. Relative luminance 0.241; OKLCH L 63.1% C 0.089 H 307.3°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#987BB4
RGBrgb(152, 123, 180)
HSLhsl(271, 28%, 59%)
HSVhsv(271, 32%, 71%)
CMYKcmyk(15.6%, 31.7%, 0%, 29.4%)
CIE-LABlab(56.22, 22.44, -25.92)
CIE-LCHlch(56.22, 34.28, 310.89°)
OKLaboklab(63.15% 0.0542 -0.0712)
OKLCHoklch(63.15% 0.089 307.3)
XYZxyz(28.2685, 24.1368, 46.3408)
Luminance0.2414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BB4 #97B47B
analogous
#7C7BB4 #987BB4 #B47BB4
triadic
#987BB4 #B4987B #7BB498
tetradic
#987BB4 #B47C7B #97B47B #7BB4B4
square
#987BB4 #B47C7B #97B47B #7BB4B4
split-complementary
#987BB4 #B4B47B #7BB47C
monochromatic
#5B4173 #79589A #987BB4 #B6A2CA #D5C9E0

Accessibility & contrast

On white

3.60
#987BB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#987BB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BB4
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BB4#FFFFFF#000000##000000
##987BB41.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7086B6
Deuteranopia (green-blind)
#7687B2
Tritanopia (blue-blind)
#948390
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #987bb4;
/* rgb */ color: rgb(152, 123, 180);
/* oklch */ color: oklch(63.1% 0.089 307.3);
Tailwind
colors: {
  custom: {
    50: '#b7a1ca',
    500: '#987bb4',
    950: '#000000',
  },
}
SCSS
$custom: #987bb4;
$custom-light: #b7a1ca;
$custom-dark: #000000;
JSON
{
  "hex": "#987bb4",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 180
  },
  "hsl": {
    "h": 270.526,
    "s": 27.536,
    "l": 59.412
  },
  "oklch": {
    "l": 0.63145,
    "c": 0.08949,
    "h": 307.3
  },
  "luminance": 0.24137
}

Semantic roles & 50–950 ramp

primary
#987BB4
secondary
#C5D1BA
accent
#C46493
background
#FBF9FC
surface
#F6F2F8
border
#D0CCD1
text
#110F13
muted
#807E82

Preview Lab

Preview with #987BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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