#A151E2#A151E2
#A151E2 is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 60.0% C 0.214 H 306.3°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).
Color values
| HEX | #A151E2 |
|---|---|
| RGB | rgb(161, 81, 226) |
| HSL | hsl(273, 71%, 60%) |
| HSV | hsv(273, 64%, 89%) |
| CMYK | cmyk(28.8%, 64.2%, 0%, 11.4%) |
| CIE-LAB | lab(50.63, 58.31, -60.91) |
| CIE-LCH | lch(50.63, 84.32, 313.75°) |
| OKLab | oklab(59.98% 0.1269 -0.1725) |
| OKLCH | oklch(59.98% 0.214 306.3) |
| XYZ | xyz(31.3649, 18.9532, 73.9428) |
| Luminance | 0.1895 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 0.98
Lighter Purple
#A55AF4
ΔE00 3.61
Purpley
#8756E4
ΔE00 4.81
Amethyst
#9B5FC0
ΔE00 6.16
Mediumorchid
#BA55D3
ΔE00 6.16
Electric Purple
#AA23FF
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A151E2 #92E251
analogous
#5851E2 #A151E2 #E251DB
triadic
#A151E2 #E2A151 #51E2A1
tetradic
#A151E2 #E25851 #92E251 #51DBE2
square
#A151E2 #E25851 #92E251 #51DBE2
split-complementary
#A151E2 #DBE251 #51E258
monochromatic
#631A9E #8423D3 #A151E2 #BD85EB #DABAF3
Accessibility & contrast
On white
4.38
#A151E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.79
#A151E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A151E2
4.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A151E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A151E2 | 1.00 | 4.38 | 4.79 | 4.79 |
| #FFFFFF | 4.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0076E6
Deuteranopia (green-blind)
#2F79DF
Tritanopia (blue-blind)
#967093
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #a151e2; /* rgb */ color: rgb(161, 81, 226); /* oklch */ color: oklch(60.0% 0.214 306.3);
Tailwind
colors: {
custom: {
50: '#c187ec',
500: '#a151e2',
950: '#000000',
},
}SCSS
$custom: #a151e2; $custom-light: #c187ec; $custom-dark: #000000;
JSON
{
"hex": "#a151e2",
"rgb": {
"r": 161,
"g": 81,
"b": 226
},
"hsl": {
"h": 273.103,
"s": 71.429,
"l": 60.196
},
"oklch": {
"l": 0.59978,
"c": 0.21411,
"h": 306.3
},
"luminance": 0.18953
}Semantic roles & 50–950 ramp
primary
#A151E2
secondary
#C5E3AC
accent
#D31269
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84