#A157E6#A157E6
#A157E6 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 61.0% C 0.210 H 304.7°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).
Color values
| HEX | #A157E6 |
|---|---|
| RGB | rgb(161, 87, 230) |
| HSL | hsl(271, 74%, 62%) |
| HSV | hsv(271, 62%, 90%) |
| CMYK | cmyk(30%, 62.2%, 0%, 9.8%) |
| CIE-LAB | lab(51.96, 56.31, -61.03) |
| CIE-LCH | lch(51.96, 83.04, 312.69°) |
| OKLab | oklab(61.02% 0.1198 -0.1729) |
| OKLCH | oklch(61.02% 0.21 304.7) |
| XYZ | xyz(32.3859, 20.1068, 77.0224) |
| Luminance | 0.2011 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 1.15
Lighter Purple
#A55AF4
ΔE00 2.28
Purpley
#8756E4
ΔE00 4.86
Mediumorchid
#BA55D3
ΔE00 6.23
Amethyst
#9B5FC0
ΔE00 6.26
Mediumpurple
#9370DB
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A157E6 #9CE657
analogous
#5A57E6 #A157E6 #E657E3
triadic
#A157E6 #E6A157 #57E6A1
tetradic
#A157E6 #E65A57 #9CE657 #57E3E6
square
#A157E6 #E65A57 #9CE657 #57E3E6
split-complementary
#A157E6 #E3E657 #57E65A
monochromatic
#6419A9 #8322DE #A157E6 #BF8CEE #DDC2F6
Accessibility & contrast
On white
4.18
#A157E6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.02
#A157E6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A157E6
5.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A157E6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A157E6 | 1.00 | 4.18 | 5.02 | 5.02 |
| #FFFFFF | 4.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.02 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.02 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007AEA
Deuteranopia (green-blind)
#337CE3
Tritanopia (blue-blind)
#957597
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #a157e6; /* rgb */ color: rgb(161, 87, 230); /* oklch */ color: oklch(61.0% 0.210 304.7);
Tailwind
colors: {
custom: {
50: '#c18aef',
500: '#a157e6',
950: '#000000',
},
}SCSS
$custom: #a157e6; $custom-light: #c18aef; $custom-dark: #000000;
JSON
{
"hex": "#a157e6",
"rgb": {
"r": 161,
"g": 87,
"b": 230
},
"hsl": {
"h": 271.049,
"s": 74.093,
"l": 62.157
},
"oklch": {
"l": 0.61017,
"c": 0.21033,
"h": 304.7
},
"luminance": 0.20107
}Semantic roles & 50–950 ramp
primary
#A157E6
secondary
#CBE7B2
accent
#D60F6F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84