#8A2E78#8A2E78
#8A2E78 is a mid, vivid pink. Relative luminance 0.087; OKLCH L 46.3% C 0.152 H 336.4°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2E78 |
|---|---|
| RGB | rgb(138, 46, 120) |
| HSL | hsl(312, 50%, 36%) |
| HSV | hsv(312, 67%, 54%) |
| CMYK | cmyk(0%, 66.7%, 13%, 45.9%) |
| CIE-LAB | lab(35.43, 47.61, -22.43) |
| CIE-LCH | lch(35.43, 52.63, 334.77°) |
| OKLab | oklab(46.33% 0.1394 -0.0609) |
| OKLCH | oklch(46.33% 0.152 336.4) |
| XYZ | xyz(14.8486, 8.7146, 18.6657) |
| Luminance | 0.0871 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 4.53
Bruise
#7E4071
ΔE00 5.04
Light Eggplant
#894585
ΔE00 5.29
Darkish Purple
#751973
ΔE00 6.24
Red Violet
#9E0168
ΔE00 6.53
Darkmagenta
#8B008B
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2E78 #2E8A40
analogous
#6E2E8A #8A2E78 #8A2E4A
triadic
#8A2E78 #788A2E #2E788A
tetradic
#8A2E78 #8A6E2E #2E8A40 #2E4A8A
square
#8A2E78 #8A6E2E #2E8A40 #2E4A8A
split-complementary
#8A2E78 #4A8A2E #2E8A6E
monochromatic
#2E0F28 #5C1F50 #8A2E78 #B83DA0 #CC66B8
Accessibility & contrast
On white
7.66
#8A2E78 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.74
#8A2E78 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A2E78
7.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2E78 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2E78 | 1.00 | 7.66 | 2.74 | 7.66 |
| #FFFFFF | 7.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2F4A7A
Deuteranopia (green-blind)
#4D5876
Tritanopia (blue-blind)
#91334E
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #8a2e78; /* rgb */ color: rgb(138, 46, 120); /* oklch */ color: oklch(46.3% 0.152 336.4);
Tailwind
colors: {
custom: {
50: '#af6e9f',
500: '#8a2e78',
950: '#000000',
},
}SCSS
$custom: #8a2e78; $custom-light: #af6e9f; $custom-dark: #000000;
JSON
{
"hex": "#8a2e78",
"rgb": {
"r": 138,
"g": 46,
"b": 120
},
"hsl": {
"h": 311.739,
"s": 50,
"l": 36.078
},
"oklch": {
"l": 0.46328,
"c": 0.15216,
"h": 336.4
},
"luminance": 0.08713
}Semantic roles & 50–950 ramp
primary
#8A2E78
secondary
#61B371
accent
#DA6A4E
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080E
muted
#807B7E