#987DB2#987DB2

#987DB2 is a light, moderate violet. Relative luminance 0.246; OKLCH L 63.4% C 0.083 H 307.4°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#987DB2
RGBrgb(152, 125, 178)
HSLhsl(271, 26%, 59%)
HSVhsv(271, 30%, 70%)
CMYKcmyk(14.6%, 29.8%, 0%, 30.2%)
CIE-LABlab(56.64, 20.83, -24.13)
CIE-LCHlch(56.64, 31.88, 310.81°)
OKLaboklab(63.44% 0.0506 -0.0662)
OKLCHoklch(63.44% 0.083 307.4)
XYZxyz(28.3169, 24.5572, 45.3591)
Luminance0.2456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DB2 #97B27D
analogous
#7E7DB2 #987DB2 #B27DB2
triadic
#987DB2 #B2987D #7DB298
tetradic
#987DB2 #B27E7D #97B27D #7DB2B2
square
#987DB2 #B27E7D #97B27D #7DB2B2
split-complementary
#987DB2 #B2B27D #7DB27E
monochromatic
#5B4371 #795A98 #987DB2 #B6A3C9 #D5CAE0

Accessibility & contrast

On white

3.55
#987DB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#987DB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DB2
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DB2#FFFFFF#000000##000000
##987DB21.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7387B4
Deuteranopia (green-blind)
#7988B0
Tritanopia (blue-blind)
#958490
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #987db2;
/* rgb */ color: rgb(152, 125, 178);
/* oklch */ color: oklch(63.4% 0.083 307.4);
Tailwind
colors: {
  custom: {
    50: '#b7a3c9',
    500: '#987db2',
    950: '#000000',
  },
}
SCSS
$custom: #987db2;
$custom-light: #b7a3c9;
$custom-dark: #000000;
JSON
{
  "hex": "#987db2",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 178
  },
  "hsl": {
    "h": 270.566,
    "s": 25.604,
    "l": 59.412
  },
  "oklch": {
    "l": 0.63437,
    "c": 0.08329,
    "h": 307.4
  },
  "luminance": 0.24557
}

Semantic roles & 50–950 ramp

primary
#987DB2
secondary
#C5D0BB
accent
#C26693
background
#FBFAFC
surface
#F6F3F8
border
#D0CDD1
text
#110F13
muted
#807F82

Preview Lab

Preview with #987DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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