#987BC7#987BC7

#987BC7 is a light, moderate violet. Relative luminance 0.250; OKLCH L 64.0% C 0.115 H 300.8°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#987BC7
RGBrgb(152, 123, 199)
HSLhsl(263, 40%, 63%)
HSVhsv(263, 38%, 78%)
CMYKcmyk(23.6%, 38.2%, 0%, 22%)
CIE-LABlab(57.04, 26.88, -35.48)
CIE-LCHlch(57.04, 44.51, 307.14°)
OKLaboklab(64.04% 0.0588 -0.0986)
OKLCHoklch(64.04% 0.115 300.8)
XYZxyz(30.3384, 24.9648, 57.2421)
Luminance0.2497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BC7 #AAC77B
analogous
#7B84C7 #987BC7 #BE7BC7
triadic
#987BC7 #C7987B #7BC798
tetradic
#987BC7 #C77B84 #AAC77B #7BC7BE
square
#987BC7 #C77B84 #AAC77B #7BC7BE
split-complementary
#987BC7 #C7BE7B #84C77B
monochromatic
#5A3B8C #7650B5 #987BC7 #BAA6D9 #DBD1EB

Accessibility & contrast

On white

3.50
#987BC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#987BC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BC7
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BC7#FFFFFF#000000##000000
##987BC71.003.505.995.99
#FFFFFF3.501.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6889CA
Deuteranopia (green-blind)
#6E89C5
Tritanopia (blue-blind)
#908798
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #987bc7;
/* rgb */ color: rgb(152, 123, 199);
/* oklch */ color: oklch(64.0% 0.115 300.8);
Tailwind
colors: {
  custom: {
    50: '#b8a1d8',
    500: '#987bc7',
    950: '#000000',
  },
}
SCSS
$custom: #987bc7;
$custom-light: #b8a1d8;
$custom-dark: #000000;
JSON
{
  "hex": "#987bc7",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 199
  },
  "hsl": {
    "h": 262.895,
    "s": 40.426,
    "l": 63.137
  },
  "oklch": {
    "l": 0.64035,
    "c": 0.11482,
    "h": 300.8
  },
  "luminance": 0.24965
}

Semantic roles & 50–950 ramp

primary
#987BC7
secondary
#D2DDC1
accent
#B33282
background
#FBF9FD
surface
#F6F2FA
border
#D0CCD3
text
#110F14
muted
#807E83

Preview Lab

Preview with #987BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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