#7A2AA8#7A2AA8
#7A2AA8 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.6% C 0.193 H 309.8°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).
Color values
| HEX | #7A2AA8 |
|---|---|
| RGB | rgb(122, 42, 168) |
| HSL | hsl(278, 60%, 41%) |
| HSV | hsv(278, 75%, 66%) |
| CMYK | cmyk(27.4%, 75%, 0%, 34.1%) |
| CIE-LAB | lab(35.24, 54.74, -52.29) |
| CIE-LCH | lch(35.24, 75.70, 316.31°) |
| OKLab | oklab(46.63% 0.1234 -0.1482) |
| OKLCH | oklch(46.63% 0.193 309.8) |
| XYZ | xyz(15.9205, 8.6210, 37.8635) |
| Luminance | 0.0862 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.84
Rebeccapurple
#663399
ΔE00 4.19
Darkviolet
#9400D3
ΔE00 6.68
Darkmagenta
#8B008B
ΔE00 7.41
Darkorchid
#9932CC
ΔE00 7.62
Purply
#983FB2
ΔE00 7.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A2AA8 #58A82A
analogous
#3B2AA8 #7A2AA8 #A82A97
triadic
#7A2AA8 #A87A2A #2AA87A
tetradic
#7A2AA8 #A83B2A #58A82A #2A97A8
square
#7A2AA8 #A83B2A #58A82A #2A97A8
split-complementary
#7A2AA8 #97A82A #2AA83B
monochromatic
#331246 #561E77 #7A2AA8 #9B40CF #B571DB
Accessibility & contrast
On white
7.71
#7A2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.72
#7A2AA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7A2AA8
7.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A2AA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A2AA8 | 1.00 | 7.71 | 2.72 | 7.71 |
| #FFFFFF | 7.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050AC
Deuteranopia (green-blind)
#0754A5
Tritanopia (blue-blind)
#734867
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #7a2aa8; /* rgb */ color: rgb(122, 42, 168); /* oklch */ color: oklch(46.6% 0.193 309.8);
Tailwind
colors: {
custom: {
50: '#a56cc3',
500: '#7a2aa8',
950: '#000000',
},
}SCSS
$custom: #7a2aa8; $custom-light: #a56cc3; $custom-dark: #000000;
JSON
{
"hex": "#7a2aa8",
"rgb": {
"r": 122,
"g": 42,
"b": 168
},
"hsl": {
"h": 278.095,
"s": 60,
"l": 41.176
},
"oklch": {
"l": 0.46625,
"c": 0.19285,
"h": 309.8
},
"luminance": 0.08621
}Semantic roles & 50–950 ramp
primary
#7A2AA8
secondary
#8BC36B
accent
#E3457F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81