#987BCC#987BCC

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

Color values

HEX#987BCC
RGBrgb(152, 123, 204)
HSLhsl(261, 44%, 64%)
HSVhsv(261, 40%, 80%)
CMYKcmyk(25.5%, 39.7%, 0%, 20%)
CIE-LABlab(57.27, 28.09, -37.96)
CIE-LCHlch(57.27, 47.22, 306.50°)
OKLaboklab(64.29% 0.0598 -0.1058)
OKLCHoklch(64.29% 0.122 299.5)
XYZxyz(30.9285, 25.2008, 60.3499)
Luminance0.2520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BCC #AFCC7B
analogous
#7B87CC #987BCC #C07BCC
triadic
#987BCC #CC987B #7BCC98
tetradic
#987BCC #CC7B87 #AFCC7B #7BCCC0
square
#987BCC #CC7B87 #AFCC7B #7BCCC0
split-complementary
#987BCC #CCC07B #87CC7B
monochromatic
#593994 #764FBB #987BCC #BAA7DD #DDD3EE

Accessibility & contrast

On white

3.48
#987BCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#987BCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BCC
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BCC#FFFFFF#000000##000000
##987BCC1.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6689CF
Deuteranopia (green-blind)
#6B89CA
Tritanopia (blue-blind)
#8E899A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #987bcc;
/* rgb */ color: rgb(152, 123, 204);
/* oklch */ color: oklch(64.3% 0.122 299.5);
Tailwind
colors: {
  custom: {
    50: '#b8a1dc',
    500: '#987bcc',
    950: '#000000',
  },
}
SCSS
$custom: #987bcc;
$custom-light: #b8a1dc;
$custom-dark: #000000;
JSON
{
  "hex": "#987bcc",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 204
  },
  "hsl": {
    "h": 261.481,
    "s": 44.262,
    "l": 64.118
  },
  "oklch": {
    "l": 0.64285,
    "c": 0.12152,
    "h": 299.5
  },
  "luminance": 0.25201
}

Semantic roles & 50–950 ramp

primary
#987BCC
secondary
#D5E0C3
accent
#B72E86
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110F15
muted
#807E83

Preview Lab

Preview with #987BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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