#7A2FA4#7A2FA4
#7A2FA4 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.9% C 0.183 H 310.5°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).
Color values
| HEX | #7A2FA4 |
|---|---|
| RGB | rgb(122, 47, 164) |
| HSL | hsl(278, 55%, 41%) |
| HSV | hsv(278, 71%, 64%) |
| CMYK | cmyk(25.6%, 71.3%, 0%, 35.7%) |
| CIE-LAB | lab(35.70, 51.76, -49.16) |
| CIE-LCH | lch(35.70, 71.38, 316.48°) |
| OKLab | oklab(46.86% 0.119 -0.139) |
| OKLCH | oklch(46.86% 0.183 310.5) |
| XYZ | xyz(15.7421, 8.8513, 35.9940) |
| Luminance | 0.0885 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.98
Rebeccapurple
#663399
ΔE00 3.88
Purply
#983FB2
ΔE00 7.20
Darkmagenta
#8B008B
ΔE00 7.32
Darkviolet
#9400D3
ΔE00 7.34
Darkorchid
#9932CC
ΔE00 7.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A2FA4 #59A42F
analogous
#402FA4 #7A2FA4 #A42F94
triadic
#7A2FA4 #A47A2F #2FA47A
tetradic
#7A2FA4 #A4402F #59A42F #2F94A4
square
#7A2FA4 #A4402F #59A42F #2F94A4
split-complementary
#7A2FA4 #94A42F #2FA440
monochromatic
#331445 #572174 #7A2FA4 #9B46CA #B576D8
Accessibility & contrast
On white
7.58
#7A2FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.77
#7A2FA4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7A2FA4
7.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A2FA4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A2FA4 | 1.00 | 7.58 | 2.77 | 7.58 |
| #FFFFFF | 7.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#1C55A1
Tritanopia (blue-blind)
#744966
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #7a2fa4; /* rgb */ color: rgb(122, 47, 164); /* oklch */ color: oklch(46.9% 0.183 310.5);
Tailwind
colors: {
custom: {
50: '#a46ec0',
500: '#7a2fa4',
950: '#000000',
},
}SCSS
$custom: #7a2fa4; $custom-light: #a46ec0; $custom-dark: #000000;
JSON
{
"hex": "#7a2fa4",
"rgb": {
"r": 122,
"g": 47,
"b": 164
},
"hsl": {
"h": 278.462,
"s": 55.45,
"l": 41.373
},
"oklch": {
"l": 0.46855,
"c": 0.18299,
"h": 310.5
},
"luminance": 0.08851
}Semantic roles & 50–950 ramp
primary
#7A2FA4
secondary
#8CC06F
accent
#DF497F
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81