#987EBB#987EBB

#987EBB is a light, moderate violet. Relative luminance 0.252; OKLCH L 64.0% C 0.094 H 303.4°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#987EBB
RGBrgb(152, 126, 187)
HSLhsl(266, 31%, 61%)
HSVhsv(266, 33%, 73%)
CMYKcmyk(18.7%, 32.6%, 0%, 26.7%)
CIE-LABlab(57.26, 22.31, -28.32)
CIE-LCHlch(57.26, 36.05, 308.22°)
OKLaboklab(64.03% 0.0515 -0.0781)
OKLCHoklch(64.03% 0.094 303.4)
XYZxyz(29.3776, 25.1850, 50.3176)
Luminance0.2519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EBB #A1BB7E
analogous
#7E83BB #987EBB #B77EBB
triadic
#987EBB #BB987E #7EBB98
tetradic
#987EBB #BB7E83 #A1BB7E #7EBBB7
square
#987EBB #BB7E83 #A1BB7E #7EBBB7
split-complementary
#987EBB #BBB77E #83BB7E
monochromatic
#5B427D #7857A5 #987EBB #B8A6D0 #D8CEE5

Accessibility & contrast

On white

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

On black

6.04
#987EBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EBB
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EBB#FFFFFF#000000##000000
##987EBB1.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7189BD
Deuteranopia (green-blind)
#7689B9
Tritanopia (blue-blind)
#928794
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #987ebb;
/* rgb */ color: rgb(152, 126, 187);
/* oklch */ color: oklch(64.0% 0.094 303.4);
Tailwind
colors: {
  custom: {
    50: '#b7a3cf',
    500: '#987ebb',
    950: '#000000',
  },
}
SCSS
$custom: #987ebb;
$custom-light: #b7a3cf;
$custom-dark: #000000;
JSON
{
  "hex": "#987ebb",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 187
  },
  "hsl": {
    "h": 265.574,
    "s": 30.964,
    "l": 61.373
  },
  "oklch": {
    "l": 0.64027,
    "c": 0.09358,
    "h": 303.4
  },
  "luminance": 0.25185
}

Semantic roles & 50–950 ramp

primary
#987EBB
secondary
#CCD6BF
accent
#AA3C7B
background
#FBFAFC
surface
#F6F4F9
border
#D0CED2
text
#110F14
muted
#807F82

Preview Lab

Preview with #987EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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