#5A1248#5A1248
#5A1248 is a dark, vivid pink. Relative luminance 0.031; OKLCH L 32.9% C 0.120 H 340.0°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).
Color values
| HEX | #5A1248 |
|---|---|
| RGB | rgb(90, 18, 72) |
| HSL | hsl(315, 67%, 21%) |
| HSV | hsv(315, 80%, 35%) |
| CMYK | cmyk(0%, 80%, 20%, 64.7%) |
| CIE-LAB | lab(20.34, 37.95, -15.22) |
| CIE-LCH | lch(20.34, 40.89, 338.15°) |
| OKLab | oklab(32.92% 0.1132 -0.0411) |
| OKLCH | oklch(32.92% 0.12 340) |
| XYZ | xyz(5.6026, 3.0747, 6.4281) |
| Luminance | 0.0307 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Plum (survey)
#580F41
ΔE00 1.73
Grape Purple
#5D1451
ΔE00 2.14
Deep Violet
#490648
ΔE00 5.12
Rich Purple
#720058
ΔE00 5.15
Velvet
#750851
ΔE00 5.49
Plum Purple
#4E0550
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A1248 #125A24
analogous
#48125A #5A1248 #5A1224
triadic
#5A1248 #485A12 #12485A
tetradic
#5A1248 #5A4812 #125A24 #12245A
square
#5A1248 #5A4812 #125A24 #12245A
split-complementary
#5A1248 #245A12 #125A48
monochromatic
#1A0514 #27081F #5A1248 #8D1C71 #C0269A
Accessibility & contrast
On white
13.00
#5A1248 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#5A1248 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A1248
13.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A1248 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A1248 | 1.00 | 13.00 | 1.61 | 13.00 |
| #FFFFFF | 13.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#172A49
Deuteranopia (green-blind)
#2F3546
Tritanopia (blue-blind)
#60142B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #5a1248; /* rgb */ color: rgb(90, 18, 72); /* oklch */ color: oklch(32.9% 0.120 340.0);
Tailwind
colors: {
custom: {
50: '#8c587b',
500: '#5a1248',
950: '#000000',
},
}SCSS
$custom: #5a1248; $custom-light: #8c587b; $custom-dark: #000000;
JSON
{
"hex": "#5a1248",
"rgb": {
"r": 90,
"g": 18,
"b": 72
},
"hsl": {
"h": 315,
"s": 66.667,
"l": 21.176
},
"oklch": {
"l": 0.32924,
"c": 0.12044,
"h": 340
},
"luminance": 0.03074
}Semantic roles & 50–950 ramp
primary
#5A1248
secondary
#35934D
accent
#EA693E
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0409
muted
#7D797B