#7C2AAC#7C2AAC
#7C2AAC is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.2% C 0.197 H 309.4°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).
Color values
| HEX | #7C2AAC |
|---|---|
| RGB | rgb(124, 42, 172) |
| HSL | hsl(278, 61%, 42%) |
| HSV | hsv(278, 76%, 67%) |
| CMYK | cmyk(27.9%, 75.6%, 0%, 32.5%) |
| CIE-LAB | lab(35.83, 56.00, -53.72) |
| CIE-LCH | lch(35.83, 77.60, 316.19°) |
| OKLab | oklab(47.19% 0.1254 -0.1524) |
| OKLCH | oklch(47.19% 0.197 309.4) |
| XYZ | xyz(16.5850, 8.9199, 39.8698) |
| Luminance | 0.0892 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.26
Rebeccapurple
#663399
ΔE00 4.66
Darkviolet
#9400D3
ΔE00 6.08
Darkorchid
#9932CC
ΔE00 7.03
Purply
#983FB2
ΔE00 7.39
Purple Blue
#5D21D0
ΔE00 7.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C2AAC #5AAC2A
analogous
#3B2AAC #7C2AAC #AC2A9B
triadic
#7C2AAC #AC7C2A #2AAC7C
tetradic
#7C2AAC #AC3B2A #5AAC2A #2A9BAC
square
#7C2AAC #AC3B2A #5AAC2A #2A9BAC
split-complementary
#7C2AAC #9BAC2A #2AAC3B
monochromatic
#35124A #591E7B #7C2AAC #9C42D1 #B673DD
Accessibility & contrast
On white
7.54
#7C2AAC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.78
#7C2AAC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7C2AAC
7.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C2AAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C2AAC | 1.00 | 7.54 | 2.78 | 7.54 |
| #FFFFFF | 7.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051B0
Deuteranopia (green-blind)
#0055A9
Tritanopia (blue-blind)
#754969
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #7c2aac; /* rgb */ color: rgb(124, 42, 172); /* oklch */ color: oklch(47.2% 0.197 309.4);
Tailwind
colors: {
custom: {
50: '#a76cc6',
500: '#7c2aac',
950: '#000000',
},
}SCSS
$custom: #7c2aac; $custom-light: #a76cc6; $custom-dark: #000000;
JSON
{
"hex": "#7c2aac",
"rgb": {
"r": 124,
"g": 42,
"b": 172
},
"hsl": {
"h": 277.846,
"s": 60.748,
"l": 41.961
},
"oklch": {
"l": 0.47192,
"c": 0.1973,
"h": 309.4
},
"luminance": 0.0892
}Semantic roles & 50–950 ramp
primary
#7C2AAC
secondary
#8EC46D
accent
#E4447F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82