#7A2FA3#7A2FA3
#7A2FA3 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.8% C 0.182 H 310.9°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).
Color values
| HEX | #7A2FA3 |
|---|---|
| RGB | rgb(122, 47, 163) |
| HSL | hsl(279, 55%, 41%) |
| HSV | hsv(279, 71%, 64%) |
| CMYK | cmyk(25.2%, 71.2%, 0%, 36.1%) |
| CIE-LAB | lab(35.63, 51.54, -48.67) |
| CIE-LCH | lch(35.63, 70.88, 316.64°) |
| OKLab | oklab(46.78% 0.1191 -0.1376) |
| OKLCH | oklch(46.78% 0.182 310.9) |
| XYZ | xyz(15.6522, 8.8153, 35.5202) |
| Luminance | 0.0882 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.89
Rebeccapurple
#663399
ΔE00 3.87
Darkmagenta
#8B008B
ΔE00 7.20
Purply
#983FB2
ΔE00 7.21
Darkviolet
#9400D3
ΔE00 7.47
Darkorchid
#9932CC
ΔE00 7.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A2FA3 #58A32F
analogous
#402FA3 #7A2FA3 #A32F92
triadic
#7A2FA3 #A37A2F #2FA37A
tetradic
#7A2FA3 #A3402F #58A32F #2F92A3
square
#7A2FA3 #A3402F #58A32F #2F92A3
split-complementary
#7A2FA3 #92A32F #2FA340
monochromatic
#331444 #562173 #7A2FA3 #9B46CA #B575D7
Accessibility & contrast
On white
7.60
#7A2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.76
#7A2FA3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7A2FA3
7.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A2FA3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A2FA3 | 1.00 | 7.60 | 2.76 | 7.60 |
| #FFFFFF | 7.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#1D55A0
Tritanopia (blue-blind)
#754866
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #7a2fa3; /* rgb */ color: rgb(122, 47, 163); /* oklch */ color: oklch(46.8% 0.182 310.9);
Tailwind
colors: {
custom: {
50: '#a46ebf',
500: '#7a2fa3',
950: '#000000',
},
}SCSS
$custom: #7a2fa3; $custom-light: #a46ebf; $custom-dark: #000000;
JSON
{
"hex": "#7a2fa3",
"rgb": {
"r": 122,
"g": 47,
"b": 163
},
"hsl": {
"h": 278.793,
"s": 55.238,
"l": 41.176
},
"oklch": {
"l": 0.46783,
"c": 0.18199,
"h": 310.9
},
"luminance": 0.08815
}Semantic roles & 50–950 ramp
primary
#7A2FA3
secondary
#8BBF6F
accent
#DF497E
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81