#A172EC#A172EC
#A172EC is a light, vivid violet. Relative luminance 0.257; OKLCH L 65.4% C 0.178 H 299.2°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).
Color values
| HEX | #A172EC |
|---|---|
| RGB | rgb(161, 114, 236) |
| HSL | hsl(263, 76%, 69%) |
| HSV | hsv(263, 52%, 93%) |
| CMYK | cmyk(31.8%, 51.7%, 0%, 7.5%) |
| CIE-LAB | lab(57.72, 43.51, -55.16) |
| CIE-LCH | lch(57.72, 70.25, 308.27°) |
| OKLab | oklab(65.36% 0.087 -0.1557) |
| OKLCH | oklch(65.36% 0.178 299.2) |
| XYZ | xyz(35.8519, 25.6675, 82.4061) |
| Luminance | 0.2567 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 3.39
Light Urple
#B36FF6
ΔE00 3.39
Easter Purple
#C071FE
ΔE00 5.64
Light Purple
#BF77F6
ΔE00 5.66
Lighter Purple
#A55AF4
ΔE00 5.74
Periwinkle (survey)
#8E82FE
ΔE00 7.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A172EC #BDEC72
analogous
#7280EC #A172EC #DE72EC
triadic
#A172EC #ECA172 #72ECA1
tetradic
#A172EC #EC7280 #BDEC72 #72ECDE
square
#A172EC #EC7280 #BDEC72 #72ECDE
split-complementary
#A172EC #ECDE72 #80EC72
monochromatic
#5E1BC9 #7D3CE5 #A172EC #C5A8F3 #E9DEFB
Accessibility & contrast
On white
3.42
#A172EC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.13
#A172EC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A172EC
6.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A172EC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A172EC | 1.00 | 3.42 | 6.13 | 6.13 |
| #FFFFFF | 3.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.13 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.13 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#458BF0
Deuteranopia (green-blind)
#528AE9
Tritanopia (blue-blind)
#918AA4
Achromatopsia (no color)
#8B8B8B
Design tokens & code
CSS
--color: #a172ec; /* rgb */ color: rgb(161, 114, 236); /* oklch */ color: oklch(65.4% 0.178 299.2);
Tailwind
colors: {
custom: {
50: '#c09cf3',
500: '#a172ec',
950: '#000000',
},
}SCSS
$custom: #a172ec; $custom-light: #c09cf3; $custom-dark: #000000;
JSON
{
"hex": "#a172ec",
"rgb": {
"r": 161,
"g": 114,
"b": 236
},
"hsl": {
"h": 263.115,
"s": 76.25,
"l": 68.627
},
"oklch": {
"l": 0.65357,
"c": 0.17835,
"h": 299.2
},
"luminance": 0.25668
}Semantic roles & 50–950 ramp
primary
#A172EC
secondary
#E1EFCB
accent
#D80D8A
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E17
muted
#827E85