#987EBF#987EBF

#987EBF is a light, moderate violet. Relative luminance 0.254; OKLCH L 64.2% C 0.099 H 302.1°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#987EBF
RGBrgb(152, 126, 191)
HSLhsl(264, 34%, 62%)
HSVhsv(264, 34%, 75%)
CMYKcmyk(20.4%, 34%, 0%, 25.1%)
CIE-LABlab(57.42, 23.24, -30.34)
CIE-LCHlch(57.42, 38.22, 307.45°)
OKLaboklab(64.21% 0.0526 -0.0839)
OKLCHoklch(64.21% 0.099 302.1)
XYZxyz(29.8117, 25.3587, 52.6043)
Luminance0.2536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EBF #A5BF7E
analogous
#7E85BF #987EBF #B97EBF
triadic
#987EBF #BF987E #7EBF98
tetradic
#987EBF #BF7E85 #A5BF7E #7EBFB9
square
#987EBF #BF7E85 #A5BF7E #7EBFB9
split-complementary
#987EBF #BFB97E #85BF7E
monochromatic
#5B4182 #7755AB #987EBF #B9A7D3 #D9D0E8

Accessibility & contrast

On white

3.46
#987EBF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#987EBF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EBF
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EBF#FFFFFF#000000##000000
##987EBF1.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7089C2
Deuteranopia (green-blind)
#748ABD
Tritanopia (blue-blind)
#918896
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #987ebf;
/* rgb */ color: rgb(152, 126, 191);
/* oklch */ color: oklch(64.2% 0.099 302.1);
Tailwind
colors: {
  custom: {
    50: '#b7a3d2',
    500: '#987ebf',
    950: '#000000',
  },
}
SCSS
$custom: #987ebf;
$custom-light: #b7a3d2;
$custom-dark: #000000;
JSON
{
  "hex": "#987ebf",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 191
  },
  "hsl": {
    "h": 264,
    "s": 33.679,
    "l": 62.157
  },
  "oklch": {
    "l": 0.64211,
    "c": 0.09899,
    "h": 302.1
  },
  "luminance": 0.25359
}

Semantic roles & 50–950 ramp

primary
#987EBF
secondary
#CFD8C0
accent
#AC397E
background
#FBFAFC
surface
#F6F4F9
border
#D0CED2
text
#110F14
muted
#807F82

Preview Lab

Preview with #987EBF

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

Preview Lab → · Contrast checker → · Palette generator →

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