#A540E0#A540E0
#A540E0 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 58.4% C 0.234 H 309.8°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).
Color values
| HEX | #A540E0 |
|---|---|
| RGB | rgb(165, 64, 224) |
| HSL | hsl(278, 72%, 56%) |
| HSV | hsv(278, 71%, 88%) |
| CMYK | cmyk(26.3%, 71.4%, 0%, 12.2%) |
| CIE-LAB | lab(48.32, 66.19, -63.48) |
| CIE-LCH | lch(48.32, 91.72, 316.20°) |
| OKLab | oklab(58.39% 0.15 -0.1798) |
| OKLCH | oklch(58.39% 0.234 309.8) |
| XYZ | xyz(30.8023, 17.0486, 72.1746) |
| Luminance | 0.1705 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 3.75
Electric Purple
#AA23FF
ΔE00 4.29
Bright Violet
#AD0AFD
ΔE00 4.80
Neon Purple
#BC13FE
ΔE00 4.83
Darkorchid
#9932CC
ΔE00 4.85
Bright Purple
#BE03FD
ΔE00 5.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A540E0 #7BE040
analogous
#5540E0 #A540E0 #E040CB
triadic
#A540E0 #E0A540 #40E0A5
tetradic
#A540E0 #E05540 #7BE040 #40CBE0
square
#A540E0 #E05540 #7BE040 #40CBE0
split-complementary
#A540E0 #CBE040 #40E055
monochromatic
#62178E #8720C3 #A540E0 #BE75E9 #D7A9F1
Accessibility & contrast
On white
4.76
#A540E0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.41
#A540E0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A540E0
4.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A540E0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A540E0 | 1.00 | 4.76 | 4.41 | 4.76 |
| #FFFFFF | 4.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006EE5
Deuteranopia (green-blind)
#1D74DD
Tritanopia (blue-blind)
#9D648C
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #a540e0; /* rgb */ color: rgb(165, 64, 224); /* oklch */ color: oklch(58.4% 0.234 309.8);
Tailwind
colors: {
custom: {
50: '#c57eeb',
500: '#a540e0',
950: '#000000',
},
}SCSS
$custom: #a540e0; $custom-light: #c57eeb; $custom-dark: #000000;
JSON
{
"hex": "#a540e0",
"rgb": {
"r": 165,
"g": 64,
"b": 224
},
"hsl": {
"h": 277.875,
"s": 72.072,
"l": 56.471
},
"oklch": {
"l": 0.58392,
"c": 0.23413,
"h": 309.8
},
"luminance": 0.17048
}Semantic roles & 50–950 ramp
primary
#A540E0
secondary
#B5DF9D
accent
#EF397C
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#130A16
muted
#827C84