#987CCC#987CCC

#987CCC is a light, moderate violet. Relative luminance 0.255; OKLCH L 64.5% C 0.120 H 299.1°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#987CCC
RGBrgb(152, 124, 204)
HSLhsl(261, 44%, 64%)
HSVhsv(261, 39%, 80%)
CMYKcmyk(25.5%, 39.2%, 0%, 20%)
CIE-LABlab(57.51, 27.51, -37.58)
CIE-LCHlch(57.51, 46.57, 306.21°)
OKLaboklab(64.47% 0.0584 -0.1047)
OKLCHoklch(64.47% 0.12 299.1)
XYZxyz(31.0531, 25.4502, 60.3914)
Luminance0.2545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CCC #B0CC7C
analogous
#7C88CC #987CCC #C07CCC
triadic
#987CCC #CC987C #7CCC98
tetradic
#987CCC #CC7C88 #B0CC7C #7CCCC0
square
#987CCC #CC7C88 #B0CC7C #7CCCC0
split-complementary
#987CCC #CCC07C #88CC7C
monochromatic
#593A94 #7550BB #987CCC #BBA8DD #DDD4EE

Accessibility & contrast

On white

3.45
#987CCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#987CCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CCC
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CCC#FFFFFF#000000##000000
##987CCC1.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#678ACF
Deuteranopia (green-blind)
#6C89CA
Tritanopia (blue-blind)
#8E899A
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #987ccc;
/* rgb */ color: rgb(152, 124, 204);
/* oklch */ color: oklch(64.5% 0.120 299.1);
Tailwind
colors: {
  custom: {
    50: '#b8a2dc',
    500: '#987ccc',
    950: '#000000',
  },
}
SCSS
$custom: #987ccc;
$custom-light: #b8a2dc;
$custom-dark: #000000;
JSON
{
  "hex": "#987ccc",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 204
  },
  "hsl": {
    "h": 261,
    "s": 43.956,
    "l": 64.314
  },
  "oklch": {
    "l": 0.64467,
    "c": 0.11988,
    "h": 299.1
  },
  "luminance": 0.2545
}

Semantic roles & 50–950 ramp

primary
#987CCC
secondary
#D6E0C4
accent
#B72E87
background
#FBFAFD
surface
#F6F3FB
border
#D0CDD4
text
#110F15
muted
#807F83

Preview Lab

Preview with #987CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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