#B31F56#B31F56

#B31F56 is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.7% C 0.184 H 5.4°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#B31F56
RGBrgb(179, 31, 86)
HSLhsl(338, 70%, 41%)
HSVhsv(338, 83%, 70%)
CMYKcmyk(0%, 82.7%, 52%, 29.8%)
CIE-LABlab(39.98, 59.83, 6.65)
CIE-LCHlch(39.98, 60.20, 6.34°)
OKLaboklab(50.65% 0.1831 0.0174)
OKLCHoklch(50.65% 0.184 5.4)
XYZxyz(20.7620, 11.2386, 9.8783)
Luminance0.1124 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31F56 #1FB37C
analogous
#B31FA0 #B31F56 #B3321F
triadic
#B31F56 #56B31F #1F56B3
tetradic
#B31F56 #A0B31F #1FB37C #321FB3
square
#B31F56 #A0B31F #1FB37C #321FB3
split-complementary
#B31F56 #1FB332 #1FA0B3
monochromatic
#4B0D24 #7F163D #B31F56 #DC3372 #E56896

Accessibility & contrast

On white

6.47
#B31F56 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#B31F56 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31F56
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31F56#FFFFFF#000000##FFFFFF
##B31F561.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#484C57
Deuteranopia (green-blind)
#6E6952
Tritanopia (blue-blind)
#C30038
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #b31f56;
/* rgb */ color: rgb(179, 31, 86);
/* oklch */ color: oklch(50.7% 0.184 5.4);
Tailwind
colors: {
  custom: {
    50: '#d06c85',
    500: '#b31f56',
    950: '#000000',
  },
}
SCSS
$custom: #b31f56;
$custom-light: #d06c85;
$custom-dark: #000000;
JSON
{
  "hex": "#b31f56",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 86
  },
  "hsl": {
    "h": 337.703,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.50651,
    "c": 0.18387,
    "h": 5.4
  },
  "luminance": 0.11236
}

Semantic roles & 50–950 ramp

primary
#B31F56
secondary
#64CAA4
accent
#EDAB3B
background
#FDF7F8
surface
#FBEDEF
border
#D4C8CA
text
#15080B
muted
#837B7C

Preview Lab

Preview with #B31F56

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

Preview Lab → · Contrast checker → · Palette generator →

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