#AC51E4#AC51E4
#AC51E4 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.4% C 0.219 H 309.9°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).
Color values
| HEX | #AC51E4 |
|---|---|
| RGB | rgb(172, 81, 228) |
| HSL | hsl(277, 73%, 61%) |
| HSV | hsv(277, 64%, 89%) |
| CMYK | cmyk(24.6%, 64.5%, 0%, 10.6%) |
| CIE-LAB | lab(52.13, 61.13, -59.56) |
| CIE-LCH | lch(52.13, 85.35, 315.74°) |
| OKLab | oklab(61.39% 0.1407 -0.1682) |
| OKLCH | oklch(61.39% 0.219 309.9) |
| XYZ | xyz(33.9566, 20.2576, 75.5051) |
| Luminance | 0.2026 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 1.37
Lighter Purple
#A55AF4
ΔE00 3.43
Mediumorchid
#BA55D3
ΔE00 4.49
Neon Purple
#BC13FE
ΔE00 6.26
Amethyst
#9B5FC0
ΔE00 6.36
Hot Purple
#CB00F5
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AC51E4 #89E451
analogous
#6251E4 #AC51E4 #E451D2
triadic
#AC51E4 #E4AC51 #51E4AC
tetradic
#AC51E4 #E46251 #89E451 #51D2E4
square
#AC51E4 #E46251 #89E451 #51D2E4
split-complementary
#AC51E4 #D2E451 #51E462
monochromatic
#6E19A2 #9121D7 #AC51E4 #C586EC #DFBBF4
Accessibility & contrast
On white
4.16
#AC51E4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.05
#AC51E4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AC51E4
5.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AC51E4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AC51E4 | 1.00 | 4.16 | 5.05 | 5.05 |
| #FFFFFF | 4.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.05 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.05 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0078E8
Deuteranopia (green-blind)
#3C7EE1
Tritanopia (blue-blind)
#A46F94
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #ac51e4; /* rgb */ color: rgb(172, 81, 228); /* oklch */ color: oklch(61.4% 0.219 309.9);
Tailwind
colors: {
custom: {
50: '#c987ed',
500: '#ac51e4',
950: '#000000',
},
}SCSS
$custom: #ac51e4; $custom-light: #c987ed; $custom-dark: #000000;
JSON
{
"hex": "#ac51e4",
"rgb": {
"r": 172,
"g": 81,
"b": 228
},
"hsl": {
"h": 277.143,
"s": 73.134,
"l": 60.588
},
"oklch": {
"l": 0.61391,
"c": 0.21928,
"h": 309.9
},
"luminance": 0.20257
}Semantic roles & 50–950 ramp
primary
#AC51E4
secondary
#C2E4AC
accent
#D5105B
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84