#987BC4#987BC4

#987BC4 is a light, moderate violet. Relative luminance 0.248; OKLCH L 63.9% C 0.111 H 301.6°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#987BC4
RGBrgb(152, 123, 196)
HSLhsl(264, 38%, 63%)
HSVhsv(264, 37%, 77%)
CMYKcmyk(22.4%, 37.2%, 0%, 23.1%)
CIE-LABlab(56.91, 26.16, -33.99)
CIE-LCHlch(56.91, 42.89, 307.58°)
OKLaboklab(63.89% 0.0581 -0.0943)
OKLCHoklch(63.89% 0.111 301.6)
XYZxyz(29.9935, 24.8268, 55.4258)
Luminance0.2483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BC4 #A7C47B
analogous
#7B82C4 #987BC4 #BD7BC4
triadic
#987BC4 #C4987B #7BC498
tetradic
#987BC4 #C47B82 #A7C47B #7BC4BD
square
#987BC4 #C47B82 #A7C47B #7BC4BD
split-complementary
#987BC4 #C4BD7B #82C47B
monochromatic
#5B3D88 #7751B1 #987BC4 #B9A5D7 #DAD0EA

Accessibility & contrast

On white

3.52
#987BC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#987BC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BC4
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BC4#FFFFFF#000000##000000
##987BC41.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A88C7
Deuteranopia (green-blind)
#6F88C2
Tritanopia (blue-blind)
#908796
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #987bc4;
/* rgb */ color: rgb(152, 123, 196);
/* oklch */ color: oklch(63.9% 0.111 301.6);
Tailwind
colors: {
  custom: {
    50: '#b7a1d6',
    500: '#987bc4',
    950: '#000000',
  },
}
SCSS
$custom: #987bc4;
$custom-light: #b7a1d6;
$custom-dark: #000000;
JSON
{
  "hex": "#987bc4",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 196
  },
  "hsl": {
    "h": 263.836,
    "s": 38.22,
    "l": 62.549
  },
  "oklch": {
    "l": 0.63889,
    "c": 0.1108,
    "h": 301.6
  },
  "luminance": 0.24827
}

Semantic roles & 50–950 ramp

primary
#987BC4
secondary
#D0DBC0
accent
#B13480
background
#FBF9FD
surface
#F6F2FA
border
#D0CCD3
text
#110F14
muted
#807E83

Preview Lab

Preview with #987BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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