#B4308E#B4308E
#B4308E is a mid, vivid pink. Relative luminance 0.138; OKLCH L 54.2% C 0.193 H 341.9°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).
Color values
| HEX | #B4308E |
|---|---|
| RGB | rgb(180, 48, 142) |
| HSL | hsl(317, 58%, 45%) |
| HSV | hsv(317, 73%, 71%) |
| CMYK | cmyk(0%, 73.3%, 21.1%, 29.4%) |
| CIE-LAB | lab(43.91, 61.13, -22.27) |
| CIE-LCH | lch(43.91, 65.06, 339.98°) |
| OKLab | oklab(54.2% 0.1834 -0.0598) |
| OKLCH | oklch(54.2% 0.193 341.9) |
| XYZ | xyz(24.7626, 13.7727, 26.9402) |
| Luminance | 0.1377 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Mediumvioletred
#C71585
ΔE00 4.32
Ugly Purple
#A442A0
ΔE00 5.58
Magenta (survey)
#C20078
ΔE00 5.87
Medium Purple
#9E43A2
ΔE00 6.84
Warm Purple
#952E8F
ΔE00 7.03
Barney Purple
#A00498
ΔE00 8.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B4308E #30B456
analogous
#9830B4 #B4308E #B4304C
triadic
#B4308E #8EB430 #308EB4
tetradic
#B4308E #B49830 #30B456 #304CB4
square
#B4308E #B49830 #30B456 #304CB4
split-complementary
#B4308E #4CB430 #30B498
monochromatic
#531642 #842368 #B4308E #D151AC #DD81C3
Accessibility & contrast
On white
5.59
#B4308E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.75
#B4308E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B4308E
5.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B4308E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B4308E | 1.00 | 5.59 | 3.75 | 5.59 |
| #FFFFFF | 5.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3C5A91
Deuteranopia (green-blind)
#65708B
Tritanopia (blue-blind)
#BF325B
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #b4308e; /* rgb */ color: rgb(180, 48, 142); /* oklch */ color: oklch(54.2% 0.193 341.9);
Tailwind
colors: {
custom: {
50: '#ce75af',
500: '#b4308e',
950: '#000000',
},
}SCSS
$custom: #b4308e; $custom-light: #ce75af; $custom-dark: #000000;
JSON
{
"hex": "#b4308e",
"rgb": {
"r": 180,
"g": 48,
"b": 142
},
"hsl": {
"h": 317.273,
"s": 57.895,
"l": 44.706
},
"oklch": {
"l": 0.54197,
"c": 0.19293,
"h": 341.9
},
"luminance": 0.1377
}Semantic roles & 50–950 ramp
primary
#B4308E
secondary
#79C690
accent
#E17347
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F