#7C2AAA#7C2AAA
#7C2AAA is a mid, vivid violet. Relative luminance 0.088; OKLCH L 47.0% C 0.195 H 310.0°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).
Color values
| HEX | #7C2AAA |
|---|---|
| RGB | rgb(124, 42, 170) |
| HSL | hsl(278, 60%, 42%) |
| HSV | hsv(278, 75%, 67%) |
| CMYK | cmyk(27.1%, 75.3%, 0%, 33.3%) |
| CIE-LAB | lab(35.68, 55.56, -52.77) |
| CIE-LCH | lch(35.68, 76.63, 316.48°) |
| OKLab | oklab(47.04% 0.1257 -0.1496) |
| OKLCH | oklch(47.04% 0.195 310) |
| XYZ | xyz(16.3944, 8.8436, 38.8658) |
| Luminance | 0.0884 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.99
Rebeccapurple
#663399
ΔE00 4.55
Darkviolet
#9400D3
ΔE00 6.31
Darkorchid
#9932CC
ΔE00 7.20
Purply
#983FB2
ΔE00 7.38
Darkmagenta
#8B008B
ΔE00 7.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C2AAA #58AA2A
analogous
#3C2AAA #7C2AAA #AA2A98
triadic
#7C2AAA #AA7C2A #2AAA7C
tetradic
#7C2AAA #AA3C2A #58AA2A #2A98AA
square
#7C2AAA #AA3C2A #58AA2A #2A98AA
split-complementary
#7C2AAA #98AA2A #2AAA3C
monochromatic
#341248 #581E79 #7C2AAA #9D41D0 #B672DC
Accessibility & contrast
On white
7.59
#7C2AAA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.77
#7C2AAA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7C2AAA
7.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C2AAA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C2AAA | 1.00 | 7.59 | 2.77 | 7.59 |
| #FFFFFF | 7.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#0855A7
Tritanopia (blue-blind)
#754868
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #7c2aaa; /* rgb */ color: rgb(124, 42, 170); /* oklch */ color: oklch(47.0% 0.195 310.0);
Tailwind
colors: {
custom: {
50: '#a66cc4',
500: '#7c2aaa',
950: '#000000',
},
}SCSS
$custom: #7c2aaa; $custom-light: #a66cc4; $custom-dark: #000000;
JSON
{
"hex": "#7c2aaa",
"rgb": {
"r": 124,
"g": 42,
"b": 170
},
"hsl": {
"h": 278.438,
"s": 60.377,
"l": 41.569
},
"oklch": {
"l": 0.47041,
"c": 0.19537,
"h": 310
},
"luminance": 0.08843
}Semantic roles & 50–950 ramp
primary
#7C2AAA
secondary
#8CC36C
accent
#E4447E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82