#B987FF#B987FF

#B987FF is a light, vivid violet. Relative luminance 0.349; OKLCH L 72.1% C 0.174 H 301.4°. Best body text is #000000 at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#B987FF
RGBrgb(185, 135, 255)
HSLhsl(265, 100%, 76%)
HSVhsv(265, 47%, 100%)
CMYKcmyk(27.5%, 47.1%, 0%, 0%)
CIE-LABlab(65.64, 42.69, -52.90)
CIE-LCHlch(65.64, 67.98, 308.90°)
OKLaboklab(72.13% 0.0907 -0.1485)
OKLCHoklch(72.13% 0.174 301.4)
XYZxyz(46.7175, 34.8621, 98.8562)
Luminance0.3486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B987FF #CDFF87
analogous
#8791FF #B987FF #F587FF
triadic
#B987FF #FFB987 #87FFB9
tetradic
#B987FF #FF8791 #CDFF87 #87FFF5
square
#B987FF #FF8791 #CDFF87 #87FFF5
split-complementary
#B987FF #FFF587 #91FF87
monochromatic
#720DFF #954AFF #B987FF #DDC4FF #EDE0FF

Accessibility & contrast

On white

2.63
#B987FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.97
#B987FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B987FF
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B987FF#FFFFFF#000000##000000
##B987FF1.002.637.977.97
#FFFFFF2.631.0021.0021.00
#0000007.9721.001.001.00
##0000007.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#639FFF
Deuteranopia (green-blind)
#6F9FFC
Tritanopia (blue-blind)
#AC9DB7
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b987ff;
/* rgb */ color: rgb(185, 135, 255);
/* oklch */ color: oklch(72.1% 0.174 301.4);
Tailwind
colors: {
  custom: {
    50: '#d1abff',
    500: '#b987ff',
    950: '#000000',
  },
}
SCSS
$custom: #b987ff;
$custom-light: #d1abff;
$custom-dark: #000000;
JSON
{
  "hex": "#b987ff",
  "rgb": {
    "r": 185,
    "g": 135,
    "b": 255
  },
  "hsl": {
    "h": 265,
    "s": 100,
    "l": 76.471
  },
  "oklch": {
    "l": 0.72129,
    "c": 0.17398,
    "h": 301.4
  },
  "luminance": 0.34862
}

Semantic roles & 50–950 ramp

primary
#B987FF
secondary
#E8F7D4
accent
#E60086
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #B987FF

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

Preview Lab → · Contrast checker → · Palette generator →

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