#7A2EB3#7A2EB3
#7A2EB3 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.9% C 0.199 H 306.1°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).
Color values
| HEX | #7A2EB3 |
|---|---|
| RGB | rgb(122, 46, 179) |
| HSL | hsl(274, 59%, 44%) |
| HSV | hsv(274, 74%, 70%) |
| CMYK | cmyk(31.8%, 74.3%, 0%, 29.8%) |
| CIE-LAB | lab(36.64, 55.56, -56.58) |
| CIE-LCH | lch(36.64, 79.30, 314.48°) |
| OKLab | oklab(47.87% 0.1175 -0.1609) |
| OKLCH | oklch(47.87% 0.199 306.1) |
| XYZ | xyz(17.1379, 9.3464, 43.5403) |
| Luminance | 0.0935 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.68
Rebeccapurple
#663399
ΔE00 4.91
Darkviolet
#9400D3
ΔE00 5.66
Darkorchid
#9932CC
ΔE00 6.50
Purple Blue
#5D21D0
ΔE00 6.72
Bluey Purple
#6241C7
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A2EB3 #67B32E
analogous
#382EB3 #7A2EB3 #B32EAA
triadic
#7A2EB3 #B37A2E #2EB37A
tetradic
#7A2EB3 #B3382E #67B32E #2EAAB3
square
#7A2EB3 #B3382E #67B32E #2EAAB3
split-complementary
#7A2EB3 #AAB32E #2EB338
monochromatic
#381552 #592182 #7A2EB3 #994DD1 #B57EDE
Accessibility & contrast
On white
7.32
#7A2EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.87
#7A2EB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7A2EB3
7.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A2EB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A2EB3 | 1.00 | 7.32 | 2.87 | 7.32 |
| #FFFFFF | 7.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#704E6E
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #7a2eb3; /* rgb */ color: rgb(122, 46, 179); /* oklch */ color: oklch(47.9% 0.199 306.1);
Tailwind
colors: {
custom: {
50: '#a66ecb',
500: '#7a2eb3',
950: '#000000',
},
}SCSS
$custom: #7a2eb3; $custom-light: #a66ecb; $custom-dark: #000000;
JSON
{
"hex": "#7a2eb3",
"rgb": {
"r": 122,
"g": 46,
"b": 179
},
"hsl": {
"h": 274.286,
"s": 59.111,
"l": 44.118
},
"oklch": {
"l": 0.47872,
"c": 0.19922,
"h": 306.1
},
"luminance": 0.09346
}Semantic roles & 50–950 ramp
primary
#7A2EB3
secondary
#99C676
accent
#E24689
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82