#987EBA#987EBA

#987EBA is a light, moderate violet. Relative luminance 0.251; OKLCH L 64.0% C 0.092 H 303.8°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#987EBA
RGBrgb(152, 126, 186)
HSLhsl(266, 30%, 61%)
HSVhsv(266, 32%, 73%)
CMYKcmyk(18.3%, 32.3%, 0%, 27.1%)
CIE-LABlab(57.21, 22.08, -27.82)
CIE-LCHlch(57.21, 35.51, 308.43°)
OKLaboklab(63.98% 0.0513 -0.0767)
OKLCHoklch(63.98% 0.092 303.8)
XYZxyz(29.2709, 25.1423, 49.7558)
Luminance0.2514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EBA #A0BA7E
analogous
#7E82BA #987EBA #B67EBA
triadic
#987EBA #BA987E #7EBA98
tetradic
#987EBA #BA7E82 #A0BA7E #7EBAB6
square
#987EBA #BA7E82 #A0BA7E #7EBAB6
split-complementary
#987EBA #BAB67E #82BA7E
monochromatic
#5B427C #7857A3 #987EBA #B8A6CF #D8CEE5

Accessibility & contrast

On white

3.48
#987EBA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#987EBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EBA
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EBA#FFFFFF#000000##000000
##987EBA1.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7289BC
Deuteranopia (green-blind)
#7789B8
Tritanopia (blue-blind)
#938794
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #987eba;
/* rgb */ color: rgb(152, 126, 186);
/* oklch */ color: oklch(64.0% 0.092 303.8);
Tailwind
colors: {
  custom: {
    50: '#b7a3cf',
    500: '#987eba',
    950: '#000000',
  },
}
SCSS
$custom: #987eba;
$custom-light: #b7a3cf;
$custom-dark: #000000;
JSON
{
  "hex": "#987eba",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 186
  },
  "hsl": {
    "h": 266,
    "s": 30.303,
    "l": 61.176
  },
  "oklch": {
    "l": 0.63982,
    "c": 0.09223,
    "h": 303.8
  },
  "luminance": 0.25142
}

Semantic roles & 50–950 ramp

primary
#987EBA
secondary
#CBD5BF
accent
#A93D7A
background
#FBFAFC
surface
#F6F4F9
border
#D0CED2
text
#110F13
muted
#807F82

Preview Lab

Preview with #987EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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