#987BA2#987BA2

#987BA2 is a light, moderate purple. Relative luminance 0.234; OKLCH L 62.4% C 0.066 H 317.3°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#987BA2
RGBrgb(152, 123, 162)
HSLhsl(285, 17%, 56%)
HSVhsv(285, 24%, 64%)
CMYKcmyk(6.2%, 24.1%, 0%, 36.5%)
CIE-LABlab(55.53, 18.52, -16.61)
CIE-LCHlch(55.53, 24.88, 318.12°)
OKLaboklab(62.39% 0.0488 -0.045)
OKLCHoklch(62.39% 0.066 317.3)
XYZxyz(26.5525, 23.4504, 37.3030)
Luminance0.2345 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BA2 #85A27B
analogous
#847BA2 #987BA2 #A27B98
triadic
#987BA2 #A2987B #7BA298
tetradic
#987BA2 #A2847B #85A27B #7B98A2
square
#987BA2 #A2847B #85A27B #7B98A2
split-complementary
#987BA2 #98A27B #7BA284
monochromatic
#58435F #795D83 #987BA2 #B49FBB #D0C3D5

Accessibility & contrast

On white

3.69
#987BA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#987BA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BA2
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BA2#FFFFFF#000000##000000
##987BA21.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7683A4
Deuteranopia (green-blind)
#7D86A1
Tritanopia (blue-blind)
#987F89
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #987ba2;
/* rgb */ color: rgb(152, 123, 162);
/* oklch */ color: oklch(62.4% 0.066 317.3);
Tailwind
colors: {
  custom: {
    50: '#b6a1bd',
    500: '#987ba2',
    950: '#000000',
  },
}
SCSS
$custom: #987ba2;
$custom-light: #b6a1bd;
$custom-dark: #000000;
JSON
{
  "hex": "#987ba2",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 162
  },
  "hsl": {
    "h": 284.615,
    "s": 17.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.62387,
    "c": 0.0664,
    "h": 317.3
  },
  "luminance": 0.2345
}

Semantic roles & 50–950 ramp

primary
#987BA2
secondary
#B8C4B4
accent
#BA6E81
background
#FBF9FB
surface
#F6F2F6
border
#D0CCD0
text
#110F12
muted
#807E81

Preview Lab

Preview with #987BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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