#B987FE#B987FE

#B987FE is a light, vivid violet. Relative luminance 0.348; OKLCH L 72.1% C 0.173 H 301.6°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#B987FE
RGBrgb(185, 135, 254)
HSLhsl(265, 98%, 76%)
HSVhsv(265, 47%, 100%)
CMYKcmyk(27.2%, 46.9%, 0%, 0.4%)
CIE-LABlab(65.59, 42.46, -52.43)
CIE-LCHlch(65.59, 67.47, 309.00°)
OKLaboklab(72.08% 0.0906 -0.1471)
OKLCHoklch(72.08% 0.173 301.6)
XYZxyz(46.5569, 34.7979, 98.0106)
Luminance0.3480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B987FE #CCFE87
analogous
#8791FE #B987FE #F487FE
triadic
#B987FE #FEB987 #87FEB9
tetradic
#B987FE #FE8791 #CCFE87 #87FEF4
square
#B987FE #FE8791 #CCFE87 #87FEF4
split-complementary
#B987FE #FEF487 #91FE87
monochromatic
#720EFD #964AFD #B987FE #DCC4FF #EDE1FF

Accessibility & contrast

On white

2.64
#B987FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.96
#B987FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B987FE
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B987FE#FFFFFF#000000##000000
##B987FE1.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#639FFF
Deuteranopia (green-blind)
#709FFB
Tritanopia (blue-blind)
#AC9CB7
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b987fe;
/* rgb */ color: rgb(185, 135, 254);
/* oklch */ color: oklch(72.1% 0.173 301.6);
Tailwind
colors: {
  custom: {
    50: '#d1abff',
    500: '#b987fe',
    950: '#000000',
  },
}
SCSS
$custom: #b987fe;
$custom-light: #d1abff;
$custom-dark: #000000;
JSON
{
  "hex": "#b987fe",
  "rgb": {
    "r": 185,
    "g": 135,
    "b": 254
  },
  "hsl": {
    "h": 265.21,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.72076,
    "c": 0.17276,
    "h": 301.6
  },
  "luminance": 0.34798
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B987FE

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

Preview Lab → · Contrast checker → · Palette generator →

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