#A172FB#A172FB
#A172FB is a light, vivid violet. Relative luminance 0.266; OKLCH L 66.3% C 0.197 H 296.5°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).
Color values
| HEX | #A172FB |
|---|---|
| RGB | rgb(161, 114, 251) |
| HSL | hsl(261, 94%, 72%) |
| HSV | hsv(261, 55%, 98%) |
| CMYK | cmyk(35.9%, 54.6%, 0%, 1.6%) |
| CIE-LAB | lab(58.58, 47.28, -62.10) |
| CIE-LCH | lch(58.58, 78.05, 307.28°) |
| OKLab | oklab(66.27% 0.0877 -0.176) |
| OKLCH | oklch(66.27% 0.197 296.5) |
| XYZ | xyz(38.1234, 26.5761, 94.3692) |
| Luminance | 0.2658 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.67
Mediumpurple
#9370DB
ΔE00 5.01
Easter Purple
#C071FE
ΔE00 5.56
Lighter Purple
#A55AF4
ΔE00 5.87
Light Purple
#BF77F6
ΔE00 6.03
Periwinkle (survey)
#8E82FE
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A172FB #CCFB72
analogous
#7288FB #A172FB #E672FB
triadic
#A172FB #FBA172 #72FBA1
tetradic
#A172FB #FB7288 #CCFB72 #72FBE6
square
#A172FB #FB7288 #CCFB72 #72FBE6
split-complementary
#A172FB #FBE672 #88FB72
monochromatic
#5507EC #7936F9 #A172FB #C9AEFD #EBE1FE
Accessibility & contrast
On white
3.33
#A172FB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.32
#A172FB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A172FB
6.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A172FB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A172FB | 1.00 | 3.33 | 6.32 | 6.32 |
| #FFFFFF | 3.33 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.32 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.32 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#348EFF
Deuteranopia (green-blind)
#438BF8
Tritanopia (blue-blind)
#8C8EAC
Achromatopsia (no color)
#8D8D8D
Design tokens & code
CSS
--color: #a172fb; /* rgb */ color: rgb(161, 114, 251); /* oklch */ color: oklch(66.3% 0.197 296.5);
Tailwind
colors: {
custom: {
50: '#c19cfd',
500: '#a172fb',
950: '#000000',
},
}SCSS
$custom: #a172fb; $custom-light: #c19cfd; $custom-dark: #000000;
JSON
{
"hex": "#a172fb",
"rgb": {
"r": 161,
"g": 114,
"b": 251
},
"hsl": {
"h": 260.584,
"s": 94.483,
"l": 71.569
},
"oklch": {
"l": 0.6627,
"c": 0.19665,
"h": 296.5
},
"luminance": 0.26577
}Semantic roles & 50–950 ramp
primary
#A172FB
secondary
#EAF6D3
accent
#E60097
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E18
muted
#827E86