#B31A4D#B31A4D

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

Color values

HEX#B31A4D
RGBrgb(179, 26, 77)
HSLhsl(340, 75%, 40%)
HSVhsv(340, 85%, 70%)
CMYKcmyk(0%, 85.5%, 57%, 29.8%)
CIE-LABlab(39.35, 60.32, 11.49)
CIE-LCHlch(39.35, 61.41, 10.79°)
OKLaboklab(50.11% 0.1834 0.029)
OKLCHoklch(50.11% 0.186 9)
XYZxyz(20.3014, 10.8614, 8.0472)
Luminance0.1086 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A4D #1AB380
analogous
#B31A99 #B31A4D #B3331A
triadic
#B31A4D #4DB31A #1A4DB3
tetradic
#B31A4D #99B31A #1AB380 #331AB3
square
#B31A4D #99B31A #1AB380 #331AB3
split-complementary
#B31A4D #1AB333 #1A99B3
monochromatic
#480A1F #7E1236 #B31A4D #E02A67 #E8608D

Accessibility & contrast

On white

6.62
#B31A4D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#B31A4D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31A4D
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31A4D#FFFFFF#000000##FFFFFF
##B31A4D1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48494E
Deuteranopia (green-blind)
#6F6749
Tritanopia (blue-blind)
#C40032
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #b31a4d;
/* rgb */ color: rgb(179, 26, 77);
/* oklch */ color: oklch(50.1% 0.186 9.0);
Tailwind
colors: {
  custom: {
    50: '#d16b7e',
    500: '#b31a4d',
    950: '#000000',
  },
}
SCSS
$custom: #b31a4d;
$custom-light: #d16b7e;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a4d",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 77
  },
  "hsl": {
    "h": 340,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50112,
    "c": 0.1857,
    "h": 9
  },
  "luminance": 0.10858
}

Semantic roles & 50–950 ramp

primary
#B31A4D
secondary
#5DCCA7
accent
#F1B337
background
#FDF6F7
surface
#FBECEE
border
#D4C7C9
text
#150809
muted
#837A7B

Preview Lab

Preview with #B31A4D

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

Preview Lab → · Contrast checker → · Palette generator →

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