#987DCA#987DCA

#987DCA is a light, moderate violet. Relative luminance 0.256; OKLCH L 64.6% C 0.116 H 299.3°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#987DCA
RGBrgb(152, 125, 202)
HSLhsl(261, 42%, 64%)
HSVhsv(261, 38%, 79%)
CMYKcmyk(24.8%, 38.1%, 0%, 20.8%)
CIE-LABlab(57.66, 26.45, -36.21)
CIE-LCHlch(57.66, 44.84, 306.14°)
OKLaboklab(64.55% 0.0565 -0.1008)
OKLCHoklch(64.55% 0.116 299.3)
XYZxyz(30.9408, 25.6067, 59.1782)
Luminance0.2561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DCA #AFCA7D
analogous
#7D89CA #987DCA #BF7DCA
triadic
#987DCA #CA987D #7DCA98
tetradic
#987DCA #CA7D89 #AFCA7D #7DCABF
square
#987DCA #CA7D89 #AFCA7D #7DCABF
split-complementary
#987DCA #CABF7D #89CA7D
monochromatic
#593B91 #7652B8 #987DCA #BAA8DC #DDD4ED

Accessibility & contrast

On white

3.43
#987DCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#987DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DCA
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DCA#FFFFFF#000000##000000
##987DCA1.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#698ACD
Deuteranopia (green-blind)
#6E8AC8
Tritanopia (blue-blind)
#8F8A9A
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #987dca;
/* rgb */ color: rgb(152, 125, 202);
/* oklch */ color: oklch(64.6% 0.116 299.3);
Tailwind
colors: {
  custom: {
    50: '#b8a3da',
    500: '#987dca',
    950: '#000000',
  },
}
SCSS
$custom: #987dca;
$custom-light: #b8a3da;
$custom-dark: #000000;
JSON
{
  "hex": "#987dca",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 202
  },
  "hsl": {
    "h": 261.039,
    "s": 42.077,
    "l": 64.118
  },
  "oklch": {
    "l": 0.64552,
    "c": 0.11553,
    "h": 299.3
  },
  "luminance": 0.25607
}

Semantic roles & 50–950 ramp

primary
#987DCA
secondary
#D5DFC4
accent
#B53087
background
#FBFAFD
surface
#F6F3FB
border
#D0CDD4
text
#110F15
muted
#807F83

Preview Lab

Preview with #987DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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