#A172EF#A172EF
#A172EF is a light, vivid violet. Relative luminance 0.258; OKLCH L 65.5% C 0.182 H 298.6°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).
Color values
| HEX | #A172EF |
|---|---|
| RGB | rgb(161, 114, 239) |
| HSL | hsl(263, 80%, 69%) |
| HSV | hsv(263, 52%, 94%) |
| CMYK | cmyk(32.6%, 52.3%, 0%, 6.3%) |
| CIE-LAB | lab(57.89, 44.25, -56.56) |
| CIE-LCH | lch(57.89, 71.82, 308.04°) |
| OKLab | oklab(65.54% 0.0872 -0.1598) |
| OKLCH | oklch(65.54% 0.182 298.6) |
| XYZ | xyz(36.2915, 25.8433, 84.7209) |
| Luminance | 0.2584 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.34
Mediumpurple
#9370DB
ΔE00 3.67
Easter Purple
#C071FE
ΔE00 5.56
Light Purple
#BF77F6
ΔE00 5.67
Lighter Purple
#A55AF4
ΔE00 5.69
Periwinkle (survey)
#8E82FE
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A172EF #C0EF72
analogous
#7282EF #A172EF #E072EF
triadic
#A172EF #EFA172 #72EFA1
tetradic
#A172EF #EF7282 #C0EF72 #72EFE0
square
#A172EF #EF7282 #C0EF72 #72EFE0
split-complementary
#A172EF #EFE072 #82EF72
monochromatic
#5D18CF #7C3BE9 #A172EF #C6A9F5 #EAE0FB
Accessibility & contrast
On white
3.40
#A172EF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.17
#A172EF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A172EF
6.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A172EF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A172EF | 1.00 | 3.40 | 6.17 | 6.17 |
| #FFFFFF | 3.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.17 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.17 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#428BF3
Deuteranopia (green-blind)
#4F8AEC
Tritanopia (blue-blind)
#908AA6
Achromatopsia (no color)
#8B8B8B
Design tokens & code
CSS
--color: #a172ef; /* rgb */ color: rgb(161, 114, 239); /* oklch */ color: oklch(65.5% 0.182 298.6);
Tailwind
colors: {
custom: {
50: '#c09cf5',
500: '#a172ef',
950: '#000000',
},
}SCSS
$custom: #a172ef; $custom-light: #c09cf5; $custom-dark: #000000;
JSON
{
"hex": "#a172ef",
"rgb": {
"r": 161,
"g": 114,
"b": 239
},
"hsl": {
"h": 262.56,
"s": 79.618,
"l": 69.216
},
"oklch": {
"l": 0.65536,
"c": 0.18202,
"h": 298.6
},
"luminance": 0.25844
}Semantic roles & 50–950 ramp
primary
#A172EF
secondary
#E3F1CC
accent
#DC0A8D
background
#FCF9FF
surface
#F8F2FE
border
#D1CCD6
text
#130E17
muted
#827E85