#987DB7#987DB7

#987DB7 is a light, moderate violet. Relative luminance 0.248; OKLCH L 63.7% C 0.090 H 305.3°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#987DB7
RGBrgb(152, 125, 183)
HSLhsl(268, 29%, 60%)
HSVhsv(268, 32%, 72%)
CMYKcmyk(16.9%, 31.7%, 0%, 28.2%)
CIE-LABlab(56.84, 21.96, -26.68)
CIE-LCHlch(56.84, 34.56, 309.46°)
OKLaboklab(63.66% 0.052 -0.0734)
OKLCHoklch(63.66% 0.09 305.3)
XYZxyz(28.8281, 24.7617, 48.0513)
Luminance0.2476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DB7 #9CB77D
analogous
#7D7FB7 #987DB7 #B57DB7
triadic
#987DB7 #B7987D #7DB798
tetradic
#987DB7 #B77D7F #9CB77D #7DB7B5
square
#987DB7 #B77D7F #9CB77D #7DB7B5
split-complementary
#987DB7 #B7B57D #7FB77D
monochromatic
#5B4277 #79589F #987DB7 #B7A4CD #D6CCE3

Accessibility & contrast

On white

3.53
#987DB7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#987DB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DB7
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DB7#FFFFFF#000000##000000
##987DB71.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7187B9
Deuteranopia (green-blind)
#7789B5
Tritanopia (blue-blind)
#938592
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #987db7;
/* rgb */ color: rgb(152, 125, 183);
/* oklch */ color: oklch(63.7% 0.090 305.3);
Tailwind
colors: {
  custom: {
    50: '#b7a3cc',
    500: '#987db7',
    950: '#000000',
  },
}
SCSS
$custom: #987db7;
$custom-light: #b7a3cc;
$custom-dark: #000000;
JSON
{
  "hex": "#987db7",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 183
  },
  "hsl": {
    "h": 267.931,
    "s": 28.713,
    "l": 60.392
  },
  "oklch": {
    "l": 0.63658,
    "c": 0.08994,
    "h": 305.3
  },
  "luminance": 0.24762
}

Semantic roles & 50–950 ramp

primary
#987DB7
secondary
#C9D3BD
accent
#A73E76
background
#FBFAFC
surface
#F6F3F9
border
#D0CDD2
text
#110F13
muted
#807F82

Preview Lab

Preview with #987DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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