#842E7E#842E7E
#842E7E is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.7% C 0.153 H 330.6°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).
Color values
| HEX | #842E7E |
|---|---|
| RGB | rgb(132, 46, 126) |
| HSL | hsl(304, 48%, 35%) |
| HSV | hsv(304, 65%, 52%) |
| CMYK | cmyk(0%, 65.2%, 4.5%, 48.2%) |
| CIE-LAB | lab(34.74, 46.99, -27.34) |
| CIE-LCH | lch(34.74, 54.36, 329.81°) |
| OKLab | oklab(45.73% 0.1334 -0.0751) |
| OKLCH | oklch(45.73% 0.153 330.6) |
| XYZ | xyz(14.2585, 8.3669, 20.5986) |
| Luminance | 0.0837 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.89
Darkish Purple
#751973
ΔE00 4.91
Darkmagenta
#8B008B
ΔE00 5.31
Light Eggplant
#894585
ΔE00 5.37
Purple
#800080
ΔE00 5.64
Bruise
#7E4071
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#842E7E #2E8434
analogous
#5F2E84 #842E7E #842E53
triadic
#842E7E #7E842E #2E7E84
tetradic
#842E7E #845F2E #2E8434 #2E5384
square
#842E7E #845F2E #2E8434 #2E5384
split-complementary
#842E7E #53842E #2E845F
monochromatic
#290E27 #571E53 #842E7E #B13EA9 #C964C2
Accessibility & contrast
On white
7.86
#842E7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.67
#842E7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #842E7E
7.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##842E7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##842E7E | 1.00 | 7.86 | 2.67 | 7.86 |
| #FFFFFF | 7.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#284A80
Deuteranopia (green-blind)
#46567C
Tritanopia (blue-blind)
#893752
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #842e7e; /* rgb */ color: rgb(132, 46, 126); /* oklch */ color: oklch(45.7% 0.153 330.6);
Tailwind
colors: {
custom: {
50: '#aa6da3',
500: '#842e7e',
950: '#000000',
},
}SCSS
$custom: #842e7e; $custom-light: #aa6da3; $custom-dark: #000000;
JSON
{
"hex": "#842e7e",
"rgb": {
"r": 132,
"g": 46,
"b": 126
},
"hsl": {
"h": 304.186,
"s": 48.315,
"l": 34.902
},
"oklch": {
"l": 0.45726,
"c": 0.15311,
"h": 330.6
},
"luminance": 0.08366
}Semantic roles & 50–950 ramp
primary
#842E7E
secondary
#5EB064
accent
#D85950
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F