#987EA2#987EA2

#987EA2 is a light, moderate purple. Relative luminance 0.242; OKLCH L 63.0% C 0.061 H 316.5°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#987EA2
RGBrgb(152, 126, 162)
HSLhsl(283, 16%, 56%)
HSVhsv(283, 22%, 64%)
CMYKcmyk(6.2%, 22.2%, 0%, 36.5%)
CIE-LABlab(56.29, 16.79, -15.46)
CIE-LCHlch(56.29, 22.82, 317.37°)
OKLaboklab(62.97% 0.0441 -0.0418)
OKLCHoklch(62.97% 0.061 316.5)
XYZxyz(26.9304, 24.2061, 37.4290)
Luminance0.2421 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EA2 #88A27E
analogous
#867EA2 #987EA2 #A27E9A
triadic
#987EA2 #A2987E #7EA298
tetradic
#987EA2 #A2867E #88A27E #7E9AA2
square
#987EA2 #A2867E #88A27E #7E9AA2
split-complementary
#987EA2 #9AA27E #7EA286
monochromatic
#594560 #7A5F84 #987EA2 #B4A2BC #D1C5D5

Accessibility & contrast

On white

3.60
#987EA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#987EA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EA2
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EA2#FFFFFF#000000##000000
##987EA21.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A85A4
Deuteranopia (green-blind)
#7F88A1
Tritanopia (blue-blind)
#98828A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #987ea2;
/* rgb */ color: rgb(152, 126, 162);
/* oklch */ color: oklch(63.0% 0.061 316.5);
Tailwind
colors: {
  custom: {
    50: '#b6a3bd',
    500: '#987ea2',
    950: '#000000',
  },
}
SCSS
$custom: #987ea2;
$custom-light: #b6a3bd;
$custom-dark: #000000;
JSON
{
  "hex": "#987ea2",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 162
  },
  "hsl": {
    "h": 283.333,
    "s": 16.216,
    "l": 56.471
  },
  "oklch": {
    "l": 0.62972,
    "c": 0.06078,
    "h": 316.5
  },
  "luminance": 0.24206
}

Semantic roles & 50–950 ramp

primary
#987EA2
secondary
#BBC5B7
accent
#B96F83
background
#FBFAFB
surface
#F6F3F6
border
#D0CDD0
text
#110F12
muted
#807F81

Preview Lab

Preview with #987EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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