#987BC9#987BC9

#987BC9 is a light, moderate violet. Relative luminance 0.251; OKLCH L 64.1% C 0.117 H 300.2°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#987BC9
RGBrgb(152, 123, 201)
HSLhsl(262, 42%, 64%)
HSVhsv(262, 39%, 79%)
CMYKcmyk(24.4%, 38.8%, 0%, 21.2%)
CIE-LABlab(57.13, 27.36, -36.48)
CIE-LCHlch(57.13, 45.60, 306.87°)
OKLaboklab(64.13% 0.0592 -0.1015)
OKLCHoklch(64.13% 0.118 300.2)
XYZxyz(30.5721, 25.0582, 58.4731)
Luminance0.2506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BC9 #ACC97B
analogous
#7B85C9 #987BC9 #BF7BC9
triadic
#987BC9 #C9987B #7BC998
tetradic
#987BC9 #C97B85 #ACC97B #7BC9BF
square
#987BC9 #C97B85 #ACC97B #7BC9BF
split-complementary
#987BC9 #C9BF7B #85C97B
monochromatic
#5A3B8F #7650B7 #987BC9 #BAA6DB #DCD2ED

Accessibility & contrast

On white

3.49
#987BC9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#987BC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BC9
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BC9#FFFFFF#000000##000000
##987BC91.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6789CC
Deuteranopia (green-blind)
#6D89C7
Tritanopia (blue-blind)
#8F8898
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #987bc9;
/* rgb */ color: rgb(152, 123, 201);
/* oklch */ color: oklch(64.1% 0.117 300.2);
Tailwind
colors: {
  custom: {
    50: '#b8a1d9',
    500: '#987bc9',
    950: '#000000',
  },
}
SCSS
$custom: #987bc9;
$custom-light: #b8a1d9;
$custom-dark: #000000;
JSON
{
  "hex": "#987bc9",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 201
  },
  "hsl": {
    "h": 262.308,
    "s": 41.935,
    "l": 63.529
  },
  "oklch": {
    "l": 0.64134,
    "c": 0.1175,
    "h": 300.2
  },
  "luminance": 0.25058
}

Semantic roles & 50–950 ramp

primary
#987BC9
secondary
#D3DEC2
accent
#B53084
background
#FBF9FD
surface
#F6F2FA
border
#D0CCD3
text
#110F15
muted
#807E83

Preview Lab

Preview with #987BC9

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

Preview Lab → · Contrast checker → · Palette generator →

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