#987BC3#987BC3

#987BC3 is a light, moderate violet. Relative luminance 0.248; OKLCH L 63.8% C 0.109 H 301.9°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#987BC3
RGBrgb(152, 123, 195)
HSLhsl(264, 38%, 62%)
HSVhsv(264, 37%, 76%)
CMYKcmyk(22.1%, 36.9%, 0%, 23.5%)
CIE-LABlab(56.86, 25.92, -33.49)
CIE-LCHlch(56.86, 42.35, 307.74°)
OKLaboklab(63.84% 0.0579 -0.0929)
OKLCHoklch(63.84% 0.109 301.9)
XYZxyz(29.8801, 24.7814, 54.8283)
Luminance0.2478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BC3 #A6C37B
analogous
#7B82C3 #987BC3 #BC7BC3
triadic
#987BC3 #C3987B #7BC398
tetradic
#987BC3 #C37B82 #A6C37B #7BC3BC
square
#987BC3 #C37B82 #A6C37B #7BC3BC
split-complementary
#987BC3 #C3BC7B #82C37B
monochromatic
#5B3D86 #7751B0 #987BC3 #B9A5D6 #DACFE9

Accessibility & contrast

On white

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

On black

5.96
#987BC3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BC3
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BC3#FFFFFF#000000##000000
##987BC31.003.535.965.96
#FFFFFF3.531.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A88C6
Deuteranopia (green-blind)
#7088C1
Tritanopia (blue-blind)
#918696
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #987bc3;
/* rgb */ color: rgb(152, 123, 195);
/* oklch */ color: oklch(63.8% 0.109 301.9);
Tailwind
colors: {
  custom: {
    50: '#b7a1d5',
    500: '#987bc3',
    950: '#000000',
  },
}
SCSS
$custom: #987bc3;
$custom-light: #b7a1d5;
$custom-dark: #000000;
JSON
{
  "hex": "#987bc3",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 195
  },
  "hsl": {
    "h": 264.167,
    "s": 37.5,
    "l": 62.353
  },
  "oklch": {
    "l": 0.6384,
    "c": 0.10946,
    "h": 301.9
  },
  "luminance": 0.24781
}

Semantic roles & 50–950 ramp

primary
#987BC3
secondary
#CFDAC0
accent
#B0357F
background
#FBF9FD
surface
#F6F2FA
border
#D0CCD3
text
#110F14
muted
#807E83

Preview Lab

Preview with #987BC3

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

Preview Lab → · Contrast checker → · Palette generator →

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