#B31B5B#B31B5B
#B31B5B is a mid, vivid pink. Relative luminance 0.111; OKLCH L 50.6% C 0.188 H 2.7°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).
Color values
| HEX | #B31B5B |
|---|---|
| RGB | rgb(179, 27, 91) |
| HSL | hsl(335, 74%, 40%) |
| HSV | hsv(335, 85%, 70%) |
| CMYK | cmyk(0%, 84.9%, 49.2%, 29.8%) |
| CIE-LAB | lab(39.79, 61.18, 3.20) |
| CIE-LCH | lch(39.79, 61.26, 3.00°) |
| OKLab | oklab(50.56% 0.1879 0.0088) |
| OKLCH | oklch(50.56% 0.188 2.7) |
| XYZ | xyz(20.8725, 11.1259, 10.9439) |
| Luminance | 0.1112 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purplish Red
#B0054B
ΔE00 3.77
Violet Red
#A50055
ΔE00 4.04
Raspberry (survey)
#B00149
ΔE00 4.26
Deep Pink
#CB0162
ΔE00 4.30
Berry
#990F4B
ΔE00 5.75
Deep Magenta
#A0025C
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B31B5B #1BB373
analogous
#B31BA7 #B31B5B #B3271B
triadic
#B31B5B #5BB31B #1B5BB3
tetradic
#B31B5B #A7B31B #1BB373 #271BB3
square
#B31B5B #A7B31B #1BB373 #271BB3
split-complementary
#B31B5B #1BB327 #1BA7B3
monochromatic
#490B25 #7E1340 #B31B5B #DF2C77 #E7619A
Accessibility & contrast
On white
6.51
#B31B5B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.22
#B31B5B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B31B5B
6.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B31B5B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B31B5B | 1.00 | 6.51 | 3.22 | 6.51 |
| #FFFFFF | 6.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#454B5C
Deuteranopia (green-blind)
#6C6858
Tritanopia (blue-blind)
#C30039
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #b31b5b; /* rgb */ color: rgb(179, 27, 91); /* oklch */ color: oklch(50.6% 0.188 2.7);
Tailwind
colors: {
custom: {
50: '#d06b89',
500: '#b31b5b',
950: '#000000',
},
}SCSS
$custom: #b31b5b; $custom-light: #d06b89; $custom-dark: #000000;
JSON
{
"hex": "#b31b5b",
"rgb": {
"r": 179,
"g": 27,
"b": 91
},
"hsl": {
"h": 334.737,
"s": 73.786,
"l": 40.392
},
"oklch": {
"l": 0.50559,
"c": 0.18808,
"h": 2.7
},
"luminance": 0.11123
}Semantic roles & 50–950 ramp
primary
#B31B5B
secondary
#5ECC9E
accent
#F0A337
background
#FDF7F8
surface
#FBEDEF
border
#D4C8CA
text
#15080B
muted
#837B7C