#987BCD#987BCD

#987BCD is a light, vivid violet. Relative luminance 0.252; OKLCH L 64.3% C 0.123 H 299.2°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#987BCD
RGBrgb(152, 123, 205)
HSLhsl(261, 45%, 64%)
HSVhsv(261, 40%, 80%)
CMYKcmyk(25.9%, 40%, 0%, 19.6%)
CIE-LABlab(57.32, 28.33, -38.45)
CIE-LCHlch(57.32, 47.76, 306.38°)
OKLaboklab(64.33% 0.06 -0.1072)
OKLCHoklch(64.33% 0.123 299.2)
XYZxyz(31.0488, 25.2489, 60.9835)
Luminance0.2525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BCD #B0CD7B
analogous
#7B87CD #987BCD #C17BCD
triadic
#987BCD #CD987B #7BCD98
tetradic
#987BCD #CD7B87 #B0CD7B #7BCDC1
square
#987BCD #CD7B87 #B0CD7B #7BCDC1
split-complementary
#987BCD #CDC17B #87CD7B
monochromatic
#593895 #754FBC #987BCD #BBA7DE #DDD4EF

Accessibility & contrast

On white

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

On black

6.05
#987BCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BCD
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BCD#FFFFFF#000000##000000
##987BCD1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#658AD0
Deuteranopia (green-blind)
#6B89CB
Tritanopia (blue-blind)
#8E899A
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #987bcd;
/* rgb */ color: rgb(152, 123, 205);
/* oklch */ color: oklch(64.3% 0.123 299.2);
Tailwind
colors: {
  custom: {
    50: '#b8a1dc',
    500: '#987bcd',
    950: '#000000',
  },
}
SCSS
$custom: #987bcd;
$custom-light: #b8a1dc;
$custom-dark: #000000;
JSON
{
  "hex": "#987bcd",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 205
  },
  "hsl": {
    "h": 261.22,
    "s": 45.055,
    "l": 64.314
  },
  "oklch": {
    "l": 0.64335,
    "c": 0.12286,
    "h": 299.2
  },
  "luminance": 0.25249
}

Semantic roles & 50–950 ramp

primary
#987BCD
secondary
#D6E0C4
accent
#B82D87
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110F15
muted
#807E83

Preview Lab

Preview with #987BCD

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

Preview Lab → · Contrast checker → · Palette generator →

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