#B5308E#B5308E
#B5308E is a mid, vivid pink. Relative luminance 0.139; OKLCH L 54.4% C 0.194 H 342.3°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).
Color values
| HEX | #B5308E |
|---|---|
| RGB | rgb(181, 48, 142) |
| HSL | hsl(318, 58%, 45%) |
| HSV | hsv(318, 73%, 71%) |
| CMYK | cmyk(0%, 73.5%, 21.5%, 29%) |
| CIE-LAB | lab(44.08, 61.38, -21.99) |
| CIE-LCH | lch(44.08, 65.20, 340.29°) |
| OKLab | oklab(54.36% 0.1844 -0.059) |
| OKLCH | oklch(54.36% 0.194 342.3) |
| XYZ | xyz(24.9963, 13.8932, 26.9512) |
| Luminance | 0.1389 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Mediumvioletred
#C71585
ΔE00 4.15
Ugly Purple
#A442A0
ΔE00 5.71
Magenta (survey)
#C20078
ΔE00 5.76
Medium Purple
#9E43A2
ΔE00 6.99
Warm Purple
#952E8F
ΔE00 7.25
Barney Purple
#A00498
ΔE00 8.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5308E #30B557
analogous
#9A30B5 #B5308E #B5304B
triadic
#B5308E #8EB530 #308EB5
tetradic
#B5308E #B59A30 #30B557 #304BB5
square
#B5308E #B59A30 #30B557 #304BB5
split-complementary
#B5308E #4BB530 #30B59A
monochromatic
#541642 #852368 #B5308E #D151AB #DE82C3
Accessibility & contrast
On white
5.56
#B5308E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.78
#B5308E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B5308E
5.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5308E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B5308E | 1.00 | 5.56 | 3.78 | 5.56 |
| #FFFFFF | 5.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3D5A91
Deuteranopia (green-blind)
#66708B
Tritanopia (blue-blind)
#C0315B
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #b5308e; /* rgb */ color: rgb(181, 48, 142); /* oklch */ color: oklch(54.4% 0.194 342.3);
Tailwind
colors: {
custom: {
50: '#cf75af',
500: '#b5308e',
950: '#000000',
},
}SCSS
$custom: #b5308e; $custom-light: #cf75af; $custom-dark: #000000;
JSON
{
"hex": "#b5308e",
"rgb": {
"r": 181,
"g": 48,
"b": 142
},
"hsl": {
"h": 317.594,
"s": 58.079,
"l": 44.902
},
"oklch": {
"l": 0.54356,
"c": 0.19359,
"h": 342.3
},
"luminance": 0.13891
}Semantic roles & 50–950 ramp
primary
#B5308E
secondary
#7AC790
accent
#E17446
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140910
muted
#837B7F