#BF31A4#BF31A4

#BF31A4 is a mid, highly saturated pink. Relative luminance 0.160; OKLCH L 57.1% C 0.213 H 336.9°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#BF31A4
RGBrgb(191, 49, 164)
HSLhsl(311, 59%, 47%)
HSVhsv(311, 74%, 75%)
CMYKcmyk(0%, 74.3%, 14.1%, 25.1%)
CIE-LABlab(46.92, 66.52, -30.65)
CIE-LCHlch(46.92, 73.24, 335.26°)
OKLaboklab(57.06% 0.1959 -0.0834)
OKLCHoklch(57.06% 0.213 336.9)
XYZxyz(29.2856, 15.9561, 36.6522)
Luminance0.1595 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BF31A4 #31BF4C
analogous
#9331BF #BF31A4 #BF315D
triadic
#BF31A4 #A4BF31 #31A4BF
tetradic
#BF31A4 #BF9331 #31BF4C #315DBF
square
#BF31A4 #BF9331 #31BF4C #315DBF
split-complementary
#BF31A4 #5DBF31 #31BF93
monochromatic
#5E1850 #8E257A #BF31A4 #D459BD #E18AD0

Accessibility & contrast

On white

5.01
#BF31A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#BF31A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BF31A4
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BF31A4#FFFFFF#000000##FFFFFF
##BF31A41.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3561A7
Deuteranopia (green-blind)
#6677A1
Tritanopia (blue-blind)
#C93A67
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #bf31a4;
/* rgb */ color: rgb(191, 49, 164);
/* oklch */ color: oklch(57.1% 0.213 336.9);
Tailwind
colors: {
  custom: {
    50: '#d677bf',
    500: '#bf31a4',
    950: '#000000',
  },
}
SCSS
$custom: #bf31a4;
$custom-light: #d677bf;
$custom-dark: #000000;
JSON
{
  "hex": "#bf31a4",
  "rgb": {
    "r": 191,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 311.408,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.5706,
    "c": 0.21293,
    "h": 336.9
  },
  "luminance": 0.15953
}

Semantic roles & 50–950 ramp

primary
#BF31A4
secondary
#81CB8F
accent
#E26345
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BF31A4

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

Preview Lab → · Contrast checker → · Palette generator →

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