#7A21C2#7A21C2
#7A21C2 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.9% C 0.226 H 303.3°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).
Color values
| HEX | #7A21C2 |
|---|---|
| RGB | rgb(122, 33, 194) |
| HSL | hsl(273, 71%, 45%) |
| HSV | hsv(273, 83%, 76%) |
| CMYK | cmyk(37.1%, 83%, 0%, 23.9%) |
| CIE-LAB | lab(36.21, 63.68, -66.13) |
| CIE-LCH | lch(36.21, 91.81, 313.92°) |
| OKLab | oklab(47.95% 0.124 -0.1888) |
| OKLCH | oklch(47.95% 0.226 303.3) |
| XYZ | xyz(18.3052, 9.1203, 51.8245) |
| Luminance | 0.0912 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkviolet
#9400D3
ΔE00 4.35
Purple Blue
#5D21D0
ΔE00 4.87
Blueviolet
#8A2BE2
ΔE00 5.62
Burple
#6832E3
ΔE00 5.98
Purply Blue
#661AEE
ΔE00 6.12
Purple (survey)
#7E1E9C
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A21C2 #69C221
analogous
#2A21C2 #7A21C2 #C221B9
triadic
#7A21C2 #C27A21 #21C27A
tetradic
#7A21C2 #C22A21 #69C221 #21B9C2
square
#7A21C2 #C22A21 #69C221 #21B9C2
split-complementary
#7A21C2 #B9C221 #21C22A
monochromatic
#380F59 #59188E #7A21C2 #9841DF #B576E8
Accessibility & contrast
On white
7.44
#7A21C2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.82
#7A21C2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7A21C2
7.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A21C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A21C2 | 1.00 | 7.44 | 2.82 | 7.44 |
| #FFFFFF | 7.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#0055BF
Tritanopia (blue-blind)
#6B4F74
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #7a21c2; /* rgb */ color: rgb(122, 33, 194); /* oklch */ color: oklch(47.9% 0.226 303.3);
Tailwind
colors: {
custom: {
50: '#a769d6',
500: '#7a21c2',
950: '#000000',
},
}SCSS
$custom: #7a21c2; $custom-light: #a769d6; $custom-dark: #000000;
JSON
{
"hex": "#7a21c2",
"rgb": {
"r": 122,
"g": 33,
"b": 194
},
"hsl": {
"h": 273.168,
"s": 70.925,
"l": 44.51
},
"oklch": {
"l": 0.47949,
"c": 0.2259,
"h": 303.3
},
"luminance": 0.0912
}Semantic roles & 50–950 ramp
primary
#7A21C2
secondary
#9ACF70
accent
#EE3A8A
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#110714
muted
#807A83