#A158F1#A158F1
#A158F1 is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.9% C 0.221 H 302.3°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #A158F1 |
|---|---|
| RGB | rgb(161, 88, 241) |
| HSL | hsl(269, 85%, 65%) |
| HSV | hsv(269, 63%, 95%) |
| CMYK | cmyk(33.2%, 63.5%, 0%, 5.5%) |
| CIE-LAB | lab(52.85, 58.39, -65.77) |
| CIE-LCH | lch(52.85, 87.95, 311.60°) |
| OKLab | oklab(61.89% 0.118 -0.1868) |
| OKLCH | oklch(61.89% 0.221 302.3) |
| XYZ | xyz(34.0611, 20.9073, 85.4431) |
| Luminance | 0.2091 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lighter Purple
#A55AF4
ΔE00 1.01
Lightish Purple
#A552E6
ΔE00 2.31
Purpley
#8756E4
ΔE00 5.03
Light Urple
#B36FF6
ΔE00 6.61
Mediumpurple
#9370DB
ΔE00 6.83
Electric Purple
#AA23FF
ΔE00 7.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A158F1 #A8F158
analogous
#585CF1 #A158F1 #ED58F1
triadic
#A158F1 #F1A158 #58F1A1
tetradic
#A158F1 #F1585C #A8F158 #58F1ED
square
#A158F1 #F1585C #A8F158 #58F1ED
split-complementary
#A158F1 #F1ED58 #5CF158
monochromatic
#6310BF #8120EC #A158F1 #C190F6 #E1C9FA
Accessibility & contrast
On white
4.05
#A158F1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.18
#A158F1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A158F1
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A158F1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A158F1 | 1.00 | 4.05 | 5.18 | 5.18 |
| #FFFFFF | 4.05 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.18 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.18 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007DF6
Deuteranopia (green-blind)
#207EEE
Tritanopia (blue-blind)
#91799D
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #a158f1; /* rgb */ color: rgb(161, 88, 241); /* oklch */ color: oklch(61.9% 0.221 302.3);
Tailwind
colors: {
custom: {
50: '#c28bf6',
500: '#a158f1',
950: '#000000',
},
}SCSS
$custom: #a158f1; $custom-light: #c28bf6; $custom-dark: #000000;
JSON
{
"hex": "#a158f1",
"rgb": {
"r": 161,
"g": 88,
"b": 241
},
"hsl": {
"h": 268.627,
"s": 84.53,
"l": 64.51
},
"oklch": {
"l": 0.61887,
"c": 0.22092,
"h": 302.3
},
"luminance": 0.20907
}Semantic roles & 50–950 ramp
primary
#A158F1
secondary
#D4EDB8
accent
#E10578
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85