#B31A4F#B31A4F

#B31A4F is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.2% C 0.186 H 8.1°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#B31A4F
RGBrgb(179, 26, 79)
HSLhsl(339, 75%, 40%)
HSVhsv(339, 85%, 70%)
CMYKcmyk(0%, 85.5%, 55.9%, 29.8%)
CIE-LABlab(39.39, 60.46, 10.28)
CIE-LCHlch(39.39, 61.33, 9.65°)
OKLaboklab(50.16% 0.1842 0.0261)
OKLCHoklch(50.16% 0.186 8.1)
XYZxyz(20.3731, 10.8900, 8.4249)
Luminance0.1089 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A4F #1AB37E
analogous
#B31A9B #B31A4F #B3321A
triadic
#B31A4F #4FB31A #1A4FB3
tetradic
#B31A4F #9BB31A #1AB37E #321AB3
square
#B31A4F #9BB31A #1AB37E #321AB3
split-complementary
#B31A4F #1AB332 #1A9BB3
monochromatic
#480A20 #7E1237 #B31A4F #E02A69 #E8608F

Accessibility & contrast

On white

6.61
#B31A4F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#B31A4F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31A4F
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31A4F#FFFFFF#000000##FFFFFF
##B31A4F1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#474950
Deuteranopia (green-blind)
#6E674B
Tritanopia (blue-blind)
#C40033
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #b31a4f;
/* rgb */ color: rgb(179, 26, 79);
/* oklch */ color: oklch(50.2% 0.186 8.1);
Tailwind
colors: {
  custom: {
    50: '#d16b80',
    500: '#b31a4f',
    950: '#000000',
  },
}
SCSS
$custom: #b31a4f;
$custom-light: #d16b80;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a4f",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 79
  },
  "hsl": {
    "h": 339.216,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50163,
    "c": 0.18603,
    "h": 8.1
  },
  "luminance": 0.10887
}

Semantic roles & 50–950 ramp

primary
#B31A4F
secondary
#5DCCA6
accent
#F1B137
background
#FDF6F7
surface
#FBECEE
border
#D4C7C9
text
#15080A
muted
#837A7C

Preview Lab

Preview with #B31A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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