#8A3478#8A3478
#8A3478 is a mid, vivid pink. Relative luminance 0.092; OKLCH L 47.0% C 0.143 H 336.7°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).
Color values
| HEX | #8A3478 |
|---|---|
| RGB | rgb(138, 52, 120) |
| HSL | hsl(313, 45%, 37%) |
| HSV | hsv(313, 62%, 54%) |
| CMYK | cmyk(0%, 62.3%, 13%, 45.9%) |
| CIE-LAB | lab(36.40, 44.95, -20.93) |
| CIE-LCH | lch(36.40, 49.58, 335.03°) |
| OKLab | oklab(47.04% 0.1315 -0.0567) |
| OKLCH | oklch(47.04% 0.143 336.7) |
| XYZ | xyz(15.0996, 9.2165, 18.7494) |
| Luminance | 0.0921 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Bruise
#7E4071
ΔE00 4.05
Light Eggplant
#894585
ΔE00 4.37
Warm Purple
#952E8F
ΔE00 4.86
Grape
#6C3461
ΔE00 6.82
Red Violet
#9E0168
ΔE00 6.94
Darkish Purple
#751973
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A3478 #348A46
analogous
#71348A #8A3478 #8A344D
triadic
#8A3478 #788A34 #34788A
tetradic
#8A3478 #8A7134 #348A46 #344D8A
square
#8A3478 #8A7134 #348A46 #344D8A
split-complementary
#8A3478 #4D8A34 #348A71
monochromatic
#31132B #5E2351 #8A3478 #B6459F #C96FB6
Accessibility & contrast
On white
7.39
#8A3478 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.84
#8A3478 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A3478
7.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A3478 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A3478 | 1.00 | 7.39 | 2.84 | 7.39 |
| #FFFFFF | 7.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#364D7A
Deuteranopia (green-blind)
#505A76
Tritanopia (blue-blind)
#913851
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #8a3478; /* rgb */ color: rgb(138, 52, 120); /* oklch */ color: oklch(47.0% 0.143 336.7);
Tailwind
colors: {
custom: {
50: '#af719f',
500: '#8a3478',
950: '#000000',
},
}SCSS
$custom: #8a3478; $custom-light: #af719f; $custom-dark: #000000;
JSON
{
"hex": "#8a3478",
"rgb": {
"r": 138,
"g": 52,
"b": 120
},
"hsl": {
"h": 312.558,
"s": 45.263,
"l": 37.255
},
"oklch": {
"l": 0.47037,
"c": 0.14323,
"h": 336.7
},
"luminance": 0.09215
}Semantic roles & 50–950 ramp
primary
#8A3478
secondary
#69B178
accent
#D56E53
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080E
muted
#807B7E