#A172FC#A172FC
#A172FC is a light, vivid violet. Relative luminance 0.266; OKLCH L 66.3% C 0.198 H 296.3°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).
Color values
| HEX | #A172FC |
|---|---|
| RGB | rgb(161, 114, 252) |
| HSL | hsl(260, 96%, 72%) |
| HSV | hsv(260, 55%, 99%) |
| CMYK | cmyk(36.1%, 54.8%, 0%, 1.2%) |
| CIE-LAB | lab(58.64, 47.53, -62.56) |
| CIE-LCH | lch(58.64, 78.57, 307.23°) |
| OKLab | oklab(66.33% 0.0877 -0.1774) |
| OKLCH | oklch(66.33% 0.198 296.3) |
| XYZ | xyz(38.2815, 26.6393, 95.2016) |
| Luminance | 0.2664 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.73
Mediumpurple
#9370DB
ΔE00 5.13
Easter Purple
#C071FE
ΔE00 5.58
Lighter Purple
#A55AF4
ΔE00 5.90
Periwinkle (survey)
#8E82FE
ΔE00 6.07
Light Purple
#BF77F6
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A172FC #CDFC72
analogous
#7288FC #A172FC #E672FC
triadic
#A172FC #FCA172 #72FCA1
tetradic
#A172FC #FC7288 #CDFC72 #72FCE6
square
#A172FC #FC7288 #CDFC72 #72FCE6
split-complementary
#A172FC #FCE672 #88FC72
monochromatic
#5505EF #7936FB #A172FC #C9AEFD #EBE1FE
Accessibility & contrast
On white
3.32
#A172FC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.33
#A172FC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A172FC
6.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A172FC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A172FC | 1.00 | 3.32 | 6.33 | 6.33 |
| #FFFFFF | 3.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.33 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.33 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#328EFF
Deuteranopia (green-blind)
#428BF9
Tritanopia (blue-blind)
#8C8EAC
Achromatopsia (no color)
#8D8D8D
Design tokens & code
CSS
--color: #a172fc; /* rgb */ color: rgb(161, 114, 252); /* oklch */ color: oklch(66.3% 0.198 296.3);
Tailwind
colors: {
custom: {
50: '#c19cfe',
500: '#a172fc',
950: '#000000',
},
}SCSS
$custom: #a172fc; $custom-light: #c19cfe; $custom-dark: #000000;
JSON
{
"hex": "#a172fc",
"rgb": {
"r": 161,
"g": 114,
"b": 252
},
"hsl": {
"h": 260.435,
"s": 95.833,
"l": 71.765
},
"oklch": {
"l": 0.66333,
"c": 0.19787,
"h": 296.3
},
"luminance": 0.2664
}Semantic roles & 50–950 ramp
primary
#A172FC
secondary
#EAF6D3
accent
#E60097
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E18
muted
#827E86