#B987FC#B987FC

#B987FC is a light, vivid violet. Relative luminance 0.347; OKLCH L 72.0% C 0.170 H 302.0°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#B987FC
RGBrgb(185, 135, 252)
HSLhsl(266, 95%, 76%)
HSVhsv(266, 46%, 99%)
CMYKcmyk(26.6%, 46.4%, 0%, 1.2%)
CIE-LABlab(65.49, 41.98, -51.50)
CIE-LCHlch(65.49, 66.44, 309.19°)
OKLaboklab(71.97% 0.0903 -0.1444)
OKLCHoklch(71.97% 0.17 302)
XYZxyz(46.2383, 34.6705, 96.3327)
Luminance0.3467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B987FC #CAFC87
analogous
#878FFC #B987FC #F387FC
triadic
#B987FC #FCB987 #87FCB9
tetradic
#B987FC #FC878F #CAFC87 #87FCF3
square
#B987FC #FC878F #CAFC87 #87FCF3
split-complementary
#B987FC #FCF387 #8FFC87
monochromatic
#7310F9 #964BFB #B987FC #DCC3FD #EEE1FE

Accessibility & contrast

On white

2.65
#B987FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.93
#B987FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B987FC
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B987FC#FFFFFF#000000##000000
##B987FC1.002.657.937.93
#FFFFFF2.651.0021.0021.00
#0000007.9321.001.001.00
##0000007.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#659EFF
Deuteranopia (green-blind)
#719FF9
Tritanopia (blue-blind)
#AD9CB6
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b987fc;
/* rgb */ color: rgb(185, 135, 252);
/* oklch */ color: oklch(72.0% 0.170 302.0);
Tailwind
colors: {
  custom: {
    50: '#d0abfe',
    500: '#b987fc',
    950: '#000000',
  },
}
SCSS
$custom: #b987fc;
$custom-light: #d0abfe;
$custom-dark: #000000;
JSON
{
  "hex": "#b987fc",
  "rgb": {
    "r": 185,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 265.641,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.71969,
    "c": 0.17031,
    "h": 302
  },
  "luminance": 0.34671
}

Semantic roles & 50–950 ramp

primary
#B987FC
secondary
#E8F6D5
accent
#E60083
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #B987FC

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

Preview Lab → · Contrast checker → · Palette generator →

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