#987BB5#987BB5

#987BB5 is a light, moderate violet. Relative luminance 0.242; OKLCH L 63.2% C 0.091 H 306.8°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#987BB5
RGBrgb(152, 123, 181)
HSLhsl(270, 28%, 60%)
HSVhsv(270, 32%, 71%)
CMYKcmyk(16%, 32%, 0%, 29%)
CIE-LABlab(56.27, 22.67, -26.43)
CIE-LCHlch(56.27, 34.81, 310.62°)
OKLaboklab(63.19% 0.0544 -0.0727)
OKLCHoklch(63.19% 0.091 306.8)
XYZxyz(28.3708, 24.1777, 46.8793)
Luminance0.2418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BB5 #98B57B
analogous
#7B7BB5 #987BB5 #B57BB5
triadic
#987BB5 #B5987B #7BB598
tetradic
#987BB5 #B57B7B #98B57B #7BB5B5
square
#987BB5 #B57B7B #98B57B #7BB5B5
split-complementary
#987BB5 #B5B57B #7BB57B
monochromatic
#5B4174 #79579C #987BB5 #B7A2CB #D5C9E1

Accessibility & contrast

On white

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

On black

5.84
#987BB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BB5
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BB5#FFFFFF#000000##000000
##987BB51.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #987bb5;
/* rgb */ color: rgb(152, 123, 181);
/* oklch */ color: oklch(63.2% 0.091 306.8);
Tailwind
colors: {
  custom: {
    50: '#b7a1cb',
    500: '#987bb5',
    950: '#000000',
  },
}
SCSS
$custom: #987bb5;
$custom-light: #b7a1cb;
$custom-dark: #000000;
JSON
{
  "hex": "#987bb5",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 181
  },
  "hsl": {
    "h": 270,
    "s": 28.155,
    "l": 59.608
  },
  "oklch": {
    "l": 0.63189,
    "c": 0.09081,
    "h": 306.8
  },
  "luminance": 0.24178
}

Semantic roles & 50–950 ramp

primary
#987BB5
secondary
#C6D1BB
accent
#C46394
background
#FBF9FC
surface
#F6F2F8
border
#D0CCD1
text
#110F13
muted
#807E82

Preview Lab

Preview with #987BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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