#B87FEC#B87FEC

#B87FEC is a light, vivid violet. Relative luminance 0.314; OKLCH L 69.7% C 0.163 H 306.8°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#B87FEC
RGBrgb(184, 127, 236)
HSLhsl(271, 74%, 71%)
HSVhsv(271, 46%, 93%)
CMYKcmyk(22%, 46.2%, 0%, 7.5%)
CIE-LABlab(62.87, 42.39, -46.85)
CIE-LCHlch(62.87, 63.18, 312.14°)
OKLaboklab(69.73% 0.0978 -0.1309)
OKLCHoklch(69.73% 0.163 306.8)
XYZxyz(42.4938, 31.4256, 83.1677)
Luminance0.3142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B87FEC #B3EC7F
analogous
#817FEC #B87FEC #EC7FEA
triadic
#B87FEC #ECB87F #7FECB8
tetradic
#B87FEC #EC817F #B3EC7F #7FEAEC
square
#B87FEC #EC817F #B3EC7F #7FEAEC
split-complementary
#B87FEC #EAEC7F #7FEC81
monochromatic
#7C1FD2 #9A4AE4 #B87FEC #D6B4F4 #F0E4FB

Accessibility & contrast

On white

2.88
#B87FEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.28
#B87FEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B87FEC
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B87FEC#FFFFFF#000000##000000
##B87FEC1.002.887.287.28
#FFFFFF2.881.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6396F0
Deuteranopia (green-blind)
#7299E9
Tritanopia (blue-blind)
#B091AA
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b87fec;
/* rgb */ color: rgb(184, 127, 236);
/* oklch */ color: oklch(69.7% 0.163 306.8);
Tailwind
colors: {
  custom: {
    50: '#cfa5f2',
    500: '#b87fec',
    950: '#000000',
  },
}
SCSS
$custom: #b87fec;
$custom-light: #cfa5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b87fec",
  "rgb": {
    "r": 184,
    "g": 127,
    "b": 236
  },
  "hsl": {
    "h": 271.376,
    "s": 74.15,
    "l": 71.176
  },
  "oklch": {
    "l": 0.69726,
    "c": 0.16337,
    "h": 306.8
  },
  "luminance": 0.31425
}

Semantic roles & 50–950 ramp

primary
#B87FEC
secondary
#E3F2D5
accent
#D60F6E
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#140F17
muted
#827F85

Preview Lab

Preview with #B87FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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