#7A2EC8#7A2EC8
#7A2EC8 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.6% C 0.220 H 300.8°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).
Color values
| HEX | #7A2EC8 |
|---|---|
| RGB | rgb(122, 46, 200) |
| HSL | hsl(270, 63%, 48%) |
| HSV | hsv(270, 77%, 78%) |
| CMYK | cmyk(39%, 77%, 0%, 21.6%) |
| CIE-LAB | lab(38.31, 60.44, -66.21) |
| CIE-LCH | lch(38.31, 89.65, 312.39°) |
| OKLab | oklab(49.56% 0.1127 -0.1892) |
| OKLCH | oklch(49.56% 0.22 300.8) |
| XYZ | xyz(19.4258, 10.2615, 55.5896) |
| Luminance | 0.1026 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 4.17
Darkviolet
#9400D3
ΔE00 4.54
Burple
#6832E3
ΔE00 4.62
Purple Blue
#5D21D0
ΔE00 5.19
Bluey Purple
#6241C7
ΔE00 5.24
Bluish Purple
#703BE7
ΔE00 5.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A2EC8 #7CC82E
analogous
#2E2FC8 #7A2EC8 #C72EC8
triadic
#7A2EC8 #C87A2E #2EC87A
tetradic
#7A2EC8 #C82E2F #7CC82E #2EC8C7
square
#7A2EC8 #C82E2F #7CC82E #2EC8C7
split-complementary
#7A2EC8 #C8C72E #2FC82E
monochromatic
#3D1764 #5C2396 #7A2EC8 #995AD9 #B88CE5
Accessibility & contrast
On white
6.88
#7A2EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.05
#7A2EC8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A2EC8
6.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A2EC8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A2EC8 | 1.00 | 6.88 | 3.05 | 6.88 |
| #FFFFFF | 6.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005ACC
Deuteranopia (green-blind)
#0059C5
Tritanopia (blue-blind)
#68577A
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #7a2ec8; /* rgb */ color: rgb(122, 46, 200); /* oklch */ color: oklch(49.6% 0.220 300.8);
Tailwind
colors: {
custom: {
50: '#a76fda',
500: '#7a2ec8',
950: '#000000',
},
}SCSS
$custom: #7a2ec8; $custom-light: #a76fda; $custom-dark: #000000;
JSON
{
"hex": "#7a2ec8",
"rgb": {
"r": 122,
"g": 46,
"b": 200
},
"hsl": {
"h": 269.61,
"s": 62.602,
"l": 48.235
},
"oklch": {
"l": 0.49561,
"c": 0.2202,
"h": 300.8
},
"luminance": 0.10262
}Semantic roles & 50–950 ramp
primary
#7A2EC8
secondary
#A9CF83
accent
#E64295
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83