#987AAA#987AAA

#987AAA is a light, moderate violet. Relative luminance 0.235; OKLCH L 62.5% C 0.078 H 312.5°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#987AAA
RGBrgb(152, 122, 170)
HSLhsl(278, 22%, 57%)
HSVhsv(278, 28%, 67%)
CMYKcmyk(10.6%, 28.2%, 0%, 33.3%)
CIE-LABlab(55.58, 20.81, -21.16)
CIE-LCHlch(55.58, 29.67, 314.52°)
OKLaboklab(62.52% 0.0529 -0.0577)
OKLCHoklch(62.52% 0.078 312.5)
XYZxyz(27.1629, 23.4971, 41.1269)
Luminance0.2350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987AAA #8CAA7A
analogous
#807AAA #987AAA #AA7AA4
triadic
#987AAA #AA987A #7AAA98
tetradic
#987AAA #AA807A #8CAA7A #7AA4AA
square
#987AAA #AA807A #8CAA7A #7AA4AA
split-complementary
#987AAA #A4AA7A #7AAA80
monochromatic
#594267 #7A5A8D #987AAA #B59FC2 #D2C5DA

Accessibility & contrast

On white

3.68
#987AAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#987AAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987AAA
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987AAA#FFFFFF#000000##000000
##987AAA1.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7384AC
Deuteranopia (green-blind)
#7986A8
Tritanopia (blue-blind)
#97808B
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #987aaa;
/* rgb */ color: rgb(152, 122, 170);
/* oklch */ color: oklch(62.5% 0.078 312.5);
Tailwind
colors: {
  custom: {
    50: '#b7a0c3',
    500: '#987aaa',
    950: '#000000',
  },
}
SCSS
$custom: #987aaa;
$custom-light: #b7a0c3;
$custom-dark: #000000;
JSON
{
  "hex": "#987aaa",
  "rgb": {
    "r": 152,
    "g": 122,
    "b": 170
  },
  "hsl": {
    "h": 277.5,
    "s": 22.018,
    "l": 57.255
  },
  "oklch": {
    "l": 0.62522,
    "c": 0.07829,
    "h": 312.5
  },
  "luminance": 0.23497
}

Semantic roles & 50–950 ramp

primary
#987AAA
secondary
#BDCAB6
accent
#BF6989
background
#FBF9FC
surface
#F6F2F8
border
#D0CCD1
text
#110E12
muted
#807E81

Preview Lab

Preview with #987AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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