#A252D4#A252D4
#A252D4 is a mid, vivid violet. Relative luminance 0.185; OKLCH L 59.3% C 0.198 H 310.1°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).
Color values
| HEX | #A252D4 |
|---|---|
| RGB | rgb(162, 82, 212) |
| HSL | hsl(277, 60%, 58%) |
| HSV | hsv(277, 61%, 83%) |
| CMYK | cmyk(23.6%, 61.3%, 0%, 16.9%) |
| CIE-LAB | lab(50.06, 54.92, -53.87) |
| CIE-LCH | lch(50.06, 76.93, 315.55°) |
| OKLab | oklab(59.31% 0.1276 -0.1518) |
| OKLCH | oklch(59.31% 0.198 310.1) |
| XYZ | xyz(29.7990, 18.4700, 64.2699) |
| Luminance | 0.1847 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 2.70
Amethyst
#9B5FC0
ΔE00 4.44
Mediumorchid
#BA55D3
ΔE00 5.09
Lighter Purple
#A55AF4
ΔE00 5.31
Purpley
#8756E4
ΔE00 6.03
Deep Lavender
#8D5EB7
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A252D4 #84D452
analogous
#6152D4 #A252D4 #D452C5
triadic
#A252D4 #D4A252 #52D4A2
tetradic
#A252D4 #D46152 #84D452 #52C5D4
square
#A252D4 #D46152 #84D452 #52C5D4
split-complementary
#A252D4 #C5D452 #52D461
monochromatic
#622289 #852EBA #A252D4 #BC83E0 #D7B4EC
Accessibility & contrast
On white
4.47
#A252D4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.69
#A252D4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A252D4
4.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A252D4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A252D4 | 1.00 | 4.47 | 4.69 | 4.69 |
| #FFFFFF | 4.47 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.69 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.69 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1873D8
Deuteranopia (green-blind)
#4278D1
Tritanopia (blue-blind)
#9B6B8B
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #a252d4; /* rgb */ color: rgb(162, 82, 212); /* oklch */ color: oklch(59.3% 0.198 310.1);
Tailwind
colors: {
custom: {
50: '#c187e2',
500: '#a252d4',
950: '#000000',
},
}SCSS
$custom: #a252d4; $custom-light: #c187e2; $custom-dark: #000000;
JSON
{
"hex": "#a252d4",
"rgb": {
"r": 162,
"g": 82,
"b": 212
},
"hsl": {
"h": 276.923,
"s": 60.185,
"l": 57.647
},
"oklch": {
"l": 0.59314,
"c": 0.19832,
"h": 310.1
},
"luminance": 0.18469
}Semantic roles & 50–950 ramp
primary
#A252D4
secondary
#BBDBA7
accent
#E34482
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83