#B31A52#B31A52
#B31A52 is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.2% C 0.187 H 6.7°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).
Color values
| HEX | #B31A52 |
|---|---|
| RGB | rgb(179, 26, 82) |
| HSL | hsl(338, 75%, 40%) |
| HSV | hsv(338, 85%, 70%) |
| CMYK | cmyk(0%, 85.5%, 54.2%, 29.8%) |
| CIE-LAB | lab(39.47, 60.68, 8.48) |
| CIE-LCH | lch(39.47, 61.27, 7.95°) |
| OKLab | oklab(50.24% 0.1853 0.0218) |
| OKLCH | oklch(50.24% 0.187 6.7) |
| XYZ | xyz(20.4848, 10.9347, 9.0130) |
| Luminance | 0.1093 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purplish Red
#B0054B
ΔE00 1.86
Raspberry (survey)
#B00149
ΔE00 2.25
Deep Pink
#CB0162
ΔE00 4.95
Violet Red
#A50055
ΔE00 5.22
Light Burgundy
#A8415B
ΔE00 5.50
Berry
#990F4B
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B31A52 #1AB37B
analogous
#B31A9F #B31A52 #B32E1A
triadic
#B31A52 #52B31A #1A52B3
tetradic
#B31A52 #9FB31A #1AB37B #2E1AB3
square
#B31A52 #9FB31A #1AB37B #2E1AB3
split-complementary
#B31A52 #1AB32E #1A9FB3
monochromatic
#480A21 #7E123A #B31A52 #E02A6D #E86091
Accessibility & contrast
On white
6.59
#B31A52 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.19
#B31A52 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B31A52
6.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B31A52 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B31A52 | 1.00 | 6.59 | 3.19 | 6.59 |
| #FFFFFF | 6.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#474A53
Deuteranopia (green-blind)
#6E684E
Tritanopia (blue-blind)
#C40034
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #b31a52; /* rgb */ color: rgb(179, 26, 82); /* oklch */ color: oklch(50.2% 0.187 6.7);
Tailwind
colors: {
custom: {
50: '#d16b82',
500: '#b31a52',
950: '#000000',
},
}SCSS
$custom: #b31a52; $custom-light: #d16b82; $custom-dark: #000000;
JSON
{
"hex": "#b31a52",
"rgb": {
"r": 179,
"g": 26,
"b": 82
},
"hsl": {
"h": 338.039,
"s": 74.634,
"l": 40.196
},
"oklch": {
"l": 0.50243,
"c": 0.18659,
"h": 6.7
},
"luminance": 0.10932
}Semantic roles & 50–950 ramp
primary
#B31A52
secondary
#5DCCA3
accent
#F1AD37
background
#FDF6F7
surface
#FBECEE
border
#D4C7C9
text
#15080A
muted
#837A7C