#A172DF#A172DF
#A172DF is a light, vivid violet. Relative luminance 0.249; OKLCH L 64.6% C 0.162 H 302.0°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).
Color values
| HEX | #A172DF |
|---|---|
| RGB | rgb(161, 114, 223) |
| HSL | hsl(266, 63%, 66%) |
| HSV | hsv(266, 49%, 87%) |
| CMYK | cmyk(27.8%, 48.9%, 0%, 12.5%) |
| CIE-LAB | lab(57.02, 40.32, -49.01) |
| CIE-LCH | lch(57.02, 63.46, 309.44°) |
| OKLab | oklab(64.61% 0.0859 -0.1377) |
| OKLCH | oklch(64.61% 0.162 302) |
| XYZ | xyz(34.0315, 24.9394, 72.8186) |
| Luminance | 0.2494 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 2.85
Light Urple
#B36FF6
ΔE00 4.26
Light Purple
#BF77F6
ΔE00 5.97
Deep Lilac
#966EBD
ΔE00 6.00
Easter Purple
#C071FE
ΔE00 6.37
Lighter Purple
#A55AF4
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A172DF #B0DF72
analogous
#7279DF #A172DF #D872DF
triadic
#A172DF #DFA172 #72DFA1
tetradic
#A172DF #DF7279 #B0DF72 #72DFD8
square
#A172DF #DF7279 #B0DF72 #72DFD8
split-complementary
#A172DF #DFD872 #79DF72
monochromatic
#6228AF #8040D4 #A172DF #C2A4EA #E4D6F6
Accessibility & contrast
On white
3.51
#A172DF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.99
#A172DF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A172DF
5.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A172DF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A172DF | 1.00 | 3.51 | 5.99 | 5.99 |
| #FFFFFF | 3.51 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.99 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.99 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5088E3
Deuteranopia (green-blind)
#5C88DC
Tritanopia (blue-blind)
#95869E
Achromatopsia (no color)
#898989
Design tokens & code
CSS
--color: #a172df; /* rgb */ color: rgb(161, 114, 223); /* oklch */ color: oklch(64.6% 0.162 302.0);
Tailwind
colors: {
custom: {
50: '#bf9be9',
500: '#a172df',
950: '#000000',
},
}SCSS
$custom: #a172df; $custom-light: #bf9be9; $custom-dark: #000000;
JSON
{
"hex": "#a172df",
"rgb": {
"r": 161,
"g": 114,
"b": 223
},
"hsl": {
"h": 265.872,
"s": 63.006,
"l": 66.078
},
"oklch": {
"l": 0.64606,
"c": 0.16231,
"h": 302
},
"luminance": 0.24939
}Semantic roles & 50–950 ramp
primary
#A172DF
secondary
#D9E8C4
accent
#CB1B7F
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#120E16
muted
#817E84