#987CD5#987CD5

#987CD5 is a light, vivid violet. Relative luminance 0.259; OKLCH L 64.9% C 0.132 H 297.1°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#987CD5
RGBrgb(152, 124, 213)
HSLhsl(259, 51%, 66%)
HSVhsv(259, 42%, 84%)
CMYKcmyk(28.6%, 41.8%, 0%, 16.5%)
CIE-LABlab(57.94, 29.74, -41.99)
CIE-LCHlch(57.94, 51.45, 305.30°)
OKLaboklab(64.93% 0.0601 -0.1175)
OKLCHoklch(64.93% 0.132 297.1)
XYZxyz(32.1639, 25.8945, 66.2415)
Luminance0.2590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CD5 #B9D57C
analogous
#7C8CD5 #987CD5 #C47CD5
triadic
#987CD5 #D5987C #7CD598
tetradic
#987CD5 #D57C8C #B9D57C #7CD5C4
square
#987CD5 #D57C8C #B9D57C #7CD5C4
split-complementary
#987CD5 #D5C47C #8CD57C
monochromatic
#5734A2 #744EC6 #987CD5 #BCAAE4 #E1D9F3

Accessibility & contrast

On white

3.40
#987CD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#987CD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CD5
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CD5#FFFFFF#000000##000000
##987CD51.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#638CD8
Deuteranopia (green-blind)
#688AD3
Tritanopia (blue-blind)
#8B8C9E
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #987cd5;
/* rgb */ color: rgb(152, 124, 213);
/* oklch */ color: oklch(64.9% 0.132 297.1);
Tailwind
colors: {
  custom: {
    50: '#b8a2e2',
    500: '#987cd5',
    950: '#000000',
  },
}
SCSS
$custom: #987cd5;
$custom-light: #b8a2e2;
$custom-dark: #000000;
JSON
{
  "hex": "#987cd5",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 213
  },
  "hsl": {
    "h": 258.876,
    "s": 51.445,
    "l": 66.078
  },
  "oklch": {
    "l": 0.64929,
    "c": 0.13195,
    "h": 297.1
  },
  "luminance": 0.25895
}

Semantic roles & 50–950 ramp

primary
#987CD5
secondary
#DCE5C8
accent
#BF278F
background
#FBFAFD
surface
#F6F3FB
border
#D0CDD4
text
#120F15
muted
#817F83

Preview Lab

Preview with #987CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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