#B987EC#B987EC

#B987EC is a light, vivid violet. Relative luminance 0.337; OKLCH L 71.1% C 0.151 H 305.7°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#B987EC
RGBrgb(185, 135, 236)
HSLhsl(270, 73%, 73%)
HSVhsv(270, 43%, 93%)
CMYKcmyk(21.6%, 42.8%, 0%, 7.5%)
CIE-LABlab(64.72, 38.29, -43.92)
CIE-LCHlch(64.72, 58.26, 311.08°)
OKLaboklab(71.14% 0.088 -0.1224)
OKLCHoklch(71.14% 0.151 305.7)
XYZxyz(43.8088, 33.6986, 83.5372)
Luminance0.3370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B987EC #BAEC87
analogous
#8787EC #B987EC #EC87EC
triadic
#B987EC #ECB987 #87ECB9
tetradic
#B987EC #EC8787 #BAEC87 #87ECEC
square
#B987EC #EC8787 #BAEC87 #87ECEC
split-complementary
#B987EC #ECEC87 #87EC87
monochromatic
#7B22D7 #9A52E4 #B987EC #D8BCF4 #F0E5FB

Accessibility & contrast

On white

2.71
#B987EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#B987EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B987EC
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B987EC#FFFFFF#000000##000000
##B987EC1.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E9BF0
Deuteranopia (green-blind)
#7A9DE9
Tritanopia (blue-blind)
#B197AE
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b987ec;
/* rgb */ color: rgb(185, 135, 236);
/* oklch */ color: oklch(71.1% 0.151 305.7);
Tailwind
colors: {
  custom: {
    50: '#d0abf2',
    500: '#b987ec',
    950: '#000000',
  },
}
SCSS
$custom: #b987ec;
$custom-light: #d0abf2;
$custom-dark: #000000;
JSON
{
  "hex": "#b987ec",
  "rgb": {
    "r": 185,
    "g": 135,
    "b": 236
  },
  "hsl": {
    "h": 269.703,
    "s": 72.662,
    "l": 72.745
  },
  "oklch": {
    "l": 0.71141,
    "c": 0.15074,
    "h": 305.7
  },
  "luminance": 0.33698
}

Semantic roles & 50–950 ramp

primary
#B987EC
secondary
#E6F2D9
accent
#D51174
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141017
muted
#827F85

Preview Lab

Preview with #B987EC

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

Preview Lab → · Contrast checker → · Palette generator →

#B987EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva