#A5218E#A5218E
#A5218E is a mid, vivid pink. Relative luminance 0.110; OKLCH L 50.6% C 0.199 H 336.5°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).
Color values
| HEX | #A5218E |
|---|---|
| RGB | rgb(165, 33, 142) |
| HSL | hsl(310, 67%, 39%) |
| HSV | hsv(310, 80%, 65%) |
| CMYK | cmyk(0%, 80%, 13.9%, 35.3%) |
| CIE-LAB | lab(39.65, 62.13, -29.10) |
| CIE-LCH | lch(39.65, 68.60, 334.90°) |
| OKLab | oklab(50.63% 0.1829 -0.0794) |
| OKLCH | oklch(50.63% 0.199 336.5) |
| XYZ | xyz(20.9438, 11.0420, 26.6143) |
| Luminance | 0.1104 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.18
Barney Purple
#A00498
ΔE00 3.72
Ugly Purple
#A442A0
ΔE00 5.81
Medium Purple
#9E43A2
ΔE00 6.25
Darkmagenta
#8B008B
ΔE00 6.93
Barney
#AC1DB8
ΔE00 7.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A5218E #21A538
analogous
#7A21A5 #A5218E #A5214C
triadic
#A5218E #8EA521 #218EA5
tetradic
#A5218E #A57A21 #21A538 #214CA5
square
#A5218E #A57A21 #21A538 #214CA5
split-complementary
#A5218E #4CA521 #21A57A
monochromatic
#3F0D36 #721762 #A5218E #D52EB8 #DF61C9
Accessibility & contrast
On white
6.55
#A5218E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.21
#A5218E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A5218E
6.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A5218E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A5218E | 1.00 | 6.55 | 3.21 | 6.55 |
| #FFFFFF | 6.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#245191
Deuteranopia (green-blind)
#54648B
Tritanopia (blue-blind)
#AE2B57
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #a5218e; /* rgb */ color: rgb(165, 33, 142); /* oklch */ color: oklch(50.6% 0.199 336.5);
Tailwind
colors: {
custom: {
50: '#c46daf',
500: '#a5218e',
950: '#000000',
},
}SCSS
$custom: #a5218e; $custom-light: #c46daf; $custom-dark: #000000;
JSON
{
"hex": "#a5218e",
"rgb": {
"r": 165,
"g": 33,
"b": 142
},
"hsl": {
"h": 310.455,
"s": 66.667,
"l": 38.824
},
"oklch": {
"l": 0.50629,
"c": 0.19937,
"h": 336.5
},
"luminance": 0.1104
}Semantic roles & 50–950 ramp
primary
#A5218E
secondary
#5EC46F
accent
#EA5C3E
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F