#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 |
|---|---|
| RGB | rgb(179, 26, 76) |
| HSL | hsl(340, 75%, 40%) |
| HSV | hsv(340, 85%, 70%) |
| CMYK | cmyk(0%, 85.5%, 57.5%, 29.8%) |
| CIE-LAB | lab(39.32, 60.25, 12.10) |
| CIE-LCH | lch(39.32, 61.45, 11.35°) |
| OKLab | oklab(50.09% 0.183 0.0304) |
| OKLCH | oklch(50.09% 0.186 9.4) |
| XYZ | xyz(20.2664, 10.8474, 7.8627) |
| Luminance | 0.1084 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Raspberry (survey)
#B00149
ΔE00 1.92
Purplish Red
#B0054B
ΔE00 1.94
Rouge
#AB1239
ΔE00 4.90
Ruby
#CA0147
ΔE00 5.10
Rose Red
#BE013C
ΔE00 5.29
Cranberry
#9E003A
ΔE00 5.44
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 |
|---|---|---|---|---|
| ##B31A4C | 1.00 | 6.63 | 3.17 | 6.63 |
| #FFFFFF | 6.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.63 | 1.00 | 21.00 | 1.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