#B31A4C#B31A4C

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

Color values

HEX#B31A4C
RGBrgb(179, 26, 76)
HSLhsl(340, 75%, 40%)
HSVhsv(340, 85%, 70%)
CMYKcmyk(0%, 85.5%, 57.5%, 29.8%)
CIE-LABlab(39.32, 60.25, 12.10)
CIE-LCHlch(39.32, 61.45, 11.35°)
OKLaboklab(50.09% 0.183 0.0304)
OKLCHoklch(50.09% 0.186 9.4)
XYZxyz(20.2664, 10.8474, 7.8627)
Luminance0.1084 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A4C #1AB381
analogous
#B31A99 #B31A4C #B3341A
triadic
#B31A4C #4CB31A #1A4CB3
tetradic
#B31A4C #99B31A #1AB381 #341AB3
square
#B31A4C #99B31A #1AB381 #341AB3
split-complementary
#B31A4C #1AB334 #1A99B3
monochromatic
#480A1F #7E1235 #B31A4C #E02A66 #E8608C

Accessibility & contrast

On white

6.63
#B31A4C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31A4C
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31A4C#FFFFFF#000000##FFFFFF
##B31A4C1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48494D
Deuteranopia (green-blind)
#6F6748
Tritanopia (blue-blind)
#C40031
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #b31a4c;
/* rgb */ color: rgb(179, 26, 76);
/* oklch */ color: oklch(50.1% 0.186 9.4);
Tailwind
colors: {
  custom: {
    50: '#d16b7d',
    500: '#b31a4c',
    950: '#000000',
  },
}
SCSS
$custom: #b31a4c;
$custom-light: #d16b7d;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a4c",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 76
  },
  "hsl": {
    "h": 340.392,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50086,
    "c": 0.18554,
    "h": 9.4
  },
  "luminance": 0.10844
}

Semantic roles & 50–950 ramp

primary
#B31A4C
secondary
#5DCCA8
accent
#F1B437
background
#FDF6F7
surface
#FBECEE
border
#D4C7C9
text
#150809
muted
#837A7B

Preview Lab

Preview with #B31A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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