#B871F7#B871F7

#B871F7 is a light, vivid violet. Relative luminance 0.287; OKLCH L 68.2% C 0.198 H 306.3°. Best body text is #000000 at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#B871F7
RGBrgb(184, 113, 247)
HSLhsl(272, 89%, 71%)
HSVhsv(272, 54%, 97%)
CMYKcmyk(25.5%, 54.3%, 0%, 3.1%)
CIE-LABlab(60.53, 52.34, -56.64)
CIE-LCHlch(60.53, 77.12, 312.74°)
OKLaboklab(68.18% 0.1172 -0.1594)
OKLCHoklch(68.18% 0.198 306.3)
XYZxyz(42.4573, 28.7164, 91.2838)
Luminance0.2872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B871F7 #B0F771
analogous
#7571F7 #B871F7 #F771F3
triadic
#B871F7 #F7B871 #71F7B8
tetradic
#B871F7 #F77571 #B0F771 #71F3F7
square
#B871F7 #F77571 #B0F771 #71F3F7
split-complementary
#B871F7 #F3F771 #71F775
monochromatic
#7D0DE1 #9B37F4 #B871F7 #D5ABFA #F1E2FD

Accessibility & contrast

On white

3.11
#B871F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.74
#B871F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B871F7
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B871F7#FFFFFF#000000##000000
##B871F71.003.116.746.74
#FFFFFF3.111.0021.0021.00
#0000006.7421.001.001.00
##0000006.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4390FB
Deuteranopia (green-blind)
#5C92F4
Tritanopia (blue-blind)
#AE8AA9
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #b871f7;
/* rgb */ color: rgb(184, 113, 247);
/* oklch */ color: oklch(68.2% 0.198 306.3);
Tailwind
colors: {
  custom: {
    50: '#d09cfa',
    500: '#b871f7',
    950: '#000000',
  },
}
SCSS
$custom: #b871f7;
$custom-light: #d09cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#b871f7",
  "rgb": {
    "r": 184,
    "g": 113,
    "b": 247
  },
  "hsl": {
    "h": 271.791,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.68178,
    "c": 0.1978,
    "h": 306.3
  },
  "luminance": 0.28716
}

Semantic roles & 50–950 ramp

primary
#B871F7
secondary
#E1F4D0
accent
#E6006C
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #B871F7

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

Preview Lab → · Contrast checker → · Palette generator →

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