#A6228F#A6228F
#A6228F is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.9% C 0.200 H 336.5°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).
Color values
| HEX | #A6228F |
|---|---|
| RGB | rgb(166, 34, 143) |
| HSL | hsl(310, 66%, 39%) |
| HSV | hsv(310, 80%, 65%) |
| CMYK | cmyk(0%, 79.5%, 13.9%, 34.9%) |
| CIE-LAB | lab(39.98, 62.22, -29.19) |
| CIE-LCH | lch(39.98, 68.73, 334.87°) |
| OKLab | oklab(50.91% 0.1831 -0.0796) |
| OKLCH | oklch(50.91% 0.2 336.5) |
| XYZ | xyz(21.2562, 11.2362, 27.0306) |
| Luminance | 0.1123 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.29
Barney Purple
#A00498
ΔE00 3.84
Ugly Purple
#A442A0
ΔE00 5.59
Medium Purple
#9E43A2
ΔE00 6.07
Barney
#AC1DB8
ΔE00 7.00
Darkmagenta
#8B008B
ΔE00 7.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A6228F #22A639
analogous
#7B22A6 #A6228F #A6224D
triadic
#A6228F #8FA622 #228FA6
tetradic
#A6228F #A67B22 #22A639 #224DA6
square
#A6228F #A67B22 #22A639 #224DA6
split-complementary
#A6228F #4DA622 #22A67B
monochromatic
#400D37 #731863 #A6228F #D530B8 #DF63CA
Accessibility & contrast
On white
6.47
#A6228F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.25
#A6228F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A6228F
6.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A6228F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A6228F | 1.00 | 6.47 | 3.25 | 6.47 |
| #FFFFFF | 6.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#255292
Deuteranopia (green-blind)
#55658C
Tritanopia (blue-blind)
#AF2C57
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #a6228f; /* rgb */ color: rgb(166, 34, 143); /* oklch */ color: oklch(50.9% 0.200 336.5);
Tailwind
colors: {
custom: {
50: '#c46db0',
500: '#a6228f',
950: '#000000',
},
}SCSS
$custom: #a6228f; $custom-light: #c46db0; $custom-dark: #000000;
JSON
{
"hex": "#a6228f",
"rgb": {
"r": 166,
"g": 34,
"b": 143
},
"hsl": {
"h": 310.455,
"s": 66,
"l": 39.216
},
"oklch": {
"l": 0.50912,
"c": 0.19967,
"h": 336.5
},
"luminance": 0.11234
}Semantic roles & 50–950 ramp
primary
#A6228F
secondary
#5FC471
accent
#E95C3F
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130810
muted
#827B7F