#987EBE#987EBE

#987EBE is a light, moderate violet. Relative luminance 0.253; OKLCH L 64.2% C 0.098 H 302.4°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#987EBE
RGBrgb(152, 126, 190)
HSLhsl(264, 33%, 62%)
HSVhsv(264, 34%, 75%)
CMYKcmyk(20%, 33.7%, 0%, 25.5%)
CIE-LABlab(57.38, 23.00, -29.84)
CIE-LCHlch(57.38, 37.68, 307.63°)
OKLaboklab(64.17% 0.0523 -0.0824)
OKLCHoklch(64.17% 0.098 302.4)
XYZxyz(29.7021, 25.3148, 52.0267)
Luminance0.2531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EBE #A4BE7E
analogous
#7E84BE #987EBE #B87EBE
triadic
#987EBE #BE987E #7EBE98
tetradic
#987EBE #BE7E84 #A4BE7E #7EBEB8
square
#987EBE #BE7E84 #A4BE7E #7EBEB8
split-complementary
#987EBE #BEB87E #84BE7E
monochromatic
#5B4181 #7855A9 #987EBE #B8A7D3 #D9CFE7

Accessibility & contrast

On white

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

On black

6.06
#987EBE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EBE
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EBE#FFFFFF#000000##000000
##987EBE1.003.466.066.06
#FFFFFF3.461.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7089C1
Deuteranopia (green-blind)
#758ABC
Tritanopia (blue-blind)
#928895
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #987ebe;
/* rgb */ color: rgb(152, 126, 190);
/* oklch */ color: oklch(64.2% 0.098 302.4);
Tailwind
colors: {
  custom: {
    50: '#b7a3d2',
    500: '#987ebe',
    950: '#000000',
  },
}
SCSS
$custom: #987ebe;
$custom-light: #b7a3d2;
$custom-dark: #000000;
JSON
{
  "hex": "#987ebe",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 190
  },
  "hsl": {
    "h": 264.375,
    "s": 32.99,
    "l": 61.961
  },
  "oklch": {
    "l": 0.64165,
    "c": 0.09764,
    "h": 302.4
  },
  "luminance": 0.25315
}

Semantic roles & 50–950 ramp

primary
#987EBE
secondary
#CED8C0
accent
#AC3A7D
background
#FBFAFC
surface
#F6F4F9
border
#D0CED2
text
#110F14
muted
#807F82

Preview Lab

Preview with #987EBE

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

Preview Lab → · Contrast checker → · Palette generator →

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