#B87DF7#B87DF7

#B87DF7 is a light, vivid violet. Relative luminance 0.316; OKLCH L 70.0% C 0.180 H 304.5°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#B87DF7
RGBrgb(184, 125, 247)
HSLhsl(269, 88%, 73%)
HSVhsv(269, 49%, 97%)
CMYKcmyk(25.5%, 49.4%, 0%, 3.1%)
CIE-LABlab(62.99, 45.99, -52.73)
CIE-LCHlch(62.99, 69.96, 311.09°)
OKLaboklab(70% 0.1017 -0.148)
OKLCHoklch(70% 0.18 304.5)
XYZxyz(43.8857, 31.5732, 91.7599)
Luminance0.3157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B87DF7 #BCF77D
analogous
#7D7FF7 #B87DF7 #F57DF7
triadic
#B87DF7 #F7B87D #7DF7B8
tetradic
#B87DF7 #F77D7F #BCF77D #7DF7F5
square
#B87DF7 #F77D7F #BCF77D #7DF7F5
split-complementary
#B87DF7 #F7F57D #7FF77D
monochromatic
#790EEB #9943F3 #B87DF7 #D7B7FB #EFE2FD

Accessibility & contrast

On white

2.87
#B87DF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.31
#B87DF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B87DF7
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B87DF7#FFFFFF#000000##000000
##B87DF71.002.877.317.31
#FFFFFF2.871.0021.0021.00
#0000007.3121.001.001.00
##0000007.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5897FB
Deuteranopia (green-blind)
#6999F4
Tritanopia (blue-blind)
#AD93AF
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #b87df7;
/* rgb */ color: rgb(184, 125, 247);
/* oklch */ color: oklch(70.0% 0.180 304.5);
Tailwind
colors: {
  custom: {
    50: '#d0a4fa',
    500: '#b87df7',
    950: '#000000',
  },
}
SCSS
$custom: #b87df7;
$custom-light: #d0a4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#b87df7",
  "rgb": {
    "r": 184,
    "g": 125,
    "b": 247
  },
  "hsl": {
    "h": 269.016,
    "s": 88.406,
    "l": 72.941
  },
  "oklch": {
    "l": 0.69997,
    "c": 0.17957,
    "h": 304.5
  },
  "luminance": 0.31573
}

Semantic roles & 50–950 ramp

primary
#B87DF7
secondary
#E6F5D6
accent
#E50076
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #B87DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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