#A172F4#A172F4
#A172F4 is a light, vivid violet. Relative luminance 0.261; OKLCH L 65.8% C 0.188 H 297.7°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).
Color values
| HEX | #A172F4 |
|---|---|
| RGB | rgb(161, 114, 244) |
| HSL | hsl(262, 86%, 70%) |
| HSV | hsv(262, 53%, 96%) |
| CMYK | cmyk(34%, 53.3%, 0%, 4.3%) |
| CIE-LAB | lab(58.17, 45.51, -58.88) |
| CIE-LCH | lch(58.17, 74.42, 307.70°) |
| OKLab | oklab(65.84% 0.0874 -0.1666) |
| OKLCH | oklch(65.84% 0.188 297.7) |
| XYZ | xyz(37.0403, 26.1429, 88.6650) |
| Luminance | 0.2614 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.38
Mediumpurple
#9370DB
ΔE00 4.20
Easter Purple
#C071FE
ΔE00 5.50
Lighter Purple
#A55AF4
ΔE00 5.70
Light Purple
#BF77F6
ΔE00 5.77
Periwinkle (survey)
#8E82FE
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A172F4 #C5F472
analogous
#7284F4 #A172F4 #E272F4
triadic
#A172F4 #F4A172 #72F4A1
tetradic
#A172F4 #F47284 #C5F472 #72F4E2
square
#A172F4 #F47284 #C5F472 #72F4E2
split-complementary
#A172F4 #F4E272 #84F472
monochromatic
#5A11DB #7B39F0 #A172F4 #C7ABF8 #ECE3FD
Accessibility & contrast
On white
3.37
#A172F4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.23
#A172F4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A172F4
6.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A172F4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A172F4 | 1.00 | 3.37 | 6.23 | 6.23 |
| #FFFFFF | 3.37 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.23 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.23 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3D8CF8
Deuteranopia (green-blind)
#4B8AF1
Tritanopia (blue-blind)
#8F8CA8
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #a172f4; /* rgb */ color: rgb(161, 114, 244); /* oklch */ color: oklch(65.8% 0.188 297.7);
Tailwind
colors: {
custom: {
50: '#c19cf8',
500: '#a172f4',
950: '#000000',
},
}SCSS
$custom: #a172f4; $custom-light: #c19cf8; $custom-dark: #000000;
JSON
{
"hex": "#a172f4",
"rgb": {
"r": 161,
"g": 114,
"b": 244
},
"hsl": {
"h": 261.692,
"s": 85.526,
"l": 70.196
},
"oklch": {
"l": 0.65838,
"c": 0.18814,
"h": 297.7
},
"luminance": 0.26143
}Semantic roles & 50–950 ramp
primary
#A172F4
secondary
#E6F3CF
accent
#E20392
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85