#7A2BA2#7A2BA2
#7A2BA2 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.3% C 0.186 H 311.6°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).
Color values
| HEX | #7A2BA2 |
|---|---|
| RGB | rgb(122, 43, 162) |
| HSL | hsl(280, 58%, 40%) |
| HSV | hsv(280, 73%, 64%) |
| CMYK | cmyk(24.7%, 73.5%, 0%, 36.5%) |
| CIE-LAB | lab(34.95, 53.02, -49.15) |
| CIE-LCH | lch(34.95, 72.30, 317.17°) |
| OKLab | oklab(46.28% 0.1234 -0.139) |
| OKLCH | oklch(46.28% 0.186 311.6) |
| XYZ | xyz(15.4103, 8.4744, 34.9993) |
| Luminance | 0.0847 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.24
Rebeccapurple
#663399
ΔE00 3.98
Darkmagenta
#8B008B
ΔE00 6.72
Darkviolet
#9400D3
ΔE00 7.46
Purple
#800080
ΔE00 7.62
Purply
#983FB2
ΔE00 7.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A2BA2 #53A22B
analogous
#3E2BA2 #7A2BA2 #A22B8E
triadic
#7A2BA2 #A27A2B #2BA27A
tetradic
#7A2BA2 #A23E2B #53A22B #2B8EA2
square
#7A2BA2 #A23E2B #53A22B #2B8EA2
split-complementary
#7A2BA2 #8EA22B #2BA23E
monochromatic
#311141 #561E72 #7A2BA2 #9C3ECC #B56FD9
Accessibility & contrast
On white
7.79
#7A2BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.69
#7A2BA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7A2BA2
7.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A2BA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A2BA2 | 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)
#004EA5
Deuteranopia (green-blind)
#19549F
Tritanopia (blue-blind)
#754664
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #7a2ba2; /* rgb */ color: rgb(122, 43, 162); /* oklch */ color: oklch(46.3% 0.186 311.6);
Tailwind
colors: {
custom: {
50: '#a56cbe',
500: '#7a2ba2',
950: '#000000',
},
}SCSS
$custom: #7a2ba2; $custom-light: #a56cbe; $custom-dark: #000000;
JSON
{
"hex": "#7a2ba2",
"rgb": {
"r": 122,
"g": 43,
"b": 162
},
"hsl": {
"h": 279.832,
"s": 58.049,
"l": 40.196
},
"oklch": {
"l": 0.46281,
"c": 0.18586,
"h": 311.6
},
"luminance": 0.08474
}Semantic roles & 50–950 ramp
primary
#7A2BA2
secondary
#86C069
accent
#E1477B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81