#A158EC#A158EC
#A158EC is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.5% C 0.215 H 303.3°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #A158EC |
|---|---|
| RGB | rgb(161, 88, 236) |
| HSL | hsl(270, 80%, 64%) |
| HSV | hsv(270, 63%, 93%) |
| CMYK | cmyk(31.8%, 62.7%, 0%, 7.5%) |
| CIE-LAB | lab(52.52, 57.21, -63.50) |
| CIE-LCH | lch(52.52, 85.47, 312.02°) |
| OKLab | oklab(61.55% 0.1183 -0.1801) |
| OKLCH | oklch(61.55% 0.215 303.3) |
| XYZ | xyz(33.3245, 20.6127, 81.5636) |
| Luminance | 0.2061 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lighter Purple
#A55AF4
ΔE00 1.44
Lightish Purple
#A552E6
ΔE00 1.77
Purpley
#8756E4
ΔE00 4.91
Mediumpurple
#9370DB
ΔE00 6.70
Light Urple
#B36FF6
ΔE00 6.75
Mediumorchid
#BA55D3
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A158EC #A3EC58
analogous
#5859EC #A158EC #EB58EC
triadic
#A158EC #ECA158 #58ECA1
tetradic
#A158EC #EC5859 #A3EC58 #58ECEB
square
#A158EC #EC5859 #A3EC58 #58ECEB
split-complementary
#A158EC #ECEB58 #59EC58
monochromatic
#6415B5 #8221E6 #A158EC #C08FF2 #DFC6F9
Accessibility & contrast
On white
4.10
#A158EC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.12
#A158EC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A158EC
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A158EC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A158EC | 1.00 | 4.10 | 5.12 | 5.12 |
| #FFFFFF | 4.10 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.12 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.12 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007CF1
Deuteranopia (green-blind)
#2B7DE9
Tritanopia (blue-blind)
#93789A
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #a158ec; /* rgb */ color: rgb(161, 88, 236); /* oklch */ color: oklch(61.5% 0.215 303.3);
Tailwind
colors: {
custom: {
50: '#c18bf3',
500: '#a158ec',
950: '#000000',
},
}SCSS
$custom: #a158ec; $custom-light: #c18bf3; $custom-dark: #000000;
JSON
{
"hex": "#a158ec",
"rgb": {
"r": 161,
"g": 88,
"b": 236
},
"hsl": {
"h": 269.595,
"s": 79.57,
"l": 63.529
},
"oklch": {
"l": 0.61549,
"c": 0.21549,
"h": 303.3
},
"luminance": 0.20613
}Semantic roles & 50–950 ramp
primary
#A158EC
secondary
#D0EAB6
accent
#DC0A74
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85