#A172CD#A172CD
#A172CD is a light, vivid violet. Relative luminance 0.240; OKLCH L 63.6% C 0.140 H 306.7°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).
Color values
| HEX | #A172CD |
|---|---|
| RGB | rgb(161, 114, 205) |
| HSL | hsl(271, 48%, 63%) |
| HSV | hsv(271, 44%, 80%) |
| CMYK | cmyk(21.5%, 44.4%, 0%, 19.6%) |
| CIE-LAB | lab(56.11, 36.06, -40.29) |
| CIE-LCH | lch(56.11, 54.07, 311.83°) |
| OKLab | oklab(63.63% 0.0836 -0.1123) |
| OKLCH | oklch(63.63% 0.14 306.7) |
| XYZ | xyz(31.7325, 24.0197, 60.7103) |
| Luminance | 0.2402 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lilac
#966EBD
ΔE00 3.33
Mediumpurple
#9370DB
ΔE00 4.60
Wisteria
#A87DC2
ΔE00 5.00
Soft Purple
#A66FB5
ΔE00 5.53
Amethyst
#9B5FC0
ΔE00 5.80
Light Urple
#B36FF6
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A172CD #9ECD72
analogous
#7372CD #A172CD #CD72CC
triadic
#A172CD #CDA172 #72CDA1
tetradic
#A172CD #CD7372 #9ECD72 #72CCCD
square
#A172CD #CD7372 #9ECD72 #72CCCD
split-complementary
#A172CD #CCCD72 #72CD73
monochromatic
#643391 #8345BD #A172CD #BF9FDD #DDCCED
Accessibility & contrast
On white
3.62
#A172CD on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.80
#A172CD on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A172CD
5.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A172CD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A172CD | 1.00 | 3.62 | 5.80 | 5.80 |
| #FFFFFF | 3.62 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5C85D0
Deuteranopia (green-blind)
#6787CB
Tritanopia (blue-blind)
#9A8196
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #a172cd; /* rgb */ color: rgb(161, 114, 205); /* oklch */ color: oklch(63.6% 0.140 306.7);
Tailwind
colors: {
custom: {
50: '#be9bdc',
500: '#a172cd',
950: '#000000',
},
}SCSS
$custom: #a172cd; $custom-light: #be9bdc; $custom-dark: #000000;
JSON
{
"hex": "#a172cd",
"rgb": {
"r": 161,
"g": 114,
"b": 205
},
"hsl": {
"h": 270.989,
"s": 47.644,
"l": 62.549
},
"oklch": {
"l": 0.6363,
"c": 0.14,
"h": 306.7
},
"luminance": 0.24019
}Semantic roles & 50–950 ramp
primary
#A172CD
secondary
#CDDEBD
accent
#BB2B70
background
#FBF9FD
surface
#F7F2FB
border
#D0CCD4
text
#120E15
muted
#817E83