#7A2AB6#7A2AB6
#7A2AB6 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.7% C 0.206 H 305.7°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).
Color values
| HEX | #7A2AB6 |
|---|---|
| RGB | rgb(122, 42, 182) |
| HSL | hsl(274, 63%, 44%) |
| HSV | hsv(274, 77%, 71%) |
| CMYK | cmyk(33%, 76.9%, 0%, 28.6%) |
| CIE-LAB | lab(36.31, 57.86, -58.90) |
| CIE-LCH | lch(36.31, 82.56, 314.49°) |
| OKLab | oklab(47.71% 0.1205 -0.1676) |
| OKLCH | oklch(47.71% 0.206 305.7) |
| XYZ | xyz(17.2956, 9.1710, 45.1059) |
| Luminance | 0.0917 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.79
Darkviolet
#9400D3
ΔE00 5.25
Rebeccapurple
#663399
ΔE00 5.29
Purple Blue
#5D21D0
ΔE00 6.19
Blueviolet
#8A2BE2
ΔE00 6.54
Darkorchid
#9932CC
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A2AB6 #66B62A
analogous
#342AB6 #7A2AB6 #B62AAC
triadic
#7A2AB6 #B67A2A #2AB67A
tetradic
#7A2AB6 #B6342A #66B62A #2AACB6
square
#7A2AB6 #B6342A #66B62A #2AACB6
split-complementary
#7A2AB6 #ACB62A #2AB634
monochromatic
#371353 #591F84 #7A2AB6 #9948D5 #B57AE0
Accessibility & contrast
On white
7.41
#7A2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.83
#7A2AB6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7A2AB6
7.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A2AB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A2AB6 | 1.00 | 7.41 | 2.83 | 7.41 |
| #FFFFFF | 7.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#0056B3
Tritanopia (blue-blind)
#6F4E6F
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #7a2ab6; /* rgb */ color: rgb(122, 42, 182); /* oklch */ color: oklch(47.7% 0.206 305.7);
Tailwind
colors: {
custom: {
50: '#a66ccd',
500: '#7a2ab6',
950: '#000000',
},
}SCSS
$custom: #7a2ab6; $custom-light: #a66ccd; $custom-dark: #000000;
JSON
{
"hex": "#7a2ab6",
"rgb": {
"r": 122,
"g": 42,
"b": 182
},
"hsl": {
"h": 274.286,
"s": 62.5,
"l": 43.922
},
"oklch": {
"l": 0.47711,
"c": 0.20646,
"h": 305.7
},
"luminance": 0.09171
}Semantic roles & 50–950 ramp
primary
#7A2AB6
secondary
#98C873
accent
#E64288
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82