#A157E7#A157E7
#A157E7 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.1% C 0.211 H 304.5°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).
Color values
| HEX | #A157E7 |
|---|---|
| RGB | rgb(161, 87, 231) |
| HSL | hsl(271, 75%, 62%) |
| HSV | hsv(271, 62%, 91%) |
| CMYK | cmyk(30.3%, 62.3%, 0%, 9.4%) |
| CIE-LAB | lab(52.02, 56.54, -61.50) |
| CIE-LCH | lch(52.02, 83.54, 312.60°) |
| OKLab | oklab(61.08% 0.1198 -0.1742) |
| OKLCH | oklch(61.08% 0.211 304.5) |
| XYZ | xyz(32.5267, 20.1631, 77.7641) |
| Luminance | 0.2016 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 1.20
Lighter Purple
#A55AF4
ΔE00 2.15
Purpley
#8756E4
ΔE00 4.84
Mediumorchid
#BA55D3
ΔE00 6.32
Amethyst
#9B5FC0
ΔE00 6.39
Mediumpurple
#9370DB
ΔE00 6.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A157E7 #9DE757
analogous
#5957E7 #A157E7 #E757E5
triadic
#A157E7 #E7A157 #57E7A1
tetradic
#A157E7 #E75957 #9DE757 #57E5E7
square
#A157E7 #E75957 #9DE757 #57E5E7
split-complementary
#A157E7 #E5E757 #57E759
monochromatic
#6418AB #8321DF #A157E7 #BF8DEF #DDC2F6
Accessibility & contrast
On white
4.17
#A157E7 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.03
#A157E7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A157E7
5.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A157E7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A157E7 | 1.00 | 4.17 | 5.03 | 5.03 |
| #FFFFFF | 4.17 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.03 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.03 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007AEB
Deuteranopia (green-blind)
#317CE4
Tritanopia (blue-blind)
#947597
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #a157e7; /* rgb */ color: rgb(161, 87, 231); /* oklch */ color: oklch(61.1% 0.211 304.5);
Tailwind
colors: {
custom: {
50: '#c18aef',
500: '#a157e7',
950: '#000000',
},
}SCSS
$custom: #a157e7; $custom-light: #c18aef; $custom-dark: #000000;
JSON
{
"hex": "#a157e7",
"rgb": {
"r": 161,
"g": 87,
"b": 231
},
"hsl": {
"h": 270.833,
"s": 75,
"l": 62.353
},
"oklch": {
"l": 0.61084,
"c": 0.2114,
"h": 304.5
},
"luminance": 0.20163
}Semantic roles & 50–950 ramp
primary
#A157E7
secondary
#CCE7B3
accent
#D70E70
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85