#B31A4E#B31A4E

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

Color values

HEX#B31A4E
RGBrgb(179, 26, 78)
HSLhsl(340, 75%, 40%)
HSVhsv(340, 85%, 70%)
CMYKcmyk(0%, 85.5%, 56.4%, 29.8%)
CIE-LABlab(39.37, 60.39, 10.89)
CIE-LCHlch(39.37, 61.37, 10.22°)
OKLaboklab(50.14% 0.1838 0.0276)
OKLCHoklch(50.14% 0.186 8.5)
XYZxyz(20.3370, 10.8756, 8.2346)
Luminance0.1087 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A4E #1AB37F
analogous
#B31A9A #B31A4E #B3331A
triadic
#B31A4E #4EB31A #1A4EB3
tetradic
#B31A4E #9AB31A #1AB37F #331AB3
square
#B31A4E #9AB31A #1AB37F #331AB3
split-complementary
#B31A4E #1AB333 #1A9AB3
monochromatic
#480A1F #7E1237 #B31A4E #E02A68 #E8608E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31A4E#FFFFFF#000000##FFFFFF
##B31A4E1.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)
#48494F
Deuteranopia (green-blind)
#6E674A
Tritanopia (blue-blind)
#C40032
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #b31a4e;
/* rgb */ color: rgb(179, 26, 78);
/* oklch */ color: oklch(50.1% 0.186 8.5);
Tailwind
colors: {
  custom: {
    50: '#d16b7f',
    500: '#b31a4e',
    950: '#000000',
  },
}
SCSS
$custom: #b31a4e;
$custom-light: #d16b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a4e",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 339.608,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50137,
    "c": 0.18586,
    "h": 8.5
  },
  "luminance": 0.10873
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B31A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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