#987EC7#987EC7

#987EC7 is a light, moderate violet. Relative luminance 0.257; OKLCH L 64.6% C 0.110 H 299.7°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#987EC7
RGBrgb(152, 126, 199)
HSLhsl(261, 39%, 64%)
HSVhsv(261, 37%, 78%)
CMYKcmyk(23.6%, 36.7%, 0%, 22%)
CIE-LABlab(57.77, 25.14, -34.34)
CIE-LCHlch(57.77, 42.56, 306.21°)
OKLaboklab(64.59% 0.0545 -0.0954)
OKLCHoklch(64.59% 0.11 299.7)
XYZxyz(30.7163, 25.7205, 57.3681)
Luminance0.2572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EC7 #ADC77E
analogous
#7E88C7 #987EC7 #BC7EC7
triadic
#987EC7 #C7987E #7EC798
tetradic
#987EC7 #C77E88 #ADC77E #7EC7BC
square
#987EC7 #C77E88 #ADC77E #7EC7BC
split-complementary
#987EC7 #C7BC7E #88C77E
monochromatic
#5A3D8D #7653B4 #987EC7 #BAA9DA #DCD3EC

Accessibility & contrast

On white

3.42
#987EC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#987EC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EC7
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EC7#FFFFFF#000000##000000
##987EC71.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C8BCA
Deuteranopia (green-blind)
#718AC5
Tritanopia (blue-blind)
#8F8A99
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #987ec7;
/* rgb */ color: rgb(152, 126, 199);
/* oklch */ color: oklch(64.6% 0.110 299.7);
Tailwind
colors: {
  custom: {
    50: '#b7a3d8',
    500: '#987ec7',
    950: '#000000',
  },
}
SCSS
$custom: #987ec7;
$custom-light: #b7a3d8;
$custom-dark: #000000;
JSON
{
  "hex": "#987ec7",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 199
  },
  "hsl": {
    "h": 261.37,
    "s": 39.459,
    "l": 63.725
  },
  "oklch": {
    "l": 0.6459,
    "c": 0.10982,
    "h": 299.7
  },
  "luminance": 0.25721
}

Semantic roles & 50–950 ramp

primary
#987EC7
secondary
#D4DDC4
accent
#B23385
background
#FBFAFD
surface
#F6F4FA
border
#D0CED3
text
#110F14
muted
#807F83

Preview Lab

Preview with #987EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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