#987BB2#987BB2

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

Color values

HEX#987BB2
RGBrgb(152, 123, 178)
HSLhsl(272, 26%, 59%)
HSVhsv(272, 31%, 70%)
CMYKcmyk(14.6%, 30.9%, 0%, 30.2%)
CIE-LABlab(56.14, 21.99, -24.89)
CIE-LCHlch(56.14, 33.21, 311.46°)
OKLaboklab(63.06% 0.0536 -0.0683)
OKLCHoklch(63.06% 0.087 308.1)
XYZxyz(28.0662, 24.0559, 45.2755)
Luminance0.2406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BB2 #95B27B
analogous
#7D7BB2 #987BB2 #B27BB1
triadic
#987BB2 #B2987B #7BB298
tetradic
#987BB2 #B27D7B #95B27B #7BB1B2
square
#987BB2 #B27D7B #95B27B #7BB1B2
split-complementary
#987BB2 #B1B27B #7BB27D
monochromatic
#5B4271 #7A5897 #987BB2 #B6A2C9 #D4C8DF

Accessibility & contrast

On white

3.61
#987BB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#987BB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BB2
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BB2#FFFFFF#000000##000000
##987BB21.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7185B4
Deuteranopia (green-blind)
#7787B0
Tritanopia (blue-blind)
#95838F
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #987bb2;
/* rgb */ color: rgb(152, 123, 178);
/* oklch */ color: oklch(63.1% 0.087 308.1);
Tailwind
colors: {
  custom: {
    50: '#b7a1c9',
    500: '#987bb2',
    950: '#000000',
  },
}
SCSS
$custom: #987bb2;
$custom-light: #b7a1c9;
$custom-dark: #000000;
JSON
{
  "hex": "#987bb2",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 178
  },
  "hsl": {
    "h": 271.636,
    "s": 26.316,
    "l": 59.02
  },
  "oklch": {
    "l": 0.63056,
    "c": 0.08686,
    "h": 308.1
  },
  "luminance": 0.24056
}

Semantic roles & 50–950 ramp

primary
#987BB2
secondary
#C4CFBA
accent
#C36591
background
#FBF9FC
surface
#F6F2F8
border
#D0CCD1
text
#110F13
muted
#807E82

Preview Lab

Preview with #987BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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