#987EA4#987EA4

#987EA4 is a light, moderate purple. Relative luminance 0.243; OKLCH L 63.1% C 0.063 H 315.0°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#987EA4
RGBrgb(152, 126, 164)
HSLhsl(281, 17%, 57%)
HSVhsv(281, 23%, 64%)
CMYKcmyk(7.3%, 23.2%, 0%, 35.7%)
CIE-LABlab(56.36, 17.21, -16.50)
CIE-LCHlch(56.36, 23.84, 316.20°)
OKLaboklab(63.05% 0.0448 -0.0447)
OKLCHoklch(63.05% 0.063 315)
XYZxyz(27.1095, 24.2778, 38.3727)
Luminance0.2428 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EA4 #8AA47E
analogous
#857EA4 #987EA4 #A47E9D
triadic
#987EA4 #A4987E #7EA498
tetradic
#987EA4 #A4857E #8AA47E #7E9DA4
square
#987EA4 #A4857E #8AA47E #7E9DA4
split-complementary
#987EA4 #9DA47E #7EA485
monochromatic
#594562 #7A5F86 #987EA4 #B5A2BD #D1C6D7

Accessibility & contrast

On white

3.59
#987EA4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#987EA4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EA4
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EA4#FFFFFF#000000##000000
##987EA41.003.595.865.86
#FFFFFF3.591.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7986A6
Deuteranopia (green-blind)
#7E88A3
Tritanopia (blue-blind)
#98828B
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #987ea4;
/* rgb */ color: rgb(152, 126, 164);
/* oklch */ color: oklch(63.1% 0.063 315.0);
Tailwind
colors: {
  custom: {
    50: '#b6a3bf',
    500: '#987ea4',
    950: '#000000',
  },
}
SCSS
$custom: #987ea4;
$custom-light: #b6a3bf;
$custom-dark: #000000;
JSON
{
  "hex": "#987ea4",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 164
  },
  "hsl": {
    "h": 281.053,
    "s": 17.273,
    "l": 56.863
  },
  "oklch": {
    "l": 0.63051,
    "c": 0.06329,
    "h": 315
  },
  "luminance": 0.24277
}

Semantic roles & 50–950 ramp

primary
#987EA4
secondary
#BCC7B7
accent
#BA6E86
background
#FBFAFB
surface
#F6F3F7
border
#D0CDD0
text
#110F12
muted
#807F81

Preview Lab

Preview with #987EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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