#987BC1#987BC1

#987BC1 is a light, moderate violet. Relative luminance 0.247; OKLCH L 63.7% C 0.107 H 302.5°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#987BC1
RGBrgb(152, 123, 193)
HSLhsl(265, 36%, 62%)
HSVhsv(265, 36%, 76%)
CMYKcmyk(21.2%, 36.3%, 0%, 24.3%)
CIE-LABlab(56.77, 25.44, -32.49)
CIE-LCHlch(56.77, 41.27, 308.07°)
OKLaboklab(63.74% 0.0574 -0.09)
OKLCHoklch(63.74% 0.107 302.5)
XYZxyz(29.6555, 24.6916, 53.6454)
Luminance0.2469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BC1 #A4C17B
analogous
#7B81C1 #987BC1 #BB7BC1
triadic
#987BC1 #C1987B #7BC198
tetradic
#987BC1 #C17B81 #A4C17B #7BC1BB
square
#987BC1 #C17B81 #A4C17B #7BC1BB
split-complementary
#987BC1 #C1BB7B #81C17B
monochromatic
#5B3E84 #7851AD #987BC1 #B8A5D5 #D9CEE8

Accessibility & contrast

On white

3.54
#987BC1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#987BC1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BC1
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BC1#FFFFFF#000000##000000
##987BC11.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B88C4
Deuteranopia (green-blind)
#7188BF
Tritanopia (blue-blind)
#918695
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #987bc1;
/* rgb */ color: rgb(152, 123, 193);
/* oklch */ color: oklch(63.7% 0.107 302.5);
Tailwind
colors: {
  custom: {
    50: '#b7a1d4',
    500: '#987bc1',
    950: '#000000',
  },
}
SCSS
$custom: #987bc1;
$custom-light: #b7a1d4;
$custom-dark: #000000;
JSON
{
  "hex": "#987bc1",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 193
  },
  "hsl": {
    "h": 264.857,
    "s": 36.082,
    "l": 61.961
  },
  "oklch": {
    "l": 0.63744,
    "c": 0.10679,
    "h": 302.5
  },
  "luminance": 0.24692
}

Semantic roles & 50–950 ramp

primary
#987BC1
secondary
#CED9BF
accent
#AF377D
background
#FBF9FD
surface
#F6F2FA
border
#D0CCD3
text
#110F14
muted
#807E83

Preview Lab

Preview with #987BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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