#A172F5#A172F5
#A172F5 is a light, vivid violet. Relative luminance 0.262; OKLCH L 65.9% C 0.189 H 297.5°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).
Color values
| HEX | #A172F5 |
|---|---|
| RGB | rgb(161, 114, 245) |
| HSL | hsl(262, 87%, 70%) |
| HSV | hsv(262, 53%, 96%) |
| CMYK | cmyk(34.3%, 53.5%, 0%, 3.9%) |
| CIE-LAB | lab(58.23, 45.76, -59.34) |
| CIE-LCH | lch(58.23, 74.94, 307.64°) |
| OKLab | oklab(65.9% 0.0875 -0.1679) |
| OKLCH | oklch(65.9% 0.189 297.5) |
| XYZ | xyz(37.1926, 26.2038, 89.4668) |
| Luminance | 0.2620 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.41
Mediumpurple
#9370DB
ΔE00 4.31
Easter Purple
#C071FE
ΔE00 5.50
Lighter Purple
#A55AF4
ΔE00 5.71
Light Purple
#BF77F6
ΔE00 5.80
Periwinkle (survey)
#8E82FE
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A172F5 #C6F572
analogous
#7284F5 #A172F5 #E372F5
triadic
#A172F5 #F5A172 #72F5A1
tetradic
#A172F5 #F57284 #C6F572 #72F5E3
square
#A172F5 #F57284 #C6F572 #72F5E3
split-complementary
#A172F5 #F5E372 #84F572
monochromatic
#5910DD #7B39F1 #A172F5 #C7ABF9 #ECE2FD
Accessibility & contrast
On white
3.36
#A172F5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.24
#A172F5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A172F5
6.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A172F5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A172F5 | 1.00 | 3.36 | 6.24 | 6.24 |
| #FFFFFF | 3.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.24 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.24 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3B8CF9
Deuteranopia (green-blind)
#4A8BF2
Tritanopia (blue-blind)
#8E8CA9
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #a172f5; /* rgb */ color: rgb(161, 114, 245); /* oklch */ color: oklch(65.9% 0.189 297.5);
Tailwind
colors: {
custom: {
50: '#c19cf9',
500: '#a172f5',
950: '#000000',
},
}SCSS
$custom: #a172f5; $custom-light: #c19cf9; $custom-dark: #000000;
JSON
{
"hex": "#a172f5",
"rgb": {
"r": 161,
"g": 114,
"b": 245
},
"hsl": {
"h": 261.527,
"s": 86.755,
"l": 70.392
},
"oklch": {
"l": 0.65899,
"c": 0.18936,
"h": 297.5
},
"luminance": 0.26204
}Semantic roles & 50–950 ramp
primary
#A172F5
secondary
#E6F3CF
accent
#E30293
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85