#987FA7#987FA7

#987FA7 is a light, moderate violet. Relative luminance 0.246; OKLCH L 63.4% C 0.065 H 312.6°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#987FA7
RGBrgb(152, 127, 167)
HSLhsl(278, 19%, 58%)
HSVhsv(278, 24%, 65%)
CMYKcmyk(9%, 24%, 0%, 34.5%)
CIE-LABlab(56.73, 17.27, -17.68)
CIE-LCHlch(56.73, 24.71, 314.33°)
OKLaboklab(63.37% 0.0442 -0.048)
OKLCHoklch(63.37% 0.065 312.6)
XYZxyz(27.5122, 24.6445, 39.8592)
Luminance0.2464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FA7 #8EA77F
analogous
#847FA7 #987FA7 #A77FA2
triadic
#987FA7 #A7987F #7FA798
tetradic
#987FA7 #A7847F #8EA77F #7FA2A7
square
#987FA7 #A7847F #8EA77F #7FA2A7
split-complementary
#987FA7 #A2A77F #7FA784
monochromatic
#5A4666 #7A5F8A #987FA7 #B5A3C0 #D2C8D9

Accessibility & contrast

On white

3.54
#987FA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#987FA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FA7
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FA7#FFFFFF#000000##000000
##987FA71.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7987A9
Deuteranopia (green-blind)
#7E89A6
Tritanopia (blue-blind)
#97848D
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #987fa7;
/* rgb */ color: rgb(152, 127, 167);
/* oklch */ color: oklch(63.4% 0.065 312.6);
Tailwind
colors: {
  custom: {
    50: '#b6a4c1',
    500: '#987fa7',
    950: '#000000',
  },
}
SCSS
$custom: #987fa7;
$custom-light: #b6a4c1;
$custom-dark: #000000;
JSON
{
  "hex": "#987fa7",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 167
  },
  "hsl": {
    "h": 277.5,
    "s": 18.519,
    "l": 57.647
  },
  "oklch": {
    "l": 0.63365,
    "c": 0.06526,
    "h": 312.6
  },
  "luminance": 0.24644
}

Semantic roles & 50–950 ramp

primary
#987FA7
secondary
#BFC9B9
accent
#BB6D8A
background
#FBFAFB
surface
#F6F4F7
border
#D0CED0
text
#110F12
muted
#807F81

Preview Lab

Preview with #987FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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