#A040E2#A040E2
#A040E2 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.9% C 0.235 H 307.6°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).
Color values
| HEX | #A040E2 |
|---|---|
| RGB | rgb(160, 64, 226) |
| HSL | hsl(276, 74%, 57%) |
| HSV | hsv(276, 72%, 89%) |
| CMYK | cmyk(29.2%, 71.7%, 0%, 11.4%) |
| CIE-LAB | lab(47.79, 65.67, -65.51) |
| CIE-LCH | lch(47.79, 92.76, 315.07°) |
| OKLab | oklab(57.92% 0.1432 -0.1859) |
| OKLCH | oklch(57.92% 0.235 307.6) |
| XYZ | xyz(30.0552, 16.6318, 73.5637) |
| Luminance | 0.1663 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Electric Purple
#AA23FF
ΔE00 4.02
Lightish Purple
#A552E6
ΔE00 4.06
Bright Violet
#AD0AFD
ΔE00 4.58
Darkorchid
#9932CC
ΔE00 4.61
Neon Purple
#BC13FE
ΔE00 5.14
Vibrant Purple
#AD03DE
ΔE00 5.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A040E2 #82E240
analogous
#4F40E2 #A040E2 #E240D3
triadic
#A040E2 #E2A040 #40E2A0
tetradic
#A040E2 #E24F40 #82E240 #40D3E2
square
#A040E2 #E24F40 #82E240 #40D3E2
split-complementary
#A040E2 #D3E240 #40E24F
monochromatic
#5F1692 #821EC7 #A040E2 #BA75EA #D5AAF2
Accessibility & contrast
On white
4.85
#A040E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.33
#A040E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A040E2
4.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A040E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A040E2 | 1.00 | 4.85 | 4.33 | 4.85 |
| #FFFFFF | 4.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006EE7
Deuteranopia (green-blind)
#0072DF
Tritanopia (blue-blind)
#95668D
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #a040e2; /* rgb */ color: rgb(160, 64, 226); /* oklch */ color: oklch(57.9% 0.235 307.6);
Tailwind
colors: {
custom: {
50: '#c17dec',
500: '#a040e2',
950: '#000000',
},
}SCSS
$custom: #a040e2; $custom-light: #c17dec; $custom-dark: #000000;
JSON
{
"hex": "#a040e2",
"rgb": {
"r": 160,
"g": 64,
"b": 226
},
"hsl": {
"h": 275.556,
"s": 73.636,
"l": 56.863
},
"oklch": {
"l": 0.57921,
"c": 0.23466,
"h": 307.6
},
"luminance": 0.16631
}Semantic roles & 50–950 ramp
primary
#A040E2
secondary
#B9E09E
accent
#F03883
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84