#B987FD#B987FD

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

Color values

HEX#B987FD
RGBrgb(185, 135, 253)
HSLhsl(265, 97%, 76%)
HSVhsv(265, 47%, 99%)
CMYKcmyk(26.9%, 46.6%, 0%, 0.8%)
CIE-LABlab(65.54, 42.22, -51.97)
CIE-LCHlch(65.54, 66.96, 309.09°)
OKLaboklab(72.02% 0.0904 -0.1457)
OKLCHoklch(72.02% 0.172 301.8)
XYZxyz(46.3972, 34.7340, 97.1695)
Luminance0.3473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B987FD #CBFD87
analogous
#8790FD #B987FD #F487FD
triadic
#B987FD #FDB987 #87FDB9
tetradic
#B987FD #FD8790 #CBFD87 #87FDF4
square
#B987FD #FD8790 #CBFD87 #87FDF4
split-complementary
#B987FD #FDF487 #90FD87
monochromatic
#730FFB #964BFC #B987FD #DCC3FE #EDE1FE

Accessibility & contrast

On white

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

On black

7.95
#B987FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B987FD
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B987FD#FFFFFF#000000##000000
##B987FD1.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#649EFF
Deuteranopia (green-blind)
#709FFA
Tritanopia (blue-blind)
#AC9CB6
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b987fd;
/* rgb */ color: rgb(185, 135, 253);
/* oklch */ color: oklch(72.0% 0.172 301.8);
Tailwind
colors: {
  custom: {
    50: '#d0abfe',
    500: '#b987fd',
    950: '#000000',
  },
}
SCSS
$custom: #b987fd;
$custom-light: #d0abfe;
$custom-dark: #000000;
JSON
{
  "hex": "#b987fd",
  "rgb": {
    "r": 185,
    "g": 135,
    "b": 253
  },
  "hsl": {
    "h": 265.424,
    "s": 96.721,
    "l": 76.078
  },
  "oklch": {
    "l": 0.72022,
    "c": 0.17153,
    "h": 301.8
  },
  "luminance": 0.34734
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B987FD

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

Preview Lab → · Contrast checker → · Palette generator →

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