#A852EC#A852EC
#A852EC is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.6% C 0.225 H 306.5°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).
Color values
| HEX | #A852EC |
|---|---|
| RGB | rgb(168, 82, 236) |
| HSL | hsl(274, 80%, 62%) |
| HSV | hsv(274, 65%, 93%) |
| CMYK | cmyk(28.8%, 65.3%, 0%, 7.5%) |
| CIE-LAB | lab(52.30, 61.57, -63.81) |
| CIE-LCH | lch(52.30, 88.67, 313.98°) |
| OKLab | oklab(61.57% 0.134 -0.1808) |
| OKLCH | oklch(61.57% 0.225 306.5) |
| XYZ | xyz(34.3028, 20.4159, 81.4742) |
| Luminance | 0.2042 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 0.95
Lighter Purple
#A55AF4
ΔE00 2.20
Mediumorchid
#BA55D3
ΔE00 5.86
Purpley
#8756E4
ΔE00 5.87
Neon Purple
#BC13FE
ΔE00 6.25
Electric Purple
#AA23FF
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A852EC #96EC52
analogous
#5B52EC #A852EC #EC52E3
triadic
#A852EC #ECA852 #52ECA8
tetradic
#A852EC #EC5B52 #96EC52 #52E3EC
square
#A852EC #EC5B52 #96EC52 #52E3EC
split-complementary
#A852EC #E3EC52 #52EC5B
monochromatic
#6B13B0 #8C1BE6 #A852EC #C489F2 #DFC0F8
Accessibility & contrast
On white
4.13
#A852EC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.08
#A852EC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A852EC
5.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A852EC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A852EC | 1.00 | 4.13 | 5.08 | 5.08 |
| #FFFFFF | 4.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.08 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.08 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007AF1
Deuteranopia (green-blind)
#2C7DE9
Tritanopia (blue-blind)
#9D7398
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #a852ec; /* rgb */ color: rgb(168, 82, 236); /* oklch */ color: oklch(61.6% 0.225 306.5);
Tailwind
colors: {
custom: {
50: '#c688f3',
500: '#a852ec',
950: '#000000',
},
}SCSS
$custom: #a852ec; $custom-light: #c688f3; $custom-dark: #000000;
JSON
{
"hex": "#a852ec",
"rgb": {
"r": 168,
"g": 82,
"b": 236
},
"hsl": {
"h": 273.506,
"s": 80.208,
"l": 62.353
},
"oklch": {
"l": 0.61573,
"c": 0.22498,
"h": 306.5
},
"luminance": 0.20416
}Semantic roles & 50–950 ramp
primary
#A852EC
secondary
#CAE9B1
accent
#DD0966
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C17
muted
#827D85