#7A2AA5#7A2AA5
#7A2AA5 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.4% C 0.190 H 310.7°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).
Color values
| HEX | #7A2AA5 |
|---|---|
| RGB | rgb(122, 42, 165) |
| HSL | hsl(279, 59%, 41%) |
| HSV | hsv(279, 75%, 65%) |
| CMYK | cmyk(26.1%, 74.5%, 0%, 35.3%) |
| CIE-LAB | lab(35.02, 54.08, -50.84) |
| CIE-LCH | lch(35.02, 74.23, 316.77°) |
| OKLab | oklab(46.4% 0.1239 -0.144) |
| OKLCH | oklch(46.4% 0.19 310.7) |
| XYZ | xyz(15.6442, 8.5105, 36.4086) |
| Luminance | 0.0851 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.46
Rebeccapurple
#663399
ΔE00 4.07
Darkmagenta
#8B008B
ΔE00 7.03
Darkviolet
#9400D3
ΔE00 7.05
Purply
#983FB2
ΔE00 7.73
Darkorchid
#9932CC
ΔE00 7.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A2AA5 #55A52A
analogous
#3C2AA5 #7A2AA5 #A52A92
triadic
#7A2AA5 #A57A2A #2AA57A
tetradic
#7A2AA5 #A53C2A #55A52A #2A92A5
square
#7A2AA5 #A53C2A #55A52A #2A92A5
split-complementary
#7A2AA5 #92A52A #2AA53C
monochromatic
#321143 #561E74 #7A2AA5 #9C3ECE #B56FDA
Accessibility & contrast
On white
7.77
#7A2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.70
#7A2AA5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7A2AA5
7.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A2AA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A2AA5 | 1.00 | 7.77 | 2.70 | 7.77 |
| #FFFFFF | 7.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#1154A2
Tritanopia (blue-blind)
#744665
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #7a2aa5; /* rgb */ color: rgb(122, 42, 165); /* oklch */ color: oklch(46.4% 0.190 310.7);
Tailwind
colors: {
custom: {
50: '#a56cc0',
500: '#7a2aa5',
950: '#000000',
},
}SCSS
$custom: #7a2aa5; $custom-light: #a56cc0; $custom-dark: #000000;
JSON
{
"hex": "#7a2aa5",
"rgb": {
"r": 122,
"g": 42,
"b": 165
},
"hsl": {
"h": 279.024,
"s": 59.42,
"l": 40.588
},
"oklch": {
"l": 0.464,
"c": 0.18994,
"h": 310.7
},
"luminance": 0.0851
}Semantic roles & 50–950 ramp
primary
#7A2AA5
secondary
#88C169
accent
#E3457C
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81