#A252F8#A252F8
#A252F8 is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.7% C 0.236 H 301.9°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #A252F8 |
|---|---|
| RGB | rgb(162, 82, 248) |
| HSL | hsl(269, 92%, 65%) |
| HSV | hsv(269, 67%, 97%) |
| CMYK | cmyk(34.7%, 66.9%, 0%, 2.7%) |
| CIE-LAB | lab(52.39, 63.11, -70.41) |
| CIE-LCH | lch(52.39, 94.55, 311.87°) |
| OKLab | oklab(61.73% 0.1249 -0.2004) |
| OKLCH | oklch(61.73% 0.236 301.9) |
| XYZ | xyz(34.8568, 20.4932, 90.9079) |
| Luminance | 0.2049 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lighter Purple
#A55AF4
ΔE00 1.88
Lightish Purple
#A552E6
ΔE00 2.65
Purpley
#8756E4
ΔE00 5.16
Electric Purple
#AA23FF
ΔE00 6.09
Neon Purple
#BC13FE
ΔE00 6.58
Bright Purple
#BE03FD
ΔE00 7.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A252F8 #A8F852
analogous
#5255F8 #A252F8 #F552F8
triadic
#A252F8 #F8A252 #52F8A2
tetradic
#A252F8 #F85255 #A8F852 #52F8F5
square
#A252F8 #F85255 #A8F852 #52F8F5
split-complementary
#A252F8 #F8F552 #55F852
monochromatic
#6408C8 #8217F6 #A252F8 #C28DFA #E1C8FD
Accessibility & contrast
On white
4.12
#A252F8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.10
#A252F8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A252F8
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A252F8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A252F8 | 1.00 | 4.12 | 5.10 | 5.10 |
| #FFFFFF | 4.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007CFD
Deuteranopia (green-blind)
#007CF4
Tritanopia (blue-blind)
#90789F
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #a252f8; /* rgb */ color: rgb(162, 82, 248); /* oklch */ color: oklch(61.7% 0.236 301.9);
Tailwind
colors: {
custom: {
50: '#c388fb',
500: '#a252f8',
950: '#000000',
},
}SCSS
$custom: #a252f8; $custom-light: #c388fb; $custom-dark: #000000;
JSON
{
"hex": "#a252f8",
"rgb": {
"r": 162,
"g": 82,
"b": 248
},
"hsl": {
"h": 268.916,
"s": 92.222,
"l": 64.706
},
"oklch": {
"l": 0.61732,
"c": 0.23611,
"h": 301.9
},
"luminance": 0.20493
}Semantic roles & 50–950 ramp
primary
#A252F8
secondary
#D4EFB6
accent
#E60077
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C18
muted
#827D86