#987FAC#987FAC

#987FAC is a light, moderate violet. Relative luminance 0.248; OKLCH L 63.6% C 0.072 H 309.6°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#987FAC
RGBrgb(152, 127, 172)
HSLhsl(273, 21%, 59%)
HSVhsv(273, 26%, 67%)
CMYKcmyk(11.6%, 26.2%, 0%, 32.5%)
CIE-LABlab(56.91, 18.35, -20.27)
CIE-LCHlch(56.91, 27.34, 312.15°)
OKLaboklab(63.57% 0.0458 -0.0553)
OKLCHoklch(63.57% 0.072 309.6)
XYZxyz(27.9833, 24.8329, 42.3408)
Luminance0.2483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FAC #93AC7F
analogous
#817FAC #987FAC #AC7FA9
triadic
#987FAC #AC987F #7FAC98
tetradic
#987FAC #AC817F #93AC7F #7FA9AC
square
#987FAC #AC817F #93AC7F #7FA9AC
split-complementary
#987FAC #A9AC7F #7FAC81
monochromatic
#5A456B #7A5E90 #987FAC #B6A4C4 #D4C9DC

Accessibility & contrast

On white

3.52
#987FAC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#987FAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FAC
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FAC#FFFFFF#000000##000000
##987FAC1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7887AE
Deuteranopia (green-blind)
#7D89AB
Tritanopia (blue-blind)
#96858F
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #987fac;
/* rgb */ color: rgb(152, 127, 172);
/* oklch */ color: oklch(63.6% 0.072 309.6);
Tailwind
colors: {
  custom: {
    50: '#b6a4c4',
    500: '#987fac',
    950: '#000000',
  },
}
SCSS
$custom: #987fac;
$custom-light: #b6a4c4;
$custom-dark: #000000;
JSON
{
  "hex": "#987fac",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 172
  },
  "hsl": {
    "h": 273.333,
    "s": 21.327,
    "l": 58.627
  },
  "oklch": {
    "l": 0.63569,
    "c": 0.07177,
    "h": 309.6
  },
  "luminance": 0.24833
}

Semantic roles & 50–950 ramp

primary
#987FAC
secondary
#C2CCBB
accent
#BE6A8F
background
#FBFAFC
surface
#F6F4F8
border
#D0CED1
text
#110F12
muted
#807F81

Preview Lab

Preview with #987FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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