#BF31A7#BF31A7

#BF31A7 is a mid, highly saturated pink. Relative luminance 0.161; OKLCH L 57.2% C 0.215 H 335.9°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#BF31A7
RGBrgb(191, 49, 167)
HSLhsl(310, 59%, 47%)
HSVhsv(310, 74%, 75%)
CMYKcmyk(0%, 74.3%, 12.6%, 25.1%)
CIE-LABlab(47.06, 66.95, -32.20)
CIE-LCHlch(47.06, 74.29, 334.31°)
OKLaboklab(57.21% 0.1962 -0.0879)
OKLCHoklch(57.21% 0.215 335.9)
XYZxyz(29.5597, 16.0657, 38.0959)
Luminance0.1606 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BF31A7 #31BF49
analogous
#9031BF #BF31A7 #BF3160
triadic
#BF31A7 #A7BF31 #31A7BF
tetradic
#BF31A7 #BF9031 #31BF49 #3160BF
square
#BF31A7 #BF9031 #31BF49 #3160BF
split-complementary
#BF31A7 #60BF31 #31BF90
monochromatic
#5E1852 #8E257C #BF31A7 #D459BF #E18AD2

Accessibility & contrast

On white

4.99
#BF31A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#BF31A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BF31A7
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BF31A7#FFFFFF#000000##FFFFFF
##BF31A71.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3362AA
Deuteranopia (green-blind)
#6577A4
Tritanopia (blue-blind)
#C93C69
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #bf31a7;
/* rgb */ color: rgb(191, 49, 167);
/* oklch */ color: oklch(57.2% 0.215 335.9);
Tailwind
colors: {
  custom: {
    50: '#d678c1',
    500: '#bf31a7',
    950: '#000000',
  },
}
SCSS
$custom: #bf31a7;
$custom-light: #d678c1;
$custom-dark: #000000;
JSON
{
  "hex": "#bf31a7",
  "rgb": {
    "r": 191,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 310.141,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.5721,
    "c": 0.21496,
    "h": 335.9
  },
  "luminance": 0.16063
}

Semantic roles & 50–950 ramp

primary
#BF31A7
secondary
#81CB8D
accent
#E26045
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BF31A7

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

Preview Lab → · Contrast checker → · Palette generator →

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