#987BC2#987BC2

#987BC2 is a light, moderate violet. Relative luminance 0.247; OKLCH L 63.8% C 0.108 H 302.2°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#987BC2
RGBrgb(152, 123, 194)
HSLhsl(265, 37%, 62%)
HSVhsv(265, 37%, 76%)
CMYKcmyk(21.6%, 36.6%, 0%, 23.9%)
CIE-LABlab(56.82, 25.68, -32.99)
CIE-LCHlch(56.82, 41.81, 307.90°)
OKLaboklab(63.79% 0.0577 -0.0915)
OKLCHoklch(63.79% 0.108 302.2)
XYZxyz(29.7674, 24.7364, 54.2348)
Luminance0.2474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BC2 #A5C27B
analogous
#7B82C2 #987BC2 #BC7BC2
triadic
#987BC2 #C2987B #7BC298
tetradic
#987BC2 #C27B82 #A5C27B #7BC2BC
square
#987BC2 #C27B82 #A5C27B #7BC2BC
split-complementary
#987BC2 #C2BC7B #82C27B
monochromatic
#5B3E85 #7751AF #987BC2 #B9A5D5 #D9CFE9

Accessibility & contrast

On white

3.53
#987BC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#987BC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BC2
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BC2#FFFFFF#000000##000000
##987BC21.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B88C5
Deuteranopia (green-blind)
#7088C0
Tritanopia (blue-blind)
#918695
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #987bc2;
/* rgb */ color: rgb(152, 123, 194);
/* oklch */ color: oklch(63.8% 0.108 302.2);
Tailwind
colors: {
  custom: {
    50: '#b7a1d4',
    500: '#987bc2',
    950: '#000000',
  },
}
SCSS
$custom: #987bc2;
$custom-light: #b7a1d4;
$custom-dark: #000000;
JSON
{
  "hex": "#987bc2",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 194
  },
  "hsl": {
    "h": 264.507,
    "s": 36.788,
    "l": 62.157
  },
  "oklch": {
    "l": 0.63792,
    "c": 0.10813,
    "h": 302.2
  },
  "luminance": 0.24736
}

Semantic roles & 50–950 ramp

primary
#987BC2
secondary
#CFD9BF
accent
#B0367E
background
#FBF9FD
surface
#F6F2FA
border
#D0CCD3
text
#110F14
muted
#807E83

Preview Lab

Preview with #987BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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