#A172F2#A172F2
#A172F2 is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.7% C 0.186 H 298.1°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).
Color values
| HEX | #A172F2 |
|---|---|
| RGB | rgb(161, 114, 242) |
| HSL | hsl(262, 83%, 70%) |
| HSV | hsv(262, 53%, 95%) |
| CMYK | cmyk(33.5%, 52.9%, 0%, 5.1%) |
| CIE-LAB | lab(58.06, 45.00, -57.95) |
| CIE-LCH | lch(58.06, 73.38, 307.83°) |
| OKLab | oklab(65.72% 0.0873 -0.1639) |
| OKLCH | oklch(65.72% 0.186 298.1) |
| XYZ | xyz(36.7383, 26.0221, 87.0744) |
| Luminance | 0.2602 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.35
Mediumpurple
#9370DB
ΔE00 3.98
Easter Purple
#C071FE
ΔE00 5.52
Lighter Purple
#A55AF4
ΔE00 5.68
Light Purple
#BF77F6
ΔE00 5.72
Periwinkle (survey)
#8E82FE
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A172F2 #C3F272
analogous
#7283F2 #A172F2 #E172F2
triadic
#A172F2 #F2A172 #72F2A1
tetradic
#A172F2 #F27283 #C3F272 #72F2E1
square
#A172F2 #F27283 #C3F272 #72F2E1
split-complementary
#A172F2 #F2E172 #83F272
monochromatic
#5B14D6 #7C3AED #A172F2 #C6AAF7 #ECE2FC
Accessibility & contrast
On white
3.38
#A172F2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.20
#A172F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A172F2
6.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A172F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A172F2 | 1.00 | 3.38 | 6.20 | 6.20 |
| #FFFFFF | 3.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.20 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.20 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3F8CF6
Deuteranopia (green-blind)
#4D8AEF
Tritanopia (blue-blind)
#8F8BA7
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #a172f2; /* rgb */ color: rgb(161, 114, 242); /* oklch */ color: oklch(65.7% 0.186 298.1);
Tailwind
colors: {
custom: {
50: '#c19cf7',
500: '#a172f2',
950: '#000000',
},
}SCSS
$custom: #a172f2; $custom-light: #c19cf7; $custom-dark: #000000;
JSON
{
"hex": "#a172f2",
"rgb": {
"r": 161,
"g": 114,
"b": 242
},
"hsl": {
"h": 262.031,
"s": 83.117,
"l": 69.804
},
"oklch": {
"l": 0.65717,
"c": 0.18569,
"h": 298.1
},
"luminance": 0.26022
}Semantic roles & 50–950 ramp
primary
#A172F2
secondary
#E5F2CE
accent
#E00690
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85