#987CB3#987CB3

#987CB3 is a light, moderate violet. Relative luminance 0.243; OKLCH L 63.3% C 0.086 H 307.3°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#987CB3
RGBrgb(152, 124, 179)
HSLhsl(271, 27%, 59%)
HSVhsv(271, 31%, 70%)
CMYKcmyk(15.1%, 30.7%, 0%, 29.8%)
CIE-LABlab(56.43, 21.64, -25.02)
CIE-LCHlch(56.43, 33.08, 310.85°)
OKLaboklab(63.29% 0.0524 -0.0687)
OKLCHoklch(63.29% 0.086 307.3)
XYZxyz(28.2917, 24.3456, 45.8478)
Luminance0.2434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CB3 #97B37C
analogous
#7D7CB3 #987CB3 #B37CB3
triadic
#987CB3 #B3987C #7CB398
tetradic
#987CB3 #B37D7C #97B37C #7CB3B3
square
#987CB3 #B37D7C #97B37C #7CB3B3
split-complementary
#987CB3 #B3B37C #7CB37D
monochromatic
#5B4272 #795999 #987CB3 #B6A3C9 #D5C9E0

Accessibility & contrast

On white

3.58
#987CB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#987CB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CB3
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CB3#FFFFFF#000000##000000
##987CB31.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7286B5
Deuteranopia (green-blind)
#7788B1
Tritanopia (blue-blind)
#948490
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #987cb3;
/* rgb */ color: rgb(152, 124, 179);
/* oklch */ color: oklch(63.3% 0.086 307.3);
Tailwind
colors: {
  custom: {
    50: '#b7a2ca',
    500: '#987cb3',
    950: '#000000',
  },
}
SCSS
$custom: #987cb3;
$custom-light: #b7a2ca;
$custom-dark: #000000;
JSON
{
  "hex": "#987cb3",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 179
  },
  "hsl": {
    "h": 270.545,
    "s": 26.57,
    "l": 59.412
  },
  "oklch": {
    "l": 0.6329,
    "c": 0.08639,
    "h": 307.3
  },
  "luminance": 0.24345
}

Semantic roles & 50–950 ramp

primary
#987CB3
secondary
#C5D0BB
accent
#C36593
background
#FBF9FC
surface
#F6F2F8
border
#D0CCD1
text
#110F13
muted
#807E82

Preview Lab

Preview with #987CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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