#B5397E#B5397E
#B5397E is a mid, vivid pink. Relative luminance 0.143; OKLCH L 54.5% C 0.173 H 350.1°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).
Color values
| HEX | #B5397E |
|---|---|
| RGB | rgb(181, 57, 126) |
| HSL | hsl(327, 52%, 47%) |
| HSV | hsv(327, 69%, 71%) |
| CMYK | cmyk(0%, 68.5%, 30.4%, 29%) |
| CIE-LAB | lab(44.60, 56.07, -11.45) |
| CIE-LCH | lch(44.60, 57.22, 348.46°) |
| OKLab | oklab(54.53% 0.1708 -0.0298) |
| OKLCH | oklch(54.53% 0.173 350.1) |
| XYZ | xyz(24.2863, 14.2590, 21.2079) |
| Luminance | 0.1426 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Mediumvioletred
#C71585
ΔE00 3.93
Magenta (survey)
#C20078
ΔE00 4.41
Light Plum
#9D5783
ΔE00 7.37
Deep Pink
#CB0162
ΔE00 8.29
Purpleish
#98568D
ΔE00 8.66
Red Violet
#9E0168
ΔE00 8.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5397E #39B570
analogous
#AE39B5 #B5397E #B53940
triadic
#B5397E #7EB539 #397EB5
tetradic
#B5397E #B5AE39 #39B570 #3940B5
square
#B5397E #B5AE39 #39B570 #3940B5
split-complementary
#B5397E #40B539 #39B5AE
monochromatic
#581C3D #862A5E #B5397E #CD5F9C #DB8DB9
Accessibility & contrast
On white
5.45
#B5397E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.85
#B5397E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B5397E
5.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5397E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B5397E | 1.00 | 5.45 | 3.85 | 5.45 |
| #FFFFFF | 5.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4B5B80
Deuteranopia (green-blind)
#6E727B
Tritanopia (blue-blind)
#C23356
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #b5397e; /* rgb */ color: rgb(181, 57, 126); /* oklch */ color: oklch(54.5% 0.173 350.1);
Tailwind
colors: {
custom: {
50: '#cf79a3',
500: '#b5397e',
950: '#000000',
},
}SCSS
$custom: #b5397e; $custom-light: #cf79a3; $custom-dark: #000000;
JSON
{
"hex": "#b5397e",
"rgb": {
"r": 181,
"g": 57,
"b": 126
},
"hsl": {
"h": 326.613,
"s": 52.101,
"l": 46.667
},
"oklch": {
"l": 0.54529,
"c": 0.17341,
"h": 350.1
},
"luminance": 0.14256
}Semantic roles & 50–950 ramp
primary
#B5397E
secondary
#84C6A1
accent
#DC8C4C
background
#FDF7FA
surface
#FAEEF3
border
#D3C9CD
text
#140A0F
muted
#837C7F