#BB87FC#BB87FC

#BB87FC is a light, vivid violet. Relative luminance 0.349; OKLCH L 72.2% C 0.171 H 302.9°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#BB87FC
RGBrgb(187, 135, 252)
HSLhsl(267, 95%, 76%)
HSVhsv(267, 46%, 99%)
CMYKcmyk(25.8%, 46.4%, 0%, 1.2%)
CIE-LABlab(65.69, 42.51, -51.18)
CIE-LCHlch(65.69, 66.53, 309.72°)
OKLaboklab(72.16% 0.0927 -0.1434)
OKLCHoklch(72.16% 0.171 302.9)
XYZxyz(46.7243, 34.9210, 96.3555)
Luminance0.3492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB87FC #C8FC87
analogous
#878DFC #BB87FC #F687FC
triadic
#BB87FC #FCBB87 #87FCBB
tetradic
#BB87FC #FC878D #C8FC87 #87FCF6
square
#BB87FC #FC878D #C8FC87 #87FCF6
split-complementary
#BB87FC #FCF687 #8DFC87
monochromatic
#7710F9 #994BFB #BB87FC #DDC3FD #EEE1FE

Accessibility & contrast

On white

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

On black

7.98
#BB87FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB87FC
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB87FC#FFFFFF#000000##000000
##BB87FC1.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#659EFF
Deuteranopia (green-blind)
#729FF9
Tritanopia (blue-blind)
#AF9CB6
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #bb87fc;
/* rgb */ color: rgb(187, 135, 252);
/* oklch */ color: oklch(72.2% 0.171 302.9);
Tailwind
colors: {
  custom: {
    50: '#d2abfe',
    500: '#bb87fc',
    950: '#000000',
  },
}
SCSS
$custom: #bb87fc;
$custom-light: #d2abfe;
$custom-dark: #000000;
JSON
{
  "hex": "#bb87fc",
  "rgb": {
    "r": 187,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 266.667,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.7216,
    "c": 0.17075,
    "h": 302.9
  },
  "luminance": 0.34921
}

Semantic roles & 50–950 ramp

primary
#BB87FC
secondary
#E7F6D5
accent
#E6007F
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #BB87FC

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

Preview Lab → · Contrast checker → · Palette generator →

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