#AC52E2#AC52E2
#AC52E2 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.4% C 0.216 H 310.3°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #AC52E2 |
|---|---|
| RGB | rgb(172, 82, 226) |
| HSL | hsl(278, 71%, 60%) |
| HSV | hsv(278, 64%, 89%) |
| CMYK | cmyk(23.9%, 63.7%, 0%, 11.4%) |
| CIE-LAB | lab(52.17, 60.24, -58.36) |
| CIE-LCH | lch(52.17, 83.88, 315.91°) |
| OKLab | oklab(61.38% 0.1397 -0.1647) |
| OKLCH | oklch(61.38% 0.216 310.3) |
| XYZ | xyz(33.7554, 20.2969, 74.0763) |
| Luminance | 0.2030 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 1.56
Lighter Purple
#A55AF4
ΔE00 3.58
Mediumorchid
#BA55D3
ΔE00 4.22
Amethyst
#9B5FC0
ΔE00 6.07
Neon Purple
#BC13FE
ΔE00 6.52
Hot Purple
#CB00F5
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AC52E2 #88E252
analogous
#6452E2 #AC52E2 #E252D0
triadic
#AC52E2 #E2AC52 #52E2AC
tetradic
#AC52E2 #E26452 #88E252 #52D0E2
square
#AC52E2 #E26452 #88E252 #52D0E2
split-complementary
#AC52E2 #D0E252 #52E264
monochromatic
#6D1B9F #9123D3 #AC52E2 #C586EB #DEBBF4
Accessibility & contrast
On white
4.15
#AC52E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.06
#AC52E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AC52E2
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AC52E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AC52E2 | 1.00 | 4.15 | 5.06 | 5.06 |
| #FFFFFF | 4.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.06 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.06 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0078E6
Deuteranopia (green-blind)
#407EDF
Tritanopia (blue-blind)
#A56F93
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #ac52e2; /* rgb */ color: rgb(172, 82, 226); /* oklch */ color: oklch(61.4% 0.216 310.3);
Tailwind
colors: {
custom: {
50: '#c988ec',
500: '#ac52e2',
950: '#000000',
},
}SCSS
$custom: #ac52e2; $custom-light: #c988ec; $custom-dark: #000000;
JSON
{
"hex": "#ac52e2",
"rgb": {
"r": 172,
"g": 82,
"b": 226
},
"hsl": {
"h": 277.5,
"s": 71.287,
"l": 60.392
},
"oklch": {
"l": 0.61383,
"c": 0.21594,
"h": 310.3
},
"luminance": 0.20296
}Semantic roles & 50–950 ramp
primary
#AC52E2
secondary
#C1E3AC
accent
#D3125B
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84