#8A2172#8A2172
#8A2172 is a dark, vivid pink. Relative luminance 0.077; OKLCH L 44.7% C 0.164 H 338.9°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2172 |
|---|---|
| RGB | rgb(138, 33, 114) |
| HSL | hsl(314, 61%, 34%) |
| HSV | hsv(314, 76%, 54%) |
| CMYK | cmyk(0%, 76.1%, 17.4%, 45.9%) |
| CIE-LAB | lab(33.37, 51.67, -21.87) |
| CIE-LCH | lch(33.37, 56.10, 337.06°) |
| OKLab | oklab(44.74% 0.1535 -0.0592) |
| OKLCH | oklch(44.74% 0.164 338.9) |
| XYZ | xyz(14.0627, 7.7073, 16.6634) |
| Luminance | 0.0771 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Red Violet
#9E0168
ΔE00 5.30
Darkish Purple
#751973
ΔE00 5.40
Warm Purple
#952E8F
ΔE00 5.80
Purple
#800080
ΔE00 6.19
Darkmagenta
#8B008B
ΔE00 6.26
Bruise
#7E4071
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2172 #218A39
analogous
#6D218A #8A2172 #8A213D
triadic
#8A2172 #728A21 #21728A
tetradic
#8A2172 #8A6D21 #218A39 #213D8A
square
#8A2172 #8A6D21 #218A39 #213D8A
split-complementary
#8A2172 #3D8A21 #218A6D
monochromatic
#270920 #591549 #8A2172 #BB2D9B #D550B7
Accessibility & contrast
On white
8.26
#8A2172 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.54
#8A2172 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A2172
8.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2172 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2172 | 1.00 | 8.26 | 2.54 | 8.26 |
| #FFFFFF | 8.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#274474
Deuteranopia (green-blind)
#4A5470
Tritanopia (blue-blind)
#922647
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #8a2172; /* rgb */ color: rgb(138, 33, 114); /* oklch */ color: oklch(44.7% 0.164 338.9);
Tailwind
colors: {
custom: {
50: '#b0689a',
500: '#8a2172',
950: '#000000',
},
}SCSS
$custom: #8a2172; $custom-light: #b0689a; $custom-dark: #000000;
JSON
{
"hex": "#8a2172",
"rgb": {
"r": 138,
"g": 33,
"b": 114
},
"hsl": {
"h": 313.714,
"s": 61.404,
"l": 33.529
},
"oklch": {
"l": 0.44736,
"c": 0.16448,
"h": 338.9
},
"luminance": 0.07706
}Semantic roles & 50–950 ramp
primary
#8A2172
secondary
#4EB967
accent
#E56843
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E