#987FC4#987FC4

#987FC4 is a light, moderate violet. Relative luminance 0.258; OKLCH L 64.6% C 0.104 H 300.2°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#987FC4
RGBrgb(152, 127, 196)
HSLhsl(262, 37%, 63%)
HSVhsv(262, 35%, 77%)
CMYKcmyk(22.4%, 35.2%, 0%, 23.1%)
CIE-LABlab(57.88, 23.85, -32.47)
CIE-LCHlch(57.88, 40.28, 306.30°)
OKLaboklab(64.63% 0.0523 -0.09)
OKLCHoklch(64.63% 0.104 300.2)
XYZxyz(30.4999, 25.8396, 55.5946)
Luminance0.2584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FC4 #ABC47F
analogous
#7F88C4 #987FC4 #BA7FC4
triadic
#987FC4 #C4987F #7FC498
tetradic
#987FC4 #C47F88 #ABC47F #7FC4BA
square
#987FC4 #C47F88 #ABC47F #7FC4BA
split-complementary
#987FC4 #C4BA7F #88C47F
monochromatic
#5A3F89 #7655B1 #987FC4 #BAA9D7 #DBD3EB

Accessibility & contrast

On white

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

On black

6.17
#987FC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FC4
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FC4#FFFFFF#000000##000000
##987FC41.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F8BC7
Deuteranopia (green-blind)
#738BC2
Tritanopia (blue-blind)
#908A98
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #987fc4;
/* rgb */ color: rgb(152, 127, 196);
/* oklch */ color: oklch(64.6% 0.104 300.2);
Tailwind
colors: {
  custom: {
    50: '#b7a4d6',
    500: '#987fc4',
    950: '#000000',
  },
}
SCSS
$custom: #987fc4;
$custom-light: #b7a4d6;
$custom-dark: #000000;
JSON
{
  "hex": "#987fc4",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 196
  },
  "hsl": {
    "h": 261.739,
    "s": 36.898,
    "l": 63.333
  },
  "oklch": {
    "l": 0.64633,
    "c": 0.10408,
    "h": 300.2
  },
  "luminance": 0.2584
}

Semantic roles & 50–950 ramp

primary
#987FC4
secondary
#D3DCC3
accent
#B03684
background
#FBFAFD
surface
#F6F4FA
border
#D0CED3
text
#110F14
muted
#807F83

Preview Lab

Preview with #987FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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