#B987EE#B987EE

#B987EE is a light, vivid violet. Relative luminance 0.338; OKLCH L 71.2% C 0.153 H 305.2°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#B987EE
RGBrgb(185, 135, 238)
HSLhsl(269, 75%, 73%)
HSVhsv(269, 43%, 93%)
CMYKcmyk(22.3%, 43.3%, 0%, 6.7%)
CIE-LABlab(64.82, 38.74, -44.87)
CIE-LCHlch(64.82, 59.28, 310.81°)
OKLaboklab(71.24% 0.0884 -0.1251)
OKLCHoklch(71.24% 0.153 305.2)
XYZxyz(44.1010, 33.8155, 85.0761)
Luminance0.3382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B987EE #BCEE87
analogous
#8788EE #B987EE #EC87EE
triadic
#B987EE #EEB987 #87EEB9
tetradic
#B987EE #EE8788 #BCEE87 #87EEEC
square
#B987EE #EE8788 #BCEE87 #87EEEC
split-complementary
#B987EE #EEEC87 #88EE87
monochromatic
#7B1FDC #9A51E6 #B987EE #D8BDF6 #EFE4FB

Accessibility & contrast

On white

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

On black

7.76
#B987EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B987EE
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B987EE#FFFFFF#000000##000000
##B987EE1.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9CF2
Deuteranopia (green-blind)
#799DEB
Tritanopia (blue-blind)
#B198AF
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b987ee;
/* rgb */ color: rgb(185, 135, 238);
/* oklch */ color: oklch(71.2% 0.153 305.2);
Tailwind
colors: {
  custom: {
    50: '#d0abf4',
    500: '#b987ee',
    950: '#000000',
  },
}
SCSS
$custom: #b987ee;
$custom-light: #d0abf4;
$custom-dark: #000000;
JSON
{
  "hex": "#b987ee",
  "rgb": {
    "r": 185,
    "g": 135,
    "b": 238
  },
  "hsl": {
    "h": 269.126,
    "s": 75.182,
    "l": 73.137
  },
  "oklch": {
    "l": 0.71242,
    "c": 0.15318,
    "h": 305.2
  },
  "luminance": 0.33815
}

Semantic roles & 50–950 ramp

primary
#B987EE
secondary
#E6F3D8
accent
#D70E76
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141017
muted
#827F85

Preview Lab

Preview with #B987EE

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

Preview Lab → · Contrast checker → · Palette generator →

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