#987BB1#987BB1

#987BB1 is a light, moderate violet. Relative luminance 0.240; OKLCH L 63.0% C 0.086 H 308.6°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#987BB1
RGBrgb(152, 123, 177)
HSLhsl(272, 26%, 59%)
HSVhsv(272, 31%, 69%)
CMYKcmyk(14.1%, 30.5%, 0%, 30.6%)
CIE-LABlab(56.10, 21.77, -24.38)
CIE-LCHlch(56.10, 32.68, 311.76°)
OKLaboklab(63.01% 0.0534 -0.0669)
OKLCHoklch(63.01% 0.086 308.6)
XYZxyz(27.9662, 24.0159, 44.7487)
Luminance0.2402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BB1 #94B17B
analogous
#7D7BB1 #987BB1 #B17BAF
triadic
#987BB1 #B1987B #7BB198
tetradic
#987BB1 #B17D7B #94B17B #7BAFB1
square
#987BB1 #B17D7B #94B17B #7BAFB1
split-complementary
#987BB1 #AFB17B #7BB17D
monochromatic
#5A4270 #7A5996 #987BB1 #B6A1C8 #D4C8DE

Accessibility & contrast

On white

3.62
#987BB1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#987BB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BB1
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BB1#FFFFFF#000000##000000
##987BB11.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7185B3
Deuteranopia (green-blind)
#7787AF
Tritanopia (blue-blind)
#95828E
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #987bb1;
/* rgb */ color: rgb(152, 123, 177);
/* oklch */ color: oklch(63.0% 0.086 308.6);
Tailwind
colors: {
  custom: {
    50: '#b7a1c8',
    500: '#987bb1',
    950: '#000000',
  },
}
SCSS
$custom: #987bb1;
$custom-light: #b7a1c8;
$custom-dark: #000000;
JSON
{
  "hex": "#987bb1",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 177
  },
  "hsl": {
    "h": 272.222,
    "s": 25.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.63013,
    "c": 0.08554,
    "h": 308.6
  },
  "luminance": 0.24016
}

Semantic roles & 50–950 ramp

primary
#987BB1
secondary
#C3CFB9
accent
#C26690
background
#FBF9FC
surface
#F6F2F8
border
#D0CCD1
text
#110F13
muted
#807E82

Preview Lab

Preview with #987BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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