#A178F2#A178F2
#A178F2 is a light, vivid violet. Relative luminance 0.274; OKLCH L 66.7% C 0.177 H 296.8°. Best body text is #000000 at 6.48:1 contrast (WCAG AA passes).
Color values
| HEX | #A178F2 |
|---|---|
| RGB | rgb(161, 120, 242) |
| HSL | hsl(260, 82%, 71%) |
| HSV | hsv(260, 50%, 95%) |
| CMYK | cmyk(33.5%, 50.4%, 0%, 5.1%) |
| CIE-LAB | lab(59.36, 41.68, -55.87) |
| CIE-LCH | lch(59.36, 69.71, 306.72°) |
| OKLab | oklab(66.68% 0.0798 -0.1578) |
| OKLCH | oklch(66.68% 0.177 296.8) |
| XYZ | xyz(37.4374, 27.4203, 87.3074) |
| Luminance | 0.2742 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 4.01
Mediumpurple
#9370DB
ΔE00 4.43
Periwinkle (survey)
#8E82FE
ΔE00 5.56
Light Purple
#BF77F6
ΔE00 5.64
Easter Purple
#C071FE
ΔE00 5.78
Lavender Blue
#8B88F8
ΔE00 7.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A178F2 #C9F278
analogous
#788CF2 #A178F2 #DE78F2
triadic
#A178F2 #F2A178 #78F2A1
tetradic
#A178F2 #F2788C #C9F278 #78F2DE
square
#A178F2 #F2788C #C9F278 #78F2DE
split-complementary
#A178F2 #F2DE78 #8CF278
monochromatic
#5715DB #7A40ED #A178F2 #C8B0F7 #ECE3FC
Accessibility & contrast
On white
3.24
#A178F2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.48
#A178F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A178F2
6.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A178F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A178F2 | 1.00 | 3.24 | 6.48 | 6.48 |
| #FFFFFF | 3.24 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.48 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.48 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4B8FF6
Deuteranopia (green-blind)
#558DEF
Tritanopia (blue-blind)
#8F90AA
Achromatopsia (no color)
#8F8F8F
Design tokens & code
CSS
--color: #a178f2; /* rgb */ color: rgb(161, 120, 242); /* oklch */ color: oklch(66.7% 0.177 296.8);
Tailwind
colors: {
custom: {
50: '#c0a0f7',
500: '#a178f2',
950: '#000000',
},
}SCSS
$custom: #a178f2; $custom-light: #c0a0f7; $custom-dark: #000000;
JSON
{
"hex": "#a178f2",
"rgb": {
"r": 161,
"g": 120,
"b": 242
},
"hsl": {
"h": 260.164,
"s": 82.432,
"l": 70.98
},
"oklch": {
"l": 0.66684,
"c": 0.17682,
"h": 296.8
},
"luminance": 0.27421
}Semantic roles & 50–950 ramp
primary
#A178F2
secondary
#E8F3D3
accent
#DF0796
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130F17
muted
#827E85