#B31F72#B31F72

#B31F72 is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.6% C 0.194 H 352.6°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#B31F72
RGBrgb(179, 31, 114)
HSLhsl(326, 70%, 41%)
HSVhsv(326, 83%, 70%)
CMYKcmyk(0%, 82.7%, 36.3%, 29.8%)
CIE-LABlab(40.87, 62.43, -9.70)
CIE-LCHlch(40.87, 63.18, 351.17°)
OKLaboklab(51.59% 0.192 -0.025)
OKLCHoklch(51.59% 0.194 352.6)
XYZxyz(22.1191, 11.7814, 17.0256)
Luminance0.1178 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31F72 #1FB360
analogous
#AA1FB3 #B31F72 #B31F28
triadic
#B31F72 #72B31F #1F72B3
tetradic
#B31F72 #B3AA1F #1FB360 #1F28B3
square
#B31F72 #B3AA1F #1FB360 #1F28B3
split-complementary
#B31F72 #28B31F #1FB3AA
monochromatic
#4B0D30 #7F1651 #B31F72 #DC3392 #E568AE

Accessibility & contrast

On white

6.26
#B31F72 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#B31F72 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31F72
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31F72#FFFFFF#000000##FFFFFF
##B31F721.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E4F74
Deuteranopia (green-blind)
#686A6F
Tritanopia (blue-blind)
#C10747
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #b31f72;
/* rgb */ color: rgb(179, 31, 114);
/* oklch */ color: oklch(51.6% 0.194 352.6);
Tailwind
colors: {
  custom: {
    50: '#cf6d9a',
    500: '#b31f72',
    950: '#000000',
  },
}
SCSS
$custom: #b31f72;
$custom-light: #cf6d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#b31f72",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 326.351,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51588,
    "c": 0.19359,
    "h": 352.6
  },
  "luminance": 0.11779
}

Semantic roles & 50–950 ramp

primary
#B31F72
secondary
#64CA91
accent
#ED893B
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#15080E
muted
#837B7E

Preview Lab

Preview with #B31F72

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

Preview Lab → · Contrast checker → · Palette generator →

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