#B42158#B42158
#B42158 is a mid, vivid pink. Relative luminance 0.115; OKLCH L 51.0% C 0.184 H 4.9°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).
Color values
| HEX | #B42158 |
|---|---|
| RGB | rgb(180, 33, 88) |
| HSL | hsl(338, 69%, 42%) |
| HSV | hsv(338, 82%, 71%) |
| CMYK | cmyk(0%, 81.7%, 51.1%, 29.4%) |
| CIE-LAB | lab(40.41, 59.75, 6.02) |
| CIE-LCH | lch(40.41, 60.06, 5.75°) |
| OKLab | oklab(51.02% 0.1829 0.0158) |
| OKLCH | oklch(51.02% 0.184 4.9) |
| XYZ | xyz(21.1296, 11.4986, 10.3375) |
| Luminance | 0.1150 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purplish Red
#B0054B
ΔE00 3.18
Raspberry (survey)
#B00149
ΔE00 3.61
Deep Pink
#CB0162
ΔE00 4.15
Light Burgundy
#A8415B
ΔE00 5.03
Violet Red
#A50055
ΔE00 5.14
Berry
#990F4B
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B42158 #21B47D
analogous
#B421A2 #B42158 #B43421
triadic
#B42158 #58B421 #2158B4
tetradic
#B42158 #A2B421 #21B47D #3421B4
square
#B42158 #A2B421 #21B47D #3421B4
split-complementary
#B42158 #21B434 #21A2B4
monochromatic
#4D0E25 #80183F #B42158 #DA3875 #E46B99
Accessibility & contrast
On white
6.37
#B42158 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.30
#B42158 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B42158
6.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B42158 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B42158 | 1.00 | 6.37 | 3.30 | 6.37 |
| #FFFFFF | 6.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#484D59
Deuteranopia (green-blind)
#6F6955
Tritanopia (blue-blind)
#C4003A
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #b42158; /* rgb */ color: rgb(180, 33, 88); /* oklch */ color: oklch(51.0% 0.184 4.9);
Tailwind
colors: {
custom: {
50: '#d16d86',
500: '#b42158',
950: '#000000',
},
}SCSS
$custom: #b42158; $custom-light: #d16d86; $custom-dark: #000000;
JSON
{
"hex": "#b42158",
"rgb": {
"r": 180,
"g": 33,
"b": 88
},
"hsl": {
"h": 337.551,
"s": 69.014,
"l": 41.765
},
"oklch": {
"l": 0.51018,
"c": 0.18358,
"h": 4.9
},
"luminance": 0.11496
}Semantic roles & 50–950 ramp
primary
#B42158
secondary
#67CAA5
accent
#ECAA3C
background
#FDF7F8
surface
#FBEDEF
border
#D4C8CA
text
#15080B
muted
#837B7C