#BF31B7#BF31B7

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

Color values

HEX#BF31B7
RGBrgb(191, 49, 183)
HSLhsl(303, 59%, 47%)
HSVhsv(303, 74%, 75%)
CMYKcmyk(0%, 74.3%, 4.2%, 25.1%)
CIE-LABlab(47.87, 69.35, -40.35)
CIE-LCHlch(47.87, 80.23, 329.81°)
OKLaboklab(58.06% 0.197 -0.1113)
OKLCHoklch(58.06% 0.226 330.5)
XYZxyz(31.1313, 16.6944, 46.3733)
Luminance0.1669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BF31B7 #31BF39
analogous
#8031BF #BF31B7 #BF3170
triadic
#BF31B7 #B7BF31 #31B7BF
tetradic
#BF31B7 #BF8031 #31BF39 #3170BF
square
#BF31B7 #BF8031 #31BF39 #3170BF
split-complementary
#BF31B7 #70BF31 #31BF80
monochromatic
#5E185A #8E2588 #BF31B7 #D459CD #E18ADC

Accessibility & contrast

On white

4.84
#BF31B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#BF31B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BF31B7
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BF31B7#FFFFFF#000000##FFFFFF
##BF31B71.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2065BB
Deuteranopia (green-blind)
#5D78B4
Tritanopia (blue-blind)
#C64472
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #bf31b7;
/* rgb */ color: rgb(191, 49, 183);
/* oklch */ color: oklch(58.1% 0.226 330.5);
Tailwind
colors: {
  custom: {
    50: '#d678cd',
    500: '#bf31b7',
    950: '#000000',
  },
}
SCSS
$custom: #bf31b7;
$custom-light: #d678cd;
$custom-dark: #000000;
JSON
{
  "hex": "#bf31b7",
  "rgb": {
    "r": 191,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 303.38,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.58056,
    "c": 0.22631,
    "h": 330.5
  },
  "luminance": 0.16692
}

Semantic roles & 50–950 ramp

primary
#BF31B7
secondary
#81CB85
accent
#E24E45
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BF31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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