#987DC7#987DC7

#987DC7 is a light, moderate violet. Relative luminance 0.255; OKLCH L 64.4% C 0.111 H 300.1°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#987DC7
RGBrgb(152, 125, 199)
HSLhsl(262, 40%, 64%)
HSVhsv(262, 37%, 78%)
CMYKcmyk(23.6%, 37.2%, 0%, 22%)
CIE-LABlab(57.53, 25.72, -34.73)
CIE-LCHlch(57.53, 43.21, 306.53°)
OKLaboklab(64.4% 0.0559 -0.0965)
OKLCHoklch(64.4% 0.111 300.1)
XYZxyz(30.5890, 25.4660, 57.3257)
Luminance0.2547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DC7 #ACC77D
analogous
#7D87C7 #987DC7 #BD7DC7
triadic
#987DC7 #C7987D #7DC798
tetradic
#987DC7 #C77D87 #ACC77D #7DC7BD
square
#987DC7 #C77D87 #ACC77D #7DC7BD
split-complementary
#987DC7 #C7BD7D #87C77D
monochromatic
#5A3D8D #7652B5 #987DC7 #BAA8D9 #DCD3EC

Accessibility & contrast

On white

3.45
#987DC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#987DC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DC7
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DC7#FFFFFF#000000##000000
##987DC71.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B8ACA
Deuteranopia (green-blind)
#708AC5
Tritanopia (blue-blind)
#8F8999
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #987dc7;
/* rgb */ color: rgb(152, 125, 199);
/* oklch */ color: oklch(64.4% 0.111 300.1);
Tailwind
colors: {
  custom: {
    50: '#b7a3d8',
    500: '#987dc7',
    950: '#000000',
  },
}
SCSS
$custom: #987dc7;
$custom-light: #b7a3d8;
$custom-dark: #000000;
JSON
{
  "hex": "#987dc7",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 199
  },
  "hsl": {
    "h": 261.892,
    "s": 39.785,
    "l": 63.529
  },
  "oklch": {
    "l": 0.64404,
    "c": 0.11149,
    "h": 300.1
  },
  "luminance": 0.25466
}

Semantic roles & 50–950 ramp

primary
#987DC7
secondary
#D3DDC3
accent
#B33384
background
#FBFAFD
surface
#F6F3FA
border
#D0CDD3
text
#110F14
muted
#807F83

Preview Lab

Preview with #987DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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