#B987EF#B987EF

#B987EF is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.3% C 0.154 H 305.0°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#B987EF
RGBrgb(185, 135, 239)
HSLhsl(269, 76%, 73%)
HSVhsv(269, 44%, 94%)
CMYKcmyk(22.6%, 43.5%, 0%, 6.3%)
CIE-LABlab(64.86, 38.97, -45.35)
CIE-LCHlch(64.86, 59.79, 310.67°)
OKLaboklab(71.29% 0.0885 -0.1265)
OKLCHoklch(71.29% 0.154 305)
XYZxyz(44.2483, 33.8744, 85.8520)
Luminance0.3387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B987EF #BDEF87
analogous
#8789EF #B987EF #ED87EF
triadic
#B987EF #EFB987 #87EFB9
tetradic
#B987EF #EF8789 #BDEF87 #87EFED
square
#B987EF #EF8789 #BDEF87 #87EFED
split-complementary
#B987EF #EFED87 #89EF87
monochromatic
#7A1EDE #9951E8 #B987EF #D8BDF6 #EFE4FB

Accessibility & contrast

On white

2.70
#B987EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#B987EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B987EF
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B987EF#FFFFFF#000000##000000
##B987EF1.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9CF3
Deuteranopia (green-blind)
#799EEC
Tritanopia (blue-blind)
#B098B0
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b987ef;
/* rgb */ color: rgb(185, 135, 239);
/* oklch */ color: oklch(71.3% 0.154 305.0);
Tailwind
colors: {
  custom: {
    50: '#d0abf4',
    500: '#b987ef',
    950: '#000000',
  },
}
SCSS
$custom: #b987ef;
$custom-light: #d0abf4;
$custom-dark: #000000;
JSON
{
  "hex": "#b987ef",
  "rgb": {
    "r": 185,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 268.846,
    "s": 76.471,
    "l": 73.333
  },
  "oklch": {
    "l": 0.71292,
    "c": 0.1544,
    "h": 305
  },
  "luminance": 0.33874
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B987EF

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

Preview Lab → · Contrast checker → · Palette generator →

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