#BB87DC#BB87DC

#BB87DC is a light, vivid violet. Relative luminance 0.331; OKLCH L 70.6% C 0.132 H 311.4°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#BB87DC
RGBrgb(187, 135, 220)
HSLhsl(277, 55%, 70%)
HSVhsv(277, 39%, 86%)
CMYKcmyk(15%, 38.6%, 0%, 13.7%)
CIE-LABlab(64.21, 35.33, -35.84)
CIE-LCHlch(64.21, 50.32, 314.59°)
OKLaboklab(70.57% 0.0874 -0.099)
OKLCHoklch(70.57% 0.132 311.4)
XYZxyz(42.0735, 33.0607, 71.8612)
Luminance0.3306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB87DC #A8DC87
analogous
#9187DC #BB87DC #DC87D3
triadic
#BB87DC #DCBB87 #87DCBB
tetradic
#BB87DC #DC9187 #A8DC87 #87D3DC
square
#BB87DC #DC9187 #A8DC87 #87D3DC
split-complementary
#BB87DC #D3DC87 #87DC91
monochromatic
#8335B4 #A058CE #BB87DC #D6B6EA #F1E6F8

Accessibility & contrast

On white

2.76
#BB87DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#BB87DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB87DC
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB87DC#FFFFFF#000000##000000
##BB87DC1.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7799DF
Deuteranopia (green-blind)
#839DDA
Tritanopia (blue-blind)
#B893A7
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #bb87dc;
/* rgb */ color: rgb(187, 135, 220);
/* oklch */ color: oklch(70.6% 0.132 311.4);
Tailwind
colors: {
  custom: {
    50: '#d1abe7',
    500: '#bb87dc',
    950: '#000000',
  },
}
SCSS
$custom: #bb87dc;
$custom-light: #d1abe7;
$custom-dark: #000000;
JSON
{
  "hex": "#bb87dc",
  "rgb": {
    "r": 187,
    "g": 135,
    "b": 220
  },
  "hsl": {
    "h": 276.706,
    "s": 54.839,
    "l": 69.608
  },
  "oklch": {
    "l": 0.70567,
    "c": 0.13207,
    "h": 311.4
  },
  "luminance": 0.3306
}

Semantic roles & 50–950 ramp

primary
#BB87DC
secondary
#DDECD3
accent
#C22361
background
#FCFAFE
surface
#F9F4FC
border
#D2CED5
text
#141016
muted
#827F84

Preview Lab

Preview with #BB87DC

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

Preview Lab → · Contrast checker → · Palette generator →

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