#B987FA#B987FA

#B987FA is a light, vivid violet. Relative luminance 0.345; OKLCH L 71.9% C 0.168 H 302.5°. Best body text is #000000 at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#B987FA
RGBrgb(185, 135, 250)
HSLhsl(266, 92%, 75%)
HSVhsv(266, 46%, 98%)
CMYKcmyk(26%, 46%, 0%, 2%)
CIE-LABlab(65.39, 41.52, -50.56)
CIE-LCHlch(65.39, 65.42, 309.39°)
OKLaboklab(71.86% 0.0901 -0.1416)
OKLCHoklch(71.86% 0.168 302.5)
XYZxyz(45.9231, 34.5443, 94.6723)
Luminance0.3454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B987FA #C8FA87
analogous
#878EFA #B987FA #F287FA
triadic
#B987FA #FAB987 #87FAB9
tetradic
#B987FA #FA878E #C8FA87 #87FAF2
square
#B987FA #FA878E #C8FA87 #87FAF2
split-complementary
#B987FA #FAF287 #8EFA87
monochromatic
#7411F5 #974CF8 #B987FA #DBC2FC #EEE2FE

Accessibility & contrast

On white

2.66
#B987FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.91
#B987FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B987FA
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B987FA#FFFFFF#000000##000000
##B987FA1.002.667.917.91
#FFFFFF2.661.0021.0021.00
#0000007.9121.001.001.00
##0000007.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#669EFE
Deuteranopia (green-blind)
#729EF7
Tritanopia (blue-blind)
#AD9BB5
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b987fa;
/* rgb */ color: rgb(185, 135, 250);
/* oklch */ color: oklch(71.9% 0.168 302.5);
Tailwind
colors: {
  custom: {
    50: '#d0abfc',
    500: '#b987fa',
    950: '#000000',
  },
}
SCSS
$custom: #b987fa;
$custom-light: #d0abfc;
$custom-dark: #000000;
JSON
{
  "hex": "#b987fa",
  "rgb": {
    "r": 185,
    "g": 135,
    "b": 250
  },
  "hsl": {
    "h": 266.087,
    "s": 92,
    "l": 75.49
  },
  "oklch": {
    "l": 0.71862,
    "c": 0.16786,
    "h": 302.5
  },
  "luminance": 0.34544
}

Semantic roles & 50–950 ramp

primary
#B987FA
secondary
#E8F6D5
accent
#E60082
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #B987FA

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

Preview Lab → · Contrast checker → · Palette generator →

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