#BF31B3#BF31B3

#BF31B3 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.8% C 0.223 H 331.8°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#BF31B3
RGBrgb(191, 49, 179)
HSLhsl(305, 59%, 47%)
HSVhsv(305, 74%, 75%)
CMYKcmyk(0%, 74.3%, 6.3%, 25.1%)
CIE-LABlab(47.66, 68.73, -38.34)
CIE-LCHlch(47.66, 78.70, 330.85°)
OKLaboklab(57.84% 0.1969 -0.1055)
OKLCHoklch(57.84% 0.223 331.8)
XYZxyz(30.7209, 16.5302, 44.2117)
Luminance0.1653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BF31B3 #31BF3D
analogous
#8431BF #BF31B3 #BF316C
triadic
#BF31B3 #B3BF31 #31B3BF
tetradic
#BF31B3 #BF8431 #31BF3D #316CBF
square
#BF31B3 #BF8431 #31BF3D #316CBF
split-complementary
#BF31B3 #6CBF31 #31BF84
monochromatic
#5E1858 #8E2585 #BF31B3 #D459CA #E18AD9

Accessibility & contrast

On white

4.88
#BF31B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#BF31B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BF31B3
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BF31B3#FFFFFF#000000##FFFFFF
##BF31B31.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2664B7
Deuteranopia (green-blind)
#5F78B0
Tritanopia (blue-blind)
#C74270
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #bf31b3;
/* rgb */ color: rgb(191, 49, 179);
/* oklch */ color: oklch(57.8% 0.223 331.8);
Tailwind
colors: {
  custom: {
    50: '#d678ca',
    500: '#bf31b3',
    950: '#000000',
  },
}
SCSS
$custom: #bf31b3;
$custom-light: #d678ca;
$custom-dark: #000000;
JSON
{
  "hex": "#bf31b3",
  "rgb": {
    "r": 191,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 305.07,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.57838,
    "c": 0.22341,
    "h": 331.8
  },
  "luminance": 0.16528
}

Semantic roles & 50–950 ramp

primary
#BF31B3
secondary
#81CB87
accent
#E25345
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BF31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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