#B987F7#B987F7

#B987F7 is a light, vivid violet. Relative luminance 0.344; OKLCH L 71.7% C 0.164 H 303.1°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#B987F7
RGBrgb(185, 135, 247)
HSLhsl(267, 88%, 75%)
HSVhsv(267, 45%, 97%)
CMYKcmyk(25.1%, 45.3%, 0%, 3.1%)
CIE-LABlab(65.25, 40.81, -49.15)
CIE-LCHlch(65.25, 63.88, 309.71°)
OKLaboklab(71.7% 0.0897 -0.1375)
OKLCHoklch(71.7% 0.164 303.1)
XYZxyz(45.4564, 34.3577, 92.2146)
Luminance0.3436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B987F7 #C5F787
analogous
#878DF7 #B987F7 #F187F7
triadic
#B987F7 #F7B987 #87F7B9
tetradic
#B987F7 #F7878D #C5F787 #87F7F1
square
#B987F7 #F7878D #C5F787 #87F7F1
split-complementary
#B987F7 #F7F187 #8DF787
monochromatic
#7614EF #984EF3 #B987F7 #DAC0FB #EEE2FD

Accessibility & contrast

On white

2.67
#B987F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#B987F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B987F7
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B987F7#FFFFFF#000000##000000
##B987F71.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#689DFB
Deuteranopia (green-blind)
#749EF4
Tritanopia (blue-blind)
#AE9AB3
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #b987f7;
/* rgb */ color: rgb(185, 135, 247);
/* oklch */ color: oklch(71.7% 0.164 303.1);
Tailwind
colors: {
  custom: {
    50: '#d0abfa',
    500: '#b987f7',
    950: '#000000',
  },
}
SCSS
$custom: #b987f7;
$custom-light: #d0abfa;
$custom-dark: #000000;
JSON
{
  "hex": "#b987f7",
  "rgb": {
    "r": 185,
    "g": 135,
    "b": 247
  },
  "hsl": {
    "h": 266.786,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.71704,
    "c": 0.16419,
    "h": 303.1
  },
  "luminance": 0.34358
}

Semantic roles & 50–950 ramp

primary
#B987F7
secondary
#E7F5D6
accent
#E4017F
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #B987F7

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

Preview Lab → · Contrast checker → · Palette generator →

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