#7A2AA4#7A2AA4
#7A2AA4 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.3% C 0.189 H 311.0°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).
Color values
| HEX | #7A2AA4 |
|---|---|
| RGB | rgb(122, 42, 164) |
| HSL | hsl(279, 59%, 40%) |
| HSV | hsv(279, 74%, 64%) |
| CMYK | cmyk(25.6%, 74.4%, 0%, 35.7%) |
| CIE-LAB | lab(34.95, 53.87, -50.36) |
| CIE-LCH | lch(34.95, 73.74, 316.93°) |
| OKLab | oklab(46.33% 0.1241 -0.1425) |
| OKLCH | oklch(46.33% 0.189 311) |
| XYZ | xyz(15.5536, 8.4742, 35.9311) |
| Luminance | 0.0847 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.34
Rebeccapurple
#663399
ΔE00 4.05
Darkmagenta
#8B008B
ΔE00 6.90
Darkviolet
#9400D3
ΔE00 7.18
Purply
#983FB2
ΔE00 7.74
Purple
#800080
ΔE00 7.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A2AA4 #54A42A
analogous
#3D2AA4 #7A2AA4 #A42A91
triadic
#7A2AA4 #A47A2A #2AA47A
tetradic
#7A2AA4 #A43D2A #54A42A #2A91A4
square
#7A2AA4 #A43D2A #54A42A #2A91A4
split-complementary
#7A2AA4 #91A42A #2AA43D
monochromatic
#321143 #561E73 #7A2AA4 #9C3ECD #B56EDA
Accessibility & contrast
On white
7.79
#7A2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.69
#7A2AA4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7A2AA4
7.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A2AA4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A2AA4 | 1.00 | 7.79 | 2.69 | 7.79 |
| #FFFFFF | 7.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA7
Deuteranopia (green-blind)
#1454A1
Tritanopia (blue-blind)
#744665
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #7a2aa4; /* rgb */ color: rgb(122, 42, 164); /* oklch */ color: oklch(46.3% 0.189 311.0);
Tailwind
colors: {
custom: {
50: '#a56cc0',
500: '#7a2aa4',
950: '#000000',
},
}SCSS
$custom: #7a2aa4; $custom-light: #a56cc0; $custom-dark: #000000;
JSON
{
"hex": "#7a2aa4",
"rgb": {
"r": 122,
"g": 42,
"b": 164
},
"hsl": {
"h": 279.344,
"s": 59.223,
"l": 40.392
},
"oklch": {
"l": 0.46326,
"c": 0.18897,
"h": 311
},
"luminance": 0.08474
}Semantic roles & 50–950 ramp
primary
#7A2AA4
secondary
#87C169
accent
#E2457B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81