#987CDC#987CDC

#987CDC is a light, vivid violet. Relative luminance 0.263; OKLCH L 65.3% C 0.141 H 295.7°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#987CDC
RGBrgb(152, 124, 220)
HSLhsl(258, 58%, 67%)
HSVhsv(258, 44%, 86%)
CMYKcmyk(30.9%, 43.6%, 0%, 13.7%)
CIE-LABlab(58.28, 31.50, -45.38)
CIE-LCHlch(58.28, 55.24, 304.77°)
OKLaboklab(65.3% 0.0612 -0.1273)
OKLCHoklch(65.3% 0.141 295.7)
XYZxyz(33.0716, 26.2575, 71.0221)
Luminance0.2626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CDC #C0DC7C
analogous
#7C90DC #987CDC #C87CDC
triadic
#987CDC #DC987C #7CDC98
tetradic
#987CDC #DC7C90 #C0DC7C #7CDCC8
square
#987CDC #DC7C90 #C0DC7C #7CDCC8
split-complementary
#987CDC #DCC87C #90DC7C
monochromatic
#542FAF #724CCF #987CDC #BEACE9 #E4DDF6

Accessibility & contrast

On white

3.36
#987CDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.25
#987CDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CDC
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CDC#FFFFFF#000000##000000
##987CDC1.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F8DE0
Deuteranopia (green-blind)
#638BDA
Tritanopia (blue-blind)
#898EA1
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #987cdc;
/* rgb */ color: rgb(152, 124, 220);
/* oklch */ color: oklch(65.3% 0.141 295.7);
Tailwind
colors: {
  custom: {
    50: '#b9a2e7',
    500: '#987cdc',
    950: '#000000',
  },
}
SCSS
$custom: #987cdc;
$custom-light: #b9a2e7;
$custom-dark: #000000;
JSON
{
  "hex": "#987cdc",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 220
  },
  "hsl": {
    "h": 257.5,
    "s": 57.831,
    "l": 67.451
  },
  "oklch": {
    "l": 0.65301,
    "c": 0.1413,
    "h": 295.7
  },
  "luminance": 0.26258
}

Semantic roles & 50–950 ramp

primary
#987CDC
secondary
#E0E9CB
accent
#C52095
background
#FBFAFE
surface
#F6F3FC
border
#D0CDD5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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