#987DCD#987DCD

#987DCD is a light, moderate violet. Relative luminance 0.258; OKLCH L 64.7% C 0.120 H 298.6°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#987DCD
RGBrgb(152, 125, 205)
HSLhsl(260, 44%, 65%)
HSVhsv(260, 39%, 80%)
CMYKcmyk(25.9%, 39%, 0%, 19.6%)
CIE-LABlab(57.80, 27.18, -37.69)
CIE-LCHlch(57.80, 46.47, 305.79°)
OKLaboklab(64.7% 0.0572 -0.105)
OKLCHoklch(64.7% 0.12 298.6)
XYZxyz(31.2994, 25.7502, 61.0671)
Luminance0.2575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DCD #B2CD7D
analogous
#7D8ACD #987DCD #C07DCD
triadic
#987DCD #CD987D #7DCD98
tetradic
#987DCD #CD7D8A #B2CD7D #7DCDC0
square
#987DCD #CD7D8A #B2CD7D #7DCDC0
split-complementary
#987DCD #CDC07D #8ACD7D
monochromatic
#593A96 #7551BC #987DCD #BBA9DE #DED5EF

Accessibility & contrast

On white

3.41
#987DCD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#987DCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DCD
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DCD#FFFFFF#000000##000000
##987DCD1.003.416.156.15
#FFFFFF3.411.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#688BD0
Deuteranopia (green-blind)
#6D8ACB
Tritanopia (blue-blind)
#8E8B9B
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #987dcd;
/* rgb */ color: rgb(152, 125, 205);
/* oklch */ color: oklch(64.7% 0.120 298.6);
Tailwind
colors: {
  custom: {
    50: '#b8a3dc',
    500: '#987dcd',
    950: '#000000',
  },
}
SCSS
$custom: #987dcd;
$custom-light: #b8a3dc;
$custom-dark: #000000;
JSON
{
  "hex": "#987dcd",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 205
  },
  "hsl": {
    "h": 260.25,
    "s": 44.444,
    "l": 64.706
  },
  "oklch": {
    "l": 0.64701,
    "c": 0.11959,
    "h": 298.6
  },
  "luminance": 0.2575
}

Semantic roles & 50–950 ramp

primary
#987DCD
secondary
#D7E1C5
accent
#B82E89
background
#FBFAFD
surface
#F6F3FB
border
#D0CDD4
text
#110F15
muted
#807F83

Preview Lab

Preview with #987DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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