#A172F6#A172F6
#A172F6 is a light, vivid violet. Relative luminance 0.263; OKLCH L 66.0% C 0.191 H 297.3°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).
Color values
| HEX | #A172F6 |
|---|---|
| RGB | rgb(161, 114, 246) |
| HSL | hsl(261, 88%, 71%) |
| HSV | hsv(261, 54%, 96%) |
| CMYK | cmyk(34.6%, 53.7%, 0%, 3.5%) |
| CIE-LAB | lab(58.29, 46.01, -59.80) |
| CIE-LCH | lch(58.29, 75.46, 307.57°) |
| OKLab | oklab(65.96% 0.0875 -0.1693) |
| OKLCH | oklch(65.96% 0.191 297.3) |
| XYZ | xyz(37.3457, 26.2650, 90.2730) |
| Luminance | 0.2627 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.44
Mediumpurple
#9370DB
ΔE00 4.42
Easter Purple
#C071FE
ΔE00 5.50
Lighter Purple
#A55AF4
ΔE00 5.73
Light Purple
#BF77F6
ΔE00 5.83
Periwinkle (survey)
#8E82FE
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A172F6 #C7F672
analogous
#7285F6 #A172F6 #E372F6
triadic
#A172F6 #F6A172 #72F6A1
tetradic
#A172F6 #F67285 #C7F672 #72F6E3
square
#A172F6 #F67285 #C7F672 #72F6E3
split-complementary
#A172F6 #F6E372 #85F672
monochromatic
#590EDF #7B38F2 #A172F6 #C7ACFA #ECE2FD
Accessibility & contrast
On white
3.36
#A172F6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.25
#A172F6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A172F6
6.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A172F6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A172F6 | 1.00 | 3.36 | 6.25 | 6.25 |
| #FFFFFF | 3.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.25 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.25 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3A8DFA
Deuteranopia (green-blind)
#488BF3
Tritanopia (blue-blind)
#8E8DA9
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #a172f6; /* rgb */ color: rgb(161, 114, 246); /* oklch */ color: oklch(66.0% 0.191 297.3);
Tailwind
colors: {
custom: {
50: '#c19cfa',
500: '#a172f6',
950: '#000000',
},
}SCSS
$custom: #a172f6; $custom-light: #c19cfa; $custom-dark: #000000;
JSON
{
"hex": "#a172f6",
"rgb": {
"r": 161,
"g": 114,
"b": 246
},
"hsl": {
"h": 261.364,
"s": 88,
"l": 70.588
},
"oklch": {
"l": 0.65961,
"c": 0.19058,
"h": 297.3
},
"luminance": 0.26266
}Semantic roles & 50–950 ramp
primary
#A172F6
secondary
#E7F4D0
accent
#E50194
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85