#BF31B6#BF31B6

#BF31B6 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.0% C 0.226 H 330.8°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#BF31B6
RGBrgb(191, 49, 182)
HSLhsl(304, 59%, 47%)
HSVhsv(304, 74%, 75%)
CMYKcmyk(0%, 74.3%, 4.7%, 25.1%)
CIE-LABlab(47.82, 69.19, -39.85)
CIE-LCHlch(47.82, 79.85, 330.06°)
OKLaboklab(58% 0.197 -0.1099)
OKLCHoklch(58% 0.226 330.8)
XYZxyz(31.0276, 16.6529, 45.8271)
Luminance0.1665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BF31B6 #31BF3A
analogous
#8131BF #BF31B6 #BF316F
triadic
#BF31B6 #B6BF31 #31B6BF
tetradic
#BF31B6 #BF8131 #31BF3A #316FBF
square
#BF31B6 #BF8131 #31BF3A #316FBF
split-complementary
#BF31B6 #6FBF31 #31BF81
monochromatic
#5E1859 #8E2588 #BF31B6 #D459CD #E18ADB

Accessibility & contrast

On white

4.85
#BF31B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#BF31B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BF31B6
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BF31B6#FFFFFF#000000##FFFFFF
##BF31B61.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2265BA
Deuteranopia (green-blind)
#5E78B3
Tritanopia (blue-blind)
#C74371
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #bf31b6;
/* rgb */ color: rgb(191, 49, 182);
/* oklch */ color: oklch(58.0% 0.226 330.8);
Tailwind
colors: {
  custom: {
    50: '#d678cc',
    500: '#bf31b6',
    950: '#000000',
  },
}
SCSS
$custom: #bf31b6;
$custom-light: #d678cc;
$custom-dark: #000000;
JSON
{
  "hex": "#bf31b6",
  "rgb": {
    "r": 191,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 303.803,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.58001,
    "c": 0.22558,
    "h": 330.8
  },
  "luminance": 0.1665
}

Semantic roles & 50–950 ramp

primary
#BF31B6
secondary
#81CB86
accent
#E24F45
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BF31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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