#B87EFB#B87EFB

#B87EFB is a light, vivid violet. Relative luminance 0.321; OKLCH L 70.4% C 0.183 H 303.5°. Best body text is #000000 at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#B87EFB
RGBrgb(184, 126, 251)
HSLhsl(268, 94%, 74%)
HSVhsv(268, 50%, 98%)
CMYKcmyk(26.7%, 49.8%, 0%, 1.6%)
CIE-LABlab(63.41, 46.38, -54.26)
CIE-LCHlch(63.41, 71.38, 310.52°)
OKLaboklab(70.38% 0.1008 -0.1525)
OKLCHoklch(70.38% 0.183 303.5)
XYZxyz(44.6368, 32.0772, 95.0880)
Luminance0.3208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B87EFB #C1FB7E
analogous
#7E83FB #B87EFB #F77EFB
triadic
#B87EFB #FBB87E #7EFBB8
tetradic
#B87EFB #FB7E83 #C1FB7E #7EFBF7
square
#B87EFB #FB7E83 #C1FB7E #7EFBF7
split-complementary
#B87EFB #FBF77E #83FB7E
monochromatic
#7708F7 #9743F9 #B87EFB #D9B9FD #EFE1FE

Accessibility & contrast

On white

2.83
#B87EFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.42
#B87EFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B87EFB
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B87EFB#FFFFFF#000000##000000
##B87EFB1.002.837.427.42
#FFFFFF2.831.0021.0021.00
#0000007.4221.001.001.00
##0000007.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5798FF
Deuteranopia (green-blind)
#6799F8
Tritanopia (blue-blind)
#AC95B1
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #b87efb;
/* rgb */ color: rgb(184, 126, 251);
/* oklch */ color: oklch(70.4% 0.183 303.5);
Tailwind
colors: {
  custom: {
    50: '#d0a5fd',
    500: '#b87efb',
    950: '#000000',
  },
}
SCSS
$custom: #b87efb;
$custom-light: #d0a5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#b87efb",
  "rgb": {
    "r": 184,
    "g": 126,
    "b": 251
  },
  "hsl": {
    "h": 267.84,
    "s": 93.985,
    "l": 73.922
  },
  "oklch": {
    "l": 0.70375,
    "c": 0.18277,
    "h": 303.5
  },
  "luminance": 0.32077
}

Semantic roles & 50–950 ramp

primary
#B87EFB
secondary
#E7F6D5
accent
#E6007B
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #B87EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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