#7A2EA6#7A2EA6
#7A2EA6 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.9% C 0.186 H 310.0°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).
Color values
| HEX | #7A2EA6 |
|---|---|
| RGB | rgb(122, 46, 166) |
| HSL | hsl(278, 57%, 42%) |
| HSV | hsv(278, 72%, 65%) |
| CMYK | cmyk(26.5%, 72.3%, 0%, 34.9%) |
| CIE-LAB | lab(35.68, 52.63, -50.38) |
| CIE-LCH | lch(35.68, 72.86, 316.25°) |
| OKLab | oklab(46.89% 0.1197 -0.1426) |
| OKLCH | oklch(46.89% 0.186 310) |
| XYZ | xyz(15.8846, 8.8451, 36.9395) |
| Luminance | 0.0885 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.04
Rebeccapurple
#663399
ΔE00 3.96
Darkviolet
#9400D3
ΔE00 7.05
Purply
#983FB2
ΔE00 7.29
Darkmagenta
#8B008B
ΔE00 7.47
Darkorchid
#9932CC
ΔE00 7.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A2EA6 #5AA62E
analogous
#3E2EA6 #7A2EA6 #A62E96
triadic
#7A2EA6 #A67A2E #2EA67A
tetradic
#7A2EA6 #A63E2E #5AA62E #2E96A6
square
#7A2EA6 #A63E2E #5AA62E #2E96A6
split-complementary
#7A2EA6 #96A62E #2EA63E
monochromatic
#341346 #572176 #7A2EA6 #9A46CC #B476D9
Accessibility & contrast
On white
7.58
#7A2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.77
#7A2EA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7A2EA6
7.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A2EA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A2EA6 | 1.00 | 7.58 | 2.77 | 7.58 |
| #FFFFFF | 7.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#1655A3
Tritanopia (blue-blind)
#744967
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #7a2ea6; /* rgb */ color: rgb(122, 46, 166); /* oklch */ color: oklch(46.9% 0.186 310.0);
Tailwind
colors: {
custom: {
50: '#a56ec1',
500: '#7a2ea6',
950: '#000000',
},
}SCSS
$custom: #7a2ea6; $custom-light: #a56ec1; $custom-dark: #000000;
JSON
{
"hex": "#7a2ea6",
"rgb": {
"r": 122,
"g": 46,
"b": 166
},
"hsl": {
"h": 278,
"s": 56.604,
"l": 41.569
},
"oklch": {
"l": 0.46891,
"c": 0.18622,
"h": 310
},
"luminance": 0.08845
}Semantic roles & 50–950 ramp
primary
#7A2EA6
secondary
#8DC16F
accent
#E04880
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81