#987BCB#987BCB

#987BCB is a light, vivid violet. Relative luminance 0.252; OKLCH L 64.2% C 0.120 H 299.7°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#987BCB
RGBrgb(152, 123, 203)
HSLhsl(262, 43%, 64%)
HSVhsv(262, 39%, 80%)
CMYKcmyk(25.1%, 39.4%, 0%, 20.4%)
CIE-LABlab(57.22, 27.84, -37.46)
CIE-LCHlch(57.22, 46.68, 306.62°)
OKLaboklab(64.23% 0.0596 -0.1044)
OKLCHoklch(64.23% 0.12 299.7)
XYZxyz(30.8089, 25.1530, 59.7202)
Luminance0.2515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BCB #AECB7B
analogous
#7B86CB #987BCB #C07BCB
triadic
#987BCB #CB987B #7BCB98
tetradic
#987BCB #CB7B86 #AECB7B #7BCBC0
square
#987BCB #CB7B86 #AECB7B #7BCBC0
split-complementary
#987BCB #CBC07B #86CB7B
monochromatic
#5A3A92 #764FBA #987BCB #BAA7DC #DDD3EE

Accessibility & contrast

On white

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

On black

6.03
#987BCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BCB
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BCB#FFFFFF#000000##000000
##987BCB1.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6689CE
Deuteranopia (green-blind)
#6C89C9
Tritanopia (blue-blind)
#8E8899
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #987bcb;
/* rgb */ color: rgb(152, 123, 203);
/* oklch */ color: oklch(64.2% 0.120 299.7);
Tailwind
colors: {
  custom: {
    50: '#b8a1db',
    500: '#987bcb',
    950: '#000000',
  },
}
SCSS
$custom: #987bcb;
$custom-light: #b8a1db;
$custom-dark: #000000;
JSON
{
  "hex": "#987bcb",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 203
  },
  "hsl": {
    "h": 261.75,
    "s": 43.478,
    "l": 63.922
  },
  "oklch": {
    "l": 0.64234,
    "c": 0.12018,
    "h": 299.7
  },
  "luminance": 0.25153
}

Semantic roles & 50–950 ramp

primary
#987BCB
secondary
#D5DFC3
accent
#B72F85
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110F15
muted
#807E83

Preview Lab

Preview with #987BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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