#7A2CA6#7A2CA6
#7A2CA6 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.7% C 0.189 H 310.2°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).
Color values
| HEX | #7A2CA6 |
|---|---|
| RGB | rgb(122, 44, 166) |
| HSL | hsl(278, 58%, 41%) |
| HSV | hsv(278, 73%, 65%) |
| CMYK | cmyk(26.5%, 73.5%, 0%, 34.9%) |
| CIE-LAB | lab(35.39, 53.48, -50.86) |
| CIE-LCH | lch(35.39, 73.80, 316.44°) |
| OKLab | oklab(46.68% 0.1218 -0.144) |
| OKLCH | oklch(46.68% 0.189 310.2) |
| XYZ | xyz(15.8083, 8.6925, 36.9140) |
| Luminance | 0.0869 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.79
Rebeccapurple
#663399
ΔE00 4.02
Darkviolet
#9400D3
ΔE00 6.98
Darkmagenta
#8B008B
ΔE00 7.30
Purply
#983FB2
ΔE00 7.50
Darkorchid
#9932CC
ΔE00 7.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A2CA6 #58A62C
analogous
#3D2CA6 #7A2CA6 #A62C95
triadic
#7A2CA6 #A67A2C #2CA67A
tetradic
#7A2CA6 #A63D2C #58A62C #2C95A6
square
#7A2CA6 #A63D2C #58A62C #2C95A6
split-complementary
#7A2CA6 #95A62C #2CA63D
monochromatic
#331245 #561F76 #7A2CA6 #9B42CD #B573DA
Accessibility & contrast
On white
7.67
#7A2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.74
#7A2CA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7A2CA6
7.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A2CA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A2CA6 | 1.00 | 7.67 | 2.74 | 7.67 |
| #FFFFFF | 7.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#1254A3
Tritanopia (blue-blind)
#744866
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #7a2ca6; /* rgb */ color: rgb(122, 44, 166); /* oklch */ color: oklch(46.7% 0.189 310.2);
Tailwind
colors: {
custom: {
50: '#a56dc1',
500: '#7a2ca6',
950: '#000000',
},
}SCSS
$custom: #7a2ca6; $custom-light: #a56dc1; $custom-dark: #000000;
JSON
{
"hex": "#7a2ca6",
"rgb": {
"r": 122,
"g": 44,
"b": 166
},
"hsl": {
"h": 278.361,
"s": 58.095,
"l": 41.176
},
"oklch": {
"l": 0.46679,
"c": 0.18861,
"h": 310.2
},
"luminance": 0.08692
}Semantic roles & 50–950 ramp
primary
#7A2CA6
secondary
#8BC16D
accent
#E1467E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81