#A151E4#A151E4
#A151E4 is a mid, highly saturated violet. Relative luminance 0.191; OKLCH L 60.1% C 0.216 H 305.9°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).
Color values
| HEX | #A151E4 |
|---|---|
| RGB | rgb(161, 81, 228) |
| HSL | hsl(273, 73%, 61%) |
| HSV | hsv(273, 64%, 89%) |
| CMYK | cmyk(29.4%, 64.5%, 0%, 10.6%) |
| CIE-LAB | lab(50.76, 58.76, -61.83) |
| CIE-LCH | lch(50.76, 85.30, 313.54°) |
| OKLab | oklab(60.11% 0.1267 -0.1752) |
| OKLCH | oklch(60.11% 0.216 305.9) |
| XYZ | xyz(31.6409, 19.0636, 75.3965) |
| Luminance | 0.1906 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 0.86
Lighter Purple
#A55AF4
ΔE00 3.38
Purpley
#8756E4
ΔE00 4.73
Electric Purple
#AA23FF
ΔE00 6.10
Mediumorchid
#BA55D3
ΔE00 6.31
Amethyst
#9B5FC0
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A151E4 #94E451
analogous
#5751E4 #A151E4 #E451DD
triadic
#A151E4 #E4A151 #51E4A1
tetradic
#A151E4 #E45751 #94E451 #51DDE4
square
#A151E4 #E45751 #94E451 #51DDE4
split-complementary
#A151E4 #DDE451 #51E457
monochromatic
#6319A2 #8421D7 #A151E4 #BE86EC #DABBF4
Accessibility & contrast
On white
4.36
#A151E4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.81
#A151E4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A151E4
4.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A151E4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A151E4 | 1.00 | 4.36 | 4.81 | 4.81 |
| #FFFFFF | 4.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0076E8
Deuteranopia (green-blind)
#2C79E1
Tritanopia (blue-blind)
#957094
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #a151e4; /* rgb */ color: rgb(161, 81, 228); /* oklch */ color: oklch(60.1% 0.216 305.9);
Tailwind
colors: {
custom: {
50: '#c187ed',
500: '#a151e4',
950: '#000000',
},
}SCSS
$custom: #a151e4; $custom-light: #c187ed; $custom-dark: #000000;
JSON
{
"hex": "#a151e4",
"rgb": {
"r": 161,
"g": 81,
"b": 228
},
"hsl": {
"h": 272.653,
"s": 73.134,
"l": 60.588
},
"oklch": {
"l": 0.60113,
"c": 0.21621,
"h": 305.9
},
"luminance": 0.19063
}Semantic roles & 50–950 ramp
primary
#A151E4
secondary
#C6E4AC
accent
#D5106A
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84