#AE51E2#AE51E2
#AE51E2 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.5% C 0.218 H 311.1°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).
Color values
| HEX | #AE51E2 |
|---|---|
| RGB | rgb(174, 81, 226) |
| HSL | hsl(278, 71%, 60%) |
| HSV | hsv(278, 64%, 89%) |
| CMYK | cmyk(23%, 64.2%, 0%, 11.4%) |
| CIE-LAB | lab(52.26, 61.14, -58.21) |
| CIE-LCH | lch(52.26, 84.42, 316.41°) |
| OKLab | oklab(61.5% 0.1433 -0.1641) |
| OKLCH | oklch(61.5% 0.218 311.1) |
| XYZ | xyz(34.1229, 20.3753, 74.0720) |
| Luminance | 0.2037 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 1.88
Lighter Purple
#A55AF4
ΔE00 3.82
Mediumorchid
#BA55D3
ΔE00 3.97
Amethyst
#9B5FC0
ΔE00 6.21
Neon Purple
#BC13FE
ΔE00 6.39
Hot Purple
#CB00F5
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AE51E2 #85E251
analogous
#6551E2 #AE51E2 #E251CD
triadic
#AE51E2 #E2AE51 #51E2AE
tetradic
#AE51E2 #E26551 #85E251 #51CDE2
square
#AE51E2 #E26551 #85E251 #51CDE2
split-complementary
#AE51E2 #CDE251 #51E265
monochromatic
#6F1A9E #9423D3 #AE51E2 #C685EB #DFBAF3
Accessibility & contrast
On white
4.14
#AE51E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.07
#AE51E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AE51E2
5.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AE51E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AE51E2 | 1.00 | 4.14 | 5.07 | 5.07 |
| #FFFFFF | 4.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.07 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.07 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0078E6
Deuteranopia (green-blind)
#417EDF
Tritanopia (blue-blind)
#A86E93
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #ae51e2; /* rgb */ color: rgb(174, 81, 226); /* oklch */ color: oklch(61.5% 0.218 311.1);
Tailwind
colors: {
custom: {
50: '#ca88ec',
500: '#ae51e2',
950: '#000000',
},
}SCSS
$custom: #ae51e2; $custom-light: #ca88ec; $custom-dark: #000000;
JSON
{
"hex": "#ae51e2",
"rgb": {
"r": 174,
"g": 81,
"b": 226
},
"hsl": {
"h": 278.483,
"s": 71.429,
"l": 60.196
},
"oklch": {
"l": 0.61501,
"c": 0.21791,
"h": 311.1
},
"luminance": 0.20375
}Semantic roles & 50–950 ramp
primary
#AE51E2
secondary
#C0E3AC
accent
#D31257
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84