#987CCE#987CCE

#987CCE is a light, vivid violet. Relative luminance 0.255; OKLCH L 64.6% C 0.123 H 298.6°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#987CCE
RGBrgb(152, 124, 206)
HSLhsl(260, 46%, 65%)
HSVhsv(260, 40%, 81%)
CMYKcmyk(26.2%, 39.8%, 0%, 19.2%)
CIE-LABlab(57.60, 28.00, -38.57)
CIE-LCHlch(57.60, 47.66, 305.98°)
OKLaboklab(64.57% 0.0588 -0.1076)
OKLCHoklch(64.57% 0.123 298.6)
XYZxyz(31.2946, 25.5467, 61.6628)
Luminance0.2555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CCE #B2CE7C
analogous
#7C89CE #987CCE #C17CCE
triadic
#987CCE #CE987C #7CCE98
tetradic
#987CCE #CE7C89 #B2CE7C #7CCEC1
square
#987CCE #CE7C89 #B2CE7C #7CCEC1
split-complementary
#987CCE #CEC17C #89CE7C
monochromatic
#593997 #754FBD #987CCE #BBA9DF #DED5EF

Accessibility & contrast

On white

3.44
#987CCE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#987CCE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CCE
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CCE#FFFFFF#000000##000000
##987CCE1.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#668AD1
Deuteranopia (green-blind)
#6B8ACC
Tritanopia (blue-blind)
#8D8A9B
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #987cce;
/* rgb */ color: rgb(152, 124, 206);
/* oklch */ color: oklch(64.6% 0.123 298.6);
Tailwind
colors: {
  custom: {
    50: '#b8a2dd',
    500: '#987cce',
    950: '#000000',
  },
}
SCSS
$custom: #987cce;
$custom-light: #b8a2dd;
$custom-dark: #000000;
JSON
{
  "hex": "#987cce",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 206
  },
  "hsl": {
    "h": 260.488,
    "s": 45.556,
    "l": 64.706
  },
  "oklch": {
    "l": 0.64568,
    "c": 0.12256,
    "h": 298.6
  },
  "luminance": 0.25547
}

Semantic roles & 50–950 ramp

primary
#987CCE
secondary
#D7E1C5
accent
#B92D89
background
#FBFAFD
surface
#F6F3FB
border
#D0CDD4
text
#110F15
muted
#807F83

Preview Lab

Preview with #987CCE

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

Preview Lab → · Contrast checker → · Palette generator →

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