#7C2AA6#7C2AA6
#7C2AA6 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.7% C 0.192 H 311.3°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).
Color values
| HEX | #7C2AA6 |
|---|---|
| RGB | rgb(124, 42, 166) |
| HSL | hsl(280, 60%, 41%) |
| HSV | hsv(280, 75%, 65%) |
| CMYK | cmyk(25.3%, 74.7%, 0%, 34.9%) |
| CIE-LAB | lab(35.39, 54.70, -50.84) |
| CIE-LCH | lch(35.39, 74.68, 317.09°) |
| OKLab | oklab(46.74% 0.1264 -0.1439) |
| OKLCH | oklch(46.74% 0.192 311.3) |
| XYZ | xyz(16.0218, 8.6946, 36.9032) |
| Luminance | 0.0869 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.46
Rebeccapurple
#663399
ΔE00 4.40
Darkviolet
#9400D3
ΔE00 6.81
Darkmagenta
#8B008B
ΔE00 6.94
Purply
#983FB2
ΔE00 7.40
Darkorchid
#9932CC
ΔE00 7.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C2AA6 #54A62A
analogous
#3E2AA6 #7C2AA6 #A62A92
triadic
#7C2AA6 #A67C2A #2AA67C
tetradic
#7C2AA6 #A63E2A #54A62A #2A92A6
square
#7C2AA6 #A63E2A #54A62A #2A92A6
split-complementary
#7C2AA6 #92A62A #2AA63E
monochromatic
#331144 #581E75 #7C2AA6 #9E3FCE #B670DB
Accessibility & contrast
On white
7.67
#7C2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.74
#7C2AA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7C2AA6
7.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C2AA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C2AA6 | 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)
#004FA9
Deuteranopia (green-blind)
#1455A3
Tritanopia (blue-blind)
#774666
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #7c2aa6; /* rgb */ color: rgb(124, 42, 166); /* oklch */ color: oklch(46.7% 0.192 311.3);
Tailwind
colors: {
custom: {
50: '#a66cc1',
500: '#7c2aa6',
950: '#000000',
},
}SCSS
$custom: #7c2aa6; $custom-light: #a66cc1; $custom-dark: #000000;
JSON
{
"hex": "#7c2aa6",
"rgb": {
"r": 124,
"g": 42,
"b": 166
},
"hsl": {
"h": 279.677,
"s": 59.615,
"l": 40.784
},
"oklch": {
"l": 0.46742,
"c": 0.19153,
"h": 311.3
},
"luminance": 0.08694
}Semantic roles & 50–950 ramp
primary
#7C2AA6
secondary
#88C26A
accent
#E3457A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81