#B871FB#B871FB

#B871FB is a light, highly saturated violet. Relative luminance 0.290; OKLCH L 68.4% C 0.202 H 305.4°. Best body text is #000000 at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#B871FB
RGBrgb(184, 113, 251)
HSLhsl(271, 95%, 71%)
HSVhsv(271, 55%, 98%)
CMYKcmyk(26.7%, 55%, 0%, 1.6%)
CIE-LABlab(60.75, 53.25, -58.49)
CIE-LCHlch(60.75, 79.10, 312.32°)
OKLaboklab(68.41% 0.1173 -0.1648)
OKLCHoklch(68.41% 0.202 305.4)
XYZxyz(43.0812, 28.9659, 94.5695)
Luminance0.2897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B871FB #B4FB71
analogous
#7371FB #B871FB #FB71F9
triadic
#B871FB #FBB871 #71FBB8
tetradic
#B871FB #FB7371 #B4FB71 #71F9FB
square
#B871FB #FB7371 #B4FB71 #71F9FB
split-complementary
#B871FB #F9FB71 #71FB73
monochromatic
#7C07EB #9A35F9 #B871FB #D6ADFD #F0E1FE

Accessibility & contrast

On white

3.09
#B871FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.79
#B871FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B871FB
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B871FB#FFFFFF#000000##000000
##B871FB1.003.096.796.79
#FFFFFF3.091.0021.0021.00
#0000006.7921.001.001.00
##0000006.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F90FF
Deuteranopia (green-blind)
#5893F8
Tritanopia (blue-blind)
#AD8BAB
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #b871fb;
/* rgb */ color: rgb(184, 113, 251);
/* oklch */ color: oklch(68.4% 0.202 305.4);
Tailwind
colors: {
  custom: {
    50: '#d19cfd',
    500: '#b871fb',
    950: '#000000',
  },
}
SCSS
$custom: #b871fb;
$custom-light: #d19cfd;
$custom-dark: #000000;
JSON
{
  "hex": "#b871fb",
  "rgb": {
    "r": 184,
    "g": 113,
    "b": 251
  },
  "hsl": {
    "h": 270.87,
    "s": 94.521,
    "l": 71.373
  },
  "oklch": {
    "l": 0.68412,
    "c": 0.20228,
    "h": 305.4
  },
  "luminance": 0.28966
}

Semantic roles & 50–950 ramp

primary
#B871FB
secondary
#E3F6D2
accent
#E6006F
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #B871FB

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

Preview Lab → · Contrast checker → · Palette generator →

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