#7A2FA2#7A2FA2
#7A2FA2 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.7% C 0.181 H 311.2°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).
Color values
| HEX | #7A2FA2 |
|---|---|
| RGB | rgb(122, 47, 162) |
| HSL | hsl(279, 55%, 41%) |
| HSV | hsv(279, 71%, 64%) |
| CMYK | cmyk(24.7%, 71%, 0%, 36.5%) |
| CIE-LAB | lab(35.56, 51.31, -48.18) |
| CIE-LCH | lch(35.56, 70.39, 316.80°) |
| OKLab | oklab(46.71% 0.1192 -0.1362) |
| OKLCH | oklch(46.71% 0.181 311.2) |
| XYZ | xyz(15.5629, 8.7796, 35.0502) |
| Luminance | 0.0878 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.81
Rebeccapurple
#663399
ΔE00 3.86
Darkmagenta
#8B008B
ΔE00 7.08
Purply
#983FB2
ΔE00 7.23
Darkviolet
#9400D3
ΔE00 7.60
Warm Purple
#952E8F
ΔE00 7.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A2FA2 #57A22F
analogous
#402FA2 #7A2FA2 #A22F90
triadic
#7A2FA2 #A27A2F #2FA27A
tetradic
#7A2FA2 #A2402F #57A22F #2F90A2
square
#7A2FA2 #A2402F #57A22F #2F90A2
split-complementary
#7A2FA2 #90A22F #2FA240
monochromatic
#331343 #562173 #7A2FA2 #9B45C9 #B575D7
Accessibility & contrast
On white
7.62
#7A2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.76
#7A2FA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7A2FA2
7.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A2FA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A2FA2 | 1.00 | 7.62 | 2.76 | 7.62 |
| #FFFFFF | 7.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#1F559F
Tritanopia (blue-blind)
#754865
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #7a2fa2; /* rgb */ color: rgb(122, 47, 162); /* oklch */ color: oklch(46.7% 0.181 311.2);
Tailwind
colors: {
custom: {
50: '#a46ebe',
500: '#7a2fa2',
950: '#000000',
},
}SCSS
$custom: #7a2fa2; $custom-light: #a46ebe; $custom-dark: #000000;
JSON
{
"hex": "#7a2fa2",
"rgb": {
"r": 122,
"g": 47,
"b": 162
},
"hsl": {
"h": 279.13,
"s": 55.024,
"l": 40.98
},
"oklch": {
"l": 0.46711,
"c": 0.18099,
"h": 311.2
},
"luminance": 0.08779
}Semantic roles & 50–950 ramp
primary
#7A2FA2
secondary
#8ABF6E
accent
#DE497D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81