#A042EB#A042EB
#A042EB is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 58.8% C 0.241 H 305.4°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).
Color values
| HEX | #A042EB |
|---|---|
| RGB | rgb(160, 66, 235) |
| HSL | hsl(273, 81%, 59%) |
| HSV | hsv(273, 72%, 92%) |
| CMYK | cmyk(31.9%, 71.9%, 0%, 7.8%) |
| CIE-LAB | lab(48.72, 66.82, -69.09) |
| CIE-LCH | lch(48.72, 96.11, 314.04°) |
| OKLab | oklab(58.78% 0.1398 -0.1965) |
| OKLCH | oklch(58.78% 0.241 305.4) |
| XYZ | xyz(31.4375, 17.3684, 80.2774) |
| Luminance | 0.1737 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 3.48
Electric Purple
#AA23FF
ΔE00 3.50
Bright Violet
#AD0AFD
ΔE00 4.44
Neon Purple
#BC13FE
ΔE00 4.80
Bright Purple
#BE03FD
ΔE00 5.13
Purpley
#8756E4
ΔE00 5.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A042EB #8DEB42
analogous
#4C42EB #A042EB #EB42E1
triadic
#A042EB #EBA042 #42EBA0
tetradic
#A042EB #EB4C42 #8DEB42 #42E1EB
square
#A042EB #EB4C42 #8DEB42 #42E1EB
split-complementary
#A042EB #E1EB42 #42EB4C
monochromatic
#6111A2 #8317D9 #A042EB #BC79F1 #D8B1F7
Accessibility & contrast
On white
4.69
#A042EB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.47
#A042EB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A042EB
4.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A042EB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A042EB | 1.00 | 4.69 | 4.47 | 4.69 |
| #FFFFFF | 4.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071F0
Deuteranopia (green-blind)
#0074E8
Tritanopia (blue-blind)
#926B93
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #a042eb; /* rgb */ color: rgb(160, 66, 235); /* oklch */ color: oklch(58.8% 0.241 305.4);
Tailwind
colors: {
custom: {
50: '#c27ef2',
500: '#a042eb',
950: '#000000',
},
}SCSS
$custom: #a042eb; $custom-light: #c27ef2; $custom-dark: #000000;
JSON
{
"hex": "#a042eb",
"rgb": {
"r": 160,
"g": 66,
"b": 235
},
"hsl": {
"h": 273.373,
"s": 80.861,
"l": 59.02
},
"oklch": {
"l": 0.58779,
"c": 0.24113,
"h": 305.4
},
"luminance": 0.17368
}Semantic roles & 50–950 ramp
primary
#A042EB
secondary
#C1E6A3
accent
#F73189
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B17
muted
#827C85