#A157C8#A157C8
#A157C8 is a mid, vivid violet. Relative luminance 0.186; OKLCH L 59.1% C 0.178 H 312.4°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #A157C8 |
|---|---|
| RGB | rgb(161, 87, 200) |
| HSL | hsl(279, 51%, 56%) |
| HSV | hsv(279, 57%, 78%) |
| CMYK | cmyk(19.5%, 56.5%, 0%, 21.6%) |
| CIE-LAB | lab(50.17, 49.55, -46.83) |
| CIE-LCH | lch(50.17, 68.17, 316.62°) |
| OKLab | oklab(59.15% 0.12 -0.1312) |
| OKLCH | oklch(59.15% 0.178 312.4) |
| XYZ | xyz(28.5296, 18.5643, 56.7128) |
| Luminance | 0.1856 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Amethyst
#9B5FC0
ΔE00 2.49
Lightish Purple
#A552E6
ΔE00 4.64
Deep Lavender
#8D5EB7
ΔE00 4.70
Mediumorchid
#BA55D3
ΔE00 4.75
Lighter Purple
#A55AF4
ΔE00 6.82
Deep Lilac
#966EBD
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A157C8 #7EC857
analogous
#6957C8 #A157C8 #C857B7
triadic
#A157C8 #C8A157 #57C8A1
tetradic
#A157C8 #C86957 #7EC857 #57B7C8
square
#A157C8 #C86957 #7EC857 #57B7C8
split-complementary
#A157C8 #B7C857 #57C869
monochromatic
#5F297C #8338AA #A157C8 #BB85D7 #D5B3E6
Accessibility & contrast
On white
4.46
#A157C8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.71
#A157C8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A157C8
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A157C8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A157C8 | 1.00 | 4.46 | 4.71 | 4.71 |
| #FFFFFF | 4.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3674CC
Deuteranopia (green-blind)
#5179C5
Tritanopia (blue-blind)
#9D6B87
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #a157c8; /* rgb */ color: rgb(161, 87, 200); /* oklch */ color: oklch(59.1% 0.178 312.4);
Tailwind
colors: {
custom: {
50: '#c08ad9',
500: '#a157c8',
950: '#000000',
},
}SCSS
$custom: #a157c8; $custom-light: #c08ad9; $custom-dark: #000000;
JSON
{
"hex": "#a157c8",
"rgb": {
"r": 161,
"g": 87,
"b": 200
},
"hsl": {
"h": 279.292,
"s": 50.673,
"l": 56.275
},
"oklch": {
"l": 0.59145,
"c": 0.17781,
"h": 312.4
},
"luminance": 0.18564
}Semantic roles & 50–950 ramp
primary
#A157C8
secondary
#B6D5A6
accent
#DA4E7E
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#120C15
muted
#817D83