#A172BF#A172BF
#A172BF is a light, vivid violet. Relative luminance 0.234; OKLCH L 62.9% C 0.123 H 311.3°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).
Color values
| HEX | #A172BF |
|---|---|
| RGB | rgb(161, 114, 191) |
| HSL | hsl(277, 38%, 60%) |
| HSV | hsv(277, 40%, 75%) |
| CMYK | cmyk(15.7%, 40.3%, 0%, 25.1%) |
| CIE-LAB | lab(55.46, 32.88, -33.34) |
| CIE-LCH | lch(55.46, 46.82, 314.60°) |
| OKLab | oklab(62.93% 0.0811 -0.0922) |
| OKLCH | oklch(62.93% 0.123 311.3) |
| XYZ | xyz(30.1176, 23.3738, 52.2051) |
| Luminance | 0.2337 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lilac
#966EBD
ΔE00 2.72
Soft Purple
#A66FB5
ΔE00 2.88
Wisteria
#A87DC2
ΔE00 3.55
Dark Lilac
#9C6DA5
ΔE00 5.57
Amethyst
#9B5FC0
ΔE00 5.91
Mediumpurple
#9370DB
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A172BF #90BF72
analogous
#7A72BF #A172BF #BF72B7
triadic
#A172BF #BFA172 #72BFA1
tetradic
#A172BF #BF7A72 #90BF72 #72B7BF
square
#A172BF #BF7A72 #90BF72 #72B7BF
split-complementary
#A172BF #B7BF72 #72BF7A
monochromatic
#63397E #844CA8 #A172BF #BD9CD2 #D9C6E5
Accessibility & contrast
On white
3.70
#A172BF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.67
#A172BF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A172BF
5.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A172BF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A172BF | 1.00 | 3.70 | 5.67 | 5.67 |
| #FFFFFF | 3.70 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.67 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.67 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6382C2
Deuteranopia (green-blind)
#6E86BD
Tritanopia (blue-blind)
#9E7D8F
Achromatopsia (no color)
#858585
Design tokens & code
CSS
--color: #a172bf; /* rgb */ color: rgb(161, 114, 191); /* oklch */ color: oklch(62.9% 0.123 311.3);
Tailwind
colors: {
custom: {
50: '#be9bd2',
500: '#a172bf',
950: '#000000',
},
}SCSS
$custom: #a172bf; $custom-light: #be9bd2; $custom-dark: #000000;
JSON
{
"hex": "#a172bf",
"rgb": {
"r": 161,
"g": 114,
"b": 191
},
"hsl": {
"h": 276.623,
"s": 37.561,
"l": 59.804
},
"oklch": {
"l": 0.62926,
"c": 0.12279,
"h": 311.3
},
"luminance": 0.23373
}Semantic roles & 50–950 ramp
primary
#A172BF
secondary
#C3D5B8
accent
#CE5A87
background
#FBF9FC
surface
#F7F2F9
border
#D0CCD2
text
#120E14
muted
#817E82