#A252BB#A252BB
#A252BB is a mid, vivid purple. Relative luminance 0.173; OKLCH L 57.8% C 0.172 H 317.5°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #A252BB |
|---|---|
| RGB | rgb(162, 82, 187) |
| HSL | hsl(286, 44%, 53%) |
| HSV | hsv(286, 56%, 73%) |
| CMYK | cmyk(13.4%, 56.1%, 0%, 26.7%) |
| CIE-LAB | lab(48.64, 49.59, -41.74) |
| CIE-LCH | lch(48.64, 64.82, 319.92°) |
| OKLab | oklab(57.82% 0.1271 -0.1163) |
| OKLCH | oklch(57.82% 0.172 317.5) |
| XYZ | xyz(26.8860, 17.3048, 48.9280) |
| Luminance | 0.1730 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Amethyst
#9B5FC0
ΔE00 3.62
Deep Lavender
#8D5EB7
ΔE00 5.07
Purply
#983FB2
ΔE00 5.21
Medium Purple
#9E43A2
ΔE00 5.61
Mediumorchid
#BA55D3
ΔE00 5.67
Ugly Purple
#A442A0
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A252BB #6BBB52
analogous
#6D52BB #A252BB #BB52A0
triadic
#A252BB #BBA252 #52BBA2
tetradic
#A252BB #BB6D52 #6BBB52 #52A0BB
square
#A252BB #BB6D52 #6BBB52 #52A0BB
split-complementary
#A252BB #A0BB52 #52BB6D
monochromatic
#5A2969 #803B95 #A252BB #BA7ECC #D1AADE
Accessibility & contrast
On white
4.71
#A252BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.46
#A252BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A252BB
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A252BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A252BB | 1.00 | 4.71 | 4.46 | 4.71 |
| #FFFFFF | 4.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3A6EBE
Deuteranopia (green-blind)
#5676B8
Tritanopia (blue-blind)
#A1637F
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #a252bb; /* rgb */ color: rgb(162, 82, 187); /* oklch */ color: oklch(57.8% 0.172 317.5);
Tailwind
colors: {
custom: {
50: '#c086d0',
500: '#a252bb',
950: '#000000',
},
}SCSS
$custom: #a252bb; $custom-light: #c086d0; $custom-dark: #000000;
JSON
{
"hex": "#a252bb",
"rgb": {
"r": 162,
"g": 82,
"b": 187
},
"hsl": {
"h": 285.714,
"s": 43.568,
"l": 52.745
},
"oklch": {
"l": 0.57821,
"c": 0.17228,
"h": 317.5
},
"luminance": 0.17304
}Semantic roles & 50–950 ramp
primary
#A252BB
secondary
#A8CB9E
accent
#D35473
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130B14
muted
#827C82