#987CD7#987CD7

#987CD7 is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.0% C 0.135 H 296.7°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#987CD7
RGBrgb(152, 124, 215)
HSLhsl(258, 53%, 66%)
HSVhsv(258, 42%, 84%)
CMYKcmyk(29.3%, 42.3%, 0%, 15.7%)
CIE-LABlab(58.03, 30.24, -42.96)
CIE-LCHlch(58.03, 52.54, 305.14°)
OKLaboklab(65.03% 0.0604 -0.1203)
OKLCHoklch(65.03% 0.135 296.7)
XYZxyz(32.4193, 25.9966, 67.5867)
Luminance0.2600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CD7 #BBD77C
analogous
#7C8ED7 #987CD7 #C67CD7
triadic
#987CD7 #D7987C #7CD798
tetradic
#987CD7 #D77C8E #BBD77C #7CD7C6
square
#987CD7 #D77C8E #BBD77C #7CD7C6
split-complementary
#987CD7 #D7C67C #8ED77C
monochromatic
#5633A6 #734DC9 #987CD7 #BDABE5 #E2DAF4

Accessibility & contrast

On white

3.39
#987CD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#987CD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CD7
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CD7#FFFFFF#000000##000000
##987CD71.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#618CDA
Deuteranopia (green-blind)
#668AD5
Tritanopia (blue-blind)
#8B8C9F
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #987cd7;
/* rgb */ color: rgb(152, 124, 215);
/* oklch */ color: oklch(65.0% 0.135 296.7);
Tailwind
colors: {
  custom: {
    50: '#b8a2e4',
    500: '#987cd7',
    950: '#000000',
  },
}
SCSS
$custom: #987cd7;
$custom-light: #b8a2e4;
$custom-dark: #000000;
JSON
{
  "hex": "#987cd7",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 215
  },
  "hsl": {
    "h": 258.462,
    "s": 53.216,
    "l": 66.471
  },
  "oklch": {
    "l": 0.65034,
    "c": 0.13462,
    "h": 296.7
  },
  "luminance": 0.25997
}

Semantic roles & 50–950 ramp

primary
#987CD7
secondary
#DDE6C9
accent
#C12591
background
#FBFAFD
surface
#F6F3FB
border
#D0CDD4
text
#120F15
muted
#817F83

Preview Lab

Preview with #987CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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