#A040E3#A040E3
#A040E3 is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 58.0% C 0.236 H 307.4°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).
Color values
| HEX | #A040E3 |
|---|---|
| RGB | rgb(160, 64, 227) |
| HSL | hsl(275, 74%, 57%) |
| HSV | hsv(275, 72%, 89%) |
| CMYK | cmyk(29.5%, 71.8%, 0%, 11%) |
| CIE-LAB | lab(47.86, 65.89, -65.96) |
| CIE-LCH | lch(47.86, 93.23, 314.97°) |
| OKLab | oklab(57.99% 0.143 -0.1872) |
| OKLCH | oklch(57.99% 0.236 307.4) |
| XYZ | xyz(30.1928, 16.6868, 74.2885) |
| Luminance | 0.1669 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Electric Purple
#AA23FF
ΔE00 3.92
Lightish Purple
#A552E6
ΔE00 4.01
Bright Violet
#AD0AFD
ΔE00 4.52
Darkorchid
#9932CC
ΔE00 4.72
Neon Purple
#BC13FE
ΔE00 5.08
Vibrant Purple
#AD03DE
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A040E3 #83E340
analogous
#4E40E3 #A040E3 #E340D5
triadic
#A040E3 #E3A040 #40E3A0
tetradic
#A040E3 #E34E40 #83E340 #40D5E3
square
#A040E3 #E34E40 #83E340 #40D5E3
split-complementary
#A040E3 #D5E340 #40E34E
monochromatic
#5F1693 #821DC8 #A040E3 #BB75EB #D5ABF3
Accessibility & contrast
On white
4.84
#A040E3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.34
#A040E3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A040E3
4.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A040E3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A040E3 | 1.00 | 4.84 | 4.34 | 4.84 |
| #FFFFFF | 4.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006EE8
Deuteranopia (green-blind)
#0072E0
Tritanopia (blue-blind)
#95668E
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #a040e3; /* rgb */ color: rgb(160, 64, 227); /* oklch */ color: oklch(58.0% 0.236 307.4);
Tailwind
colors: {
custom: {
50: '#c17ded',
500: '#a040e3',
950: '#000000',
},
}SCSS
$custom: #a040e3; $custom-light: #c17ded; $custom-dark: #000000;
JSON
{
"hex": "#a040e3",
"rgb": {
"r": 160,
"g": 64,
"b": 227
},
"hsl": {
"h": 275.337,
"s": 74.429,
"l": 57.059
},
"oklch": {
"l": 0.57993,
"c": 0.23562,
"h": 307.4
},
"luminance": 0.16686
}Semantic roles & 50–950 ramp
primary
#A040E3
secondary
#BAE19E
accent
#F13783
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84