#A042EA#A042EA
#A042EA is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.7% C 0.240 H 305.7°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #A042EA |
|---|---|
| RGB | rgb(160, 66, 234) |
| HSL | hsl(274, 80%, 59%) |
| HSV | hsv(274, 72%, 92%) |
| CMYK | cmyk(31.6%, 71.8%, 0%, 8.2%) |
| CIE-LAB | lab(48.65, 66.60, -68.64) |
| CIE-LCH | lch(48.65, 95.64, 314.13°) |
| OKLab | oklab(58.71% 0.14 -0.1951) |
| OKLCH | oklch(58.71% 0.24 305.7) |
| XYZ | xyz(31.2934, 17.3108, 79.5187) |
| Luminance | 0.1731 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 3.49
Electric Purple
#AA23FF
ΔE00 3.55
Bright Violet
#AD0AFD
ΔE00 4.46
Neon Purple
#BC13FE
ΔE00 4.83
Bright Purple
#BE03FD
ΔE00 5.15
Purpley
#8756E4
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A042EA #8CEA42
analogous
#4C42EA #A042EA #EA42E0
triadic
#A042EA #EAA042 #42EAA0
tetradic
#A042EA #EA4C42 #8CEA42 #42E0EA
square
#A042EA #EA4C42 #8CEA42 #42E0EA
split-complementary
#A042EA #E0EA42 #42EA4C
monochromatic
#6112A0 #8318D7 #A042EA #BC79F0 #D7B0F6
Accessibility & contrast
On white
4.71
#A042EA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.46
#A042EA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A042EA
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A042EA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A042EA | 1.00 | 4.71 | 4.46 | 4.71 |
| #FFFFFF | 4.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071EF
Deuteranopia (green-blind)
#0074E7
Tritanopia (blue-blind)
#936A92
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #a042ea; /* rgb */ color: rgb(160, 66, 234); /* oklch */ color: oklch(58.7% 0.240 305.7);
Tailwind
colors: {
custom: {
50: '#c27ef2',
500: '#a042ea',
950: '#000000',
},
}SCSS
$custom: #a042ea; $custom-light: #c27ef2; $custom-dark: #000000;
JSON
{
"hex": "#a042ea",
"rgb": {
"r": 160,
"g": 66,
"b": 234
},
"hsl": {
"h": 273.571,
"s": 80,
"l": 58.824
},
"oklch": {
"l": 0.58706,
"c": 0.24016,
"h": 305.7
},
"luminance": 0.17311
}Semantic roles & 50–950 ramp
primary
#A042EA
secondary
#C0E5A3
accent
#F63188
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B17
muted
#827C85