#7A2AA3#7A2AA3
#7A2AA3 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.3% C 0.188 H 311.4°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).
Color values
| HEX | #7A2AA3 |
|---|---|
| RGB | rgb(122, 42, 163) |
| HSL | hsl(280, 59%, 40%) |
| HSV | hsv(280, 74%, 64%) |
| CMYK | cmyk(25.2%, 74.2%, 0%, 36.1%) |
| CIE-LAB | lab(34.88, 53.65, -49.88) |
| CIE-LCH | lch(34.88, 73.25, 317.09°) |
| OKLab | oklab(46.25% 0.1242 -0.1411) |
| OKLCH | oklch(46.25% 0.188 311.4) |
| XYZ | xyz(15.4636, 8.4382, 35.4574) |
| Luminance | 0.0844 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.23
Rebeccapurple
#663399
ΔE00 4.04
Darkmagenta
#8B008B
ΔE00 6.77
Darkviolet
#9400D3
ΔE00 7.30
Purple
#800080
ΔE00 7.68
Purply
#983FB2
ΔE00 7.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A2AA3 #53A32A
analogous
#3D2AA3 #7A2AA3 #A32A90
triadic
#7A2AA3 #A37A2A #2AA37A
tetradic
#7A2AA3 #A33D2A #53A32A #2A90A3
square
#7A2AA3 #A33D2A #53A32A #2A90A3
split-complementary
#7A2AA3 #90A32A #2AA33D
monochromatic
#311142 #561D72 #7A2AA3 #9C3DCD #B56EDA
Accessibility & contrast
On white
7.81
#7A2AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.69
#7A2AA3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7A2AA3
7.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A2AA3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A2AA3 | 1.00 | 7.81 | 2.69 | 7.81 |
| #FFFFFF | 7.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA6
Deuteranopia (green-blind)
#1653A0
Tritanopia (blue-blind)
#754564
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #7a2aa3; /* rgb */ color: rgb(122, 42, 163); /* oklch */ color: oklch(46.3% 0.188 311.4);
Tailwind
colors: {
custom: {
50: '#a56cbf',
500: '#7a2aa3',
950: '#000000',
},
}SCSS
$custom: #7a2aa3; $custom-light: #a56cbf; $custom-dark: #000000;
JSON
{
"hex": "#7a2aa3",
"rgb": {
"r": 122,
"g": 42,
"b": 163
},
"hsl": {
"h": 279.669,
"s": 59.024,
"l": 40.196
},
"oklch": {
"l": 0.46252,
"c": 0.188,
"h": 311.4
},
"luminance": 0.08438
}Semantic roles & 50–950 ramp
primary
#7A2AA3
secondary
#86C068
accent
#E2467B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81