#BB87F2#BB87F2

#BB87F2 is a light, vivid violet. Relative luminance 0.343; OKLCH L 71.6% C 0.159 H 305.2°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#BB87F2
RGBrgb(187, 135, 242)
HSLhsl(269, 80%, 74%)
HSVhsv(269, 44%, 95%)
CMYKcmyk(22.7%, 44.2%, 0%, 5.1%)
CIE-LABlab(65.20, 40.21, -46.45)
CIE-LCHlch(65.20, 61.44, 310.88°)
OKLaboklab(71.64% 0.0913 -0.1297)
OKLCHoklch(71.64% 0.159 305.2)
XYZxyz(45.1812, 34.3038, 88.2283)
Luminance0.3430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB87F2 #BEF287
analogous
#8789F2 #BB87F2 #F187F2
triadic
#BB87F2 #F2BB87 #87F2BB
tetradic
#BB87F2 #F28789 #BEF287 #87F2F1
square
#BB87F2 #F28789 #BEF287 #87F2F1
split-complementary
#BB87F2 #F2F187 #89F287
monochromatic
#7C19E6 #9C50EC #BB87F2 #DABEF8 #EFE3FC

Accessibility & contrast

On white

2.67
#BB87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.86
#BB87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB87F2
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB87F2#FFFFFF#000000##000000
##BB87F21.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9DF6
Deuteranopia (green-blind)
#789EEF
Tritanopia (blue-blind)
#B299B1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #bb87f2;
/* rgb */ color: rgb(187, 135, 242);
/* oklch */ color: oklch(71.6% 0.159 305.2);
Tailwind
colors: {
  custom: {
    50: '#d1abf7',
    500: '#bb87f2',
    950: '#000000',
  },
}
SCSS
$custom: #bb87f2;
$custom-light: #d1abf7;
$custom-dark: #000000;
JSON
{
  "hex": "#bb87f2",
  "rgb": {
    "r": 187,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 269.159,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.7164,
    "c": 0.1586,
    "h": 305.2
  },
  "luminance": 0.34304
}

Semantic roles & 50–950 ramp

primary
#BB87F2
secondary
#E6F4D7
accent
#DD0976
background
#FDFAFF
surface
#FAF4FE
border
#D3CED6
text
#141017
muted
#837F85

Preview Lab

Preview with #BB87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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