#B31F56#B31F56
#B31F56 is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.7% C 0.184 H 5.4°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).
Color values
| HEX | #B31F56 |
|---|---|
| RGB | rgb(179, 31, 86) |
| HSL | hsl(338, 70%, 41%) |
| HSV | hsv(338, 83%, 70%) |
| CMYK | cmyk(0%, 82.7%, 52%, 29.8%) |
| CIE-LAB | lab(39.98, 59.83, 6.65) |
| CIE-LCH | lch(39.98, 60.20, 6.34°) |
| OKLab | oklab(50.65% 0.1831 0.0174) |
| OKLCH | oklch(50.65% 0.184 5.4) |
| XYZ | xyz(20.7620, 11.2386, 9.8783) |
| Luminance | 0.1124 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purplish Red
#B0054B
ΔE00 2.71
Raspberry (survey)
#B00149
ΔE00 3.14
Deep Pink
#CB0162
ΔE00 4.48
Violet Red
#A50055
ΔE00 5.00
Light Burgundy
#A8415B
ΔE00 5.15
Berry
#990F4B
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B31F56 #1FB37C
analogous
#B31FA0 #B31F56 #B3321F
triadic
#B31F56 #56B31F #1F56B3
tetradic
#B31F56 #A0B31F #1FB37C #321FB3
square
#B31F56 #A0B31F #1FB37C #321FB3
split-complementary
#B31F56 #1FB332 #1FA0B3
monochromatic
#4B0D24 #7F163D #B31F56 #DC3372 #E56896
Accessibility & contrast
On white
6.47
#B31F56 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.25
#B31F56 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B31F56
6.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B31F56 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B31F56 | 1.00 | 6.47 | 3.25 | 6.47 |
| #FFFFFF | 6.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#484C57
Deuteranopia (green-blind)
#6E6952
Tritanopia (blue-blind)
#C30038
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #b31f56; /* rgb */ color: rgb(179, 31, 86); /* oklch */ color: oklch(50.7% 0.184 5.4);
Tailwind
colors: {
custom: {
50: '#d06c85',
500: '#b31f56',
950: '#000000',
},
}SCSS
$custom: #b31f56; $custom-light: #d06c85; $custom-dark: #000000;
JSON
{
"hex": "#b31f56",
"rgb": {
"r": 179,
"g": 31,
"b": 86
},
"hsl": {
"h": 337.703,
"s": 70.476,
"l": 41.176
},
"oklch": {
"l": 0.50651,
"c": 0.18387,
"h": 5.4
},
"luminance": 0.11236
}Semantic roles & 50–950 ramp
primary
#B31F56
secondary
#64CAA4
accent
#EDAB3B
background
#FDF7F8
surface
#FBEDEF
border
#D4C8CA
text
#15080B
muted
#837B7C