#B987EA#B987EA

#B987EA is a light, vivid violet. Relative luminance 0.336; OKLCH L 71.0% C 0.148 H 306.3°. Best body text is #000000 at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#B987EA
RGBrgb(185, 135, 234)
HSLhsl(270, 70%, 72%)
HSVhsv(270, 42%, 92%)
CMYKcmyk(20.9%, 42.3%, 0%, 8.2%)
CIE-LABlab(64.63, 37.83, -42.96)
CIE-LCHlch(64.63, 57.24, 311.37°)
OKLaboklab(71.04% 0.0877 -0.1196)
OKLCHoklch(71.04% 0.148 306.3)
XYZxyz(43.5199, 33.5831, 82.0154)
Luminance0.3358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B987EA #B8EA87
analogous
#8887EA #B987EA #EA87EA
triadic
#B987EA #EAB987 #87EAB9
tetradic
#B987EA #EA8887 #B8EA87 #87EAEA
square
#B987EA #EA8887 #B8EA87 #87EAEA
split-complementary
#B987EA #EAEA87 #87EA88
monochromatic
#7C25D2 #9B53E1 #B987EA #D7BBF3 #F0E5FA

Accessibility & contrast

On white

2.72
#B987EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.72
#B987EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B987EA
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B987EA#FFFFFF#000000##000000
##B987EA1.002.727.727.72
#FFFFFF2.721.0021.0021.00
#0000007.7221.001.001.00
##0000007.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F9BEE
Deuteranopia (green-blind)
#7B9DE7
Tritanopia (blue-blind)
#B297AD
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b987ea;
/* rgb */ color: rgb(185, 135, 234);
/* oklch */ color: oklch(71.0% 0.148 306.3);
Tailwind
colors: {
  custom: {
    50: '#d0abf1',
    500: '#b987ea',
    950: '#000000',
  },
}
SCSS
$custom: #b987ea;
$custom-light: #d0abf1;
$custom-dark: #000000;
JSON
{
  "hex": "#b987ea",
  "rgb": {
    "r": 185,
    "g": 135,
    "b": 234
  },
  "hsl": {
    "h": 270.303,
    "s": 70.213,
    "l": 72.353
  },
  "oklch": {
    "l": 0.71042,
    "c": 0.14829,
    "h": 306.3
  },
  "luminance": 0.33583
}

Semantic roles & 50–950 ramp

primary
#B987EA
secondary
#E5F2D9
accent
#D21372
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141017
muted
#827F85

Preview Lab

Preview with #B987EA

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

Preview Lab → · Contrast checker → · Palette generator →

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