#987BCE#987BCE

#987BCE is a light, vivid violet. Relative luminance 0.253; OKLCH L 64.4% C 0.124 H 299.0°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#987BCE
RGBrgb(152, 123, 206)
HSLhsl(261, 46%, 65%)
HSVhsv(261, 40%, 81%)
CMYKcmyk(26.2%, 40.3%, 0%, 19.2%)
CIE-LABlab(57.36, 28.58, -38.94)
CIE-LCHlch(57.36, 48.30, 306.27°)
OKLaboklab(64.39% 0.0602 -0.1086)
OKLCHoklch(64.39% 0.124 299)
XYZxyz(31.1699, 25.2973, 61.6213)
Luminance0.2530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BCE #B1CE7B
analogous
#7B88CE #987BCE #C27BCE
triadic
#987BCE #CE987B #7BCE98
tetradic
#987BCE #CE7B88 #B1CE7B #7BCEC2
square
#987BCE #CE7B88 #B1CE7B #7BCEC2
split-complementary
#987BCE #CEC27B #88CE7B
monochromatic
#593897 #754EBD #987BCE #BBA8DF #DED4EF

Accessibility & contrast

On white

3.47
#987BCE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.06
#987BCE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BCE
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BCE#FFFFFF#000000##000000
##987BCE1.003.476.066.06
#FFFFFF3.471.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#658AD1
Deuteranopia (green-blind)
#6A89CC
Tritanopia (blue-blind)
#8E899B
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #987bce;
/* rgb */ color: rgb(152, 123, 206);
/* oklch */ color: oklch(64.4% 0.124 299.0);
Tailwind
colors: {
  custom: {
    50: '#b8a1dd',
    500: '#987bce',
    950: '#000000',
  },
}
SCSS
$custom: #987bce;
$custom-light: #b8a1dd;
$custom-dark: #000000;
JSON
{
  "hex": "#987bce",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 206
  },
  "hsl": {
    "h": 260.964,
    "s": 45.856,
    "l": 64.51
  },
  "oklch": {
    "l": 0.64386,
    "c": 0.1242,
    "h": 299
  },
  "luminance": 0.25298
}

Semantic roles & 50–950 ramp

primary
#987BCE
secondary
#D7E1C4
accent
#B92C88
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110F15
muted
#807E83

Preview Lab

Preview with #987BCE

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

Preview Lab → · Contrast checker → · Palette generator →

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