#BF31B1#BF31B1

#BF31B1 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.7% C 0.222 H 332.5°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#BF31B1
RGBrgb(191, 49, 177)
HSLhsl(306, 59%, 47%)
HSVhsv(306, 74%, 75%)
CMYKcmyk(0%, 74.3%, 7.3%, 25.1%)
CIE-LABlab(47.56, 68.43, -37.32)
CIE-LCHlch(47.56, 77.94, 331.39°)
OKLaboklab(57.73% 0.1969 -0.1026)
OKLCHoklch(57.73% 0.222 332.5)
XYZxyz(30.5201, 16.4499, 43.1542)
Luminance0.1645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BF31B1 #31BF3F
analogous
#8631BF #BF31B1 #BF316A
triadic
#BF31B1 #B1BF31 #31B1BF
tetradic
#BF31B1 #BF8631 #31BF3F #316ABF
square
#BF31B1 #BF8631 #31BF3F #316ABF
split-complementary
#BF31B1 #6ABF31 #31BF86
monochromatic
#5E1857 #8E2584 #BF31B1 #D459C8 #E18AD8

Accessibility & contrast

On white

4.90
#BF31B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#BF31B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BF31B1
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BF31B1#FFFFFF#000000##FFFFFF
##BF31B11.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2864B4
Deuteranopia (green-blind)
#6078AE
Tritanopia (blue-blind)
#C7416E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #bf31b1;
/* rgb */ color: rgb(191, 49, 177);
/* oklch */ color: oklch(57.7% 0.222 332.5);
Tailwind
colors: {
  custom: {
    50: '#d678c9',
    500: '#bf31b1',
    950: '#000000',
  },
}
SCSS
$custom: #bf31b1;
$custom-light: #d678c9;
$custom-dark: #000000;
JSON
{
  "hex": "#bf31b1",
  "rgb": {
    "r": 191,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 305.915,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.5773,
    "c": 0.22198,
    "h": 332.5
  },
  "luminance": 0.16447
}

Semantic roles & 50–950 ramp

primary
#BF31B1
secondary
#81CB88
accent
#E25545
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BF31B1

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

Preview Lab → · Contrast checker → · Palette generator →

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