#A172F8#A172F8
#A172F8 is a light, vivid violet. Relative luminance 0.264; OKLCH L 66.1% C 0.193 H 297.0°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).
Color values
| HEX | #A172F8 |
|---|---|
| RGB | rgb(161, 114, 248) |
| HSL | hsl(261, 91%, 71%) |
| HSV | hsv(261, 54%, 97%) |
| CMYK | cmyk(35.1%, 54%, 0%, 2.7%) |
| CIE-LAB | lab(58.40, 46.52, -60.72) |
| CIE-LCH | lch(58.40, 76.49, 307.45°) |
| OKLab | oklab(66.08% 0.0876 -0.172) |
| OKLCH | oklch(66.08% 0.193 297) |
| XYZ | xyz(37.6543, 26.3885, 91.8984) |
| Luminance | 0.2639 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.52
Mediumpurple
#9370DB
ΔE00 4.65
Easter Purple
#C071FE
ΔE00 5.52
Lighter Purple
#A55AF4
ΔE00 5.77
Light Purple
#BF77F6
ΔE00 5.90
Periwinkle (survey)
#8E82FE
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A172F8 #C9F872
analogous
#7286F8 #A172F8 #E472F8
triadic
#A172F8 #F8A172 #72F8A1
tetradic
#A172F8 #F87286 #C9F872 #72F8E4
square
#A172F8 #F87286 #C9F872 #72F8E4
split-complementary
#A172F8 #F8E472 #86F872
monochromatic
#570BE4 #7A38F5 #A172F8 #C8ACFB #ECE2FE
Accessibility & contrast
On white
3.35
#A172F8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.28
#A172F8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A172F8
6.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A172F8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A172F8 | 1.00 | 3.35 | 6.28 | 6.28 |
| #FFFFFF | 3.35 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.28 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.28 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#388DFD
Deuteranopia (green-blind)
#468BF5
Tritanopia (blue-blind)
#8D8DAA
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #a172f8; /* rgb */ color: rgb(161, 114, 248); /* oklch */ color: oklch(66.1% 0.193 297.0);
Tailwind
colors: {
custom: {
50: '#c19cfb',
500: '#a172f8',
950: '#000000',
},
}SCSS
$custom: #a172f8; $custom-light: #c19cfb; $custom-dark: #000000;
JSON
{
"hex": "#a172f8",
"rgb": {
"r": 161,
"g": 114,
"b": 248
},
"hsl": {
"h": 261.045,
"s": 90.541,
"l": 70.98
},
"oklch": {
"l": 0.66084,
"c": 0.19302,
"h": 297
},
"luminance": 0.26389
}Semantic roles & 50–950 ramp
primary
#A172F8
secondary
#E8F5D1
accent
#E60095
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85