#A540C2#A540C2
#A540C2 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.4% C 0.206 H 317.8°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).
Color values
| HEX | #A540C2 |
|---|---|
| RGB | rgb(165, 64, 194) |
| HSL | hsl(287, 52%, 51%) |
| HSV | hsv(287, 67%, 76%) |
| CMYK | cmyk(14.9%, 67%, 0%, 23.9%) |
| CIE-LAB | lab(46.39, 60.09, -49.36) |
| CIE-LCH | lch(46.39, 77.76, 320.60°) |
| OKLab | oklab(56.4% 0.1528 -0.1384) |
| OKLCH | oklch(56.4% 0.206 317.8) |
| XYZ | xyz(27.0867, 15.5623, 52.6055) |
| Luminance | 0.1556 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.27
Darkorchid
#9932CC
ΔE00 4.30
Barney
#AC1DB8
ΔE00 4.71
Medium Purple
#9E43A2
ΔE00 5.53
Vibrant Purple
#AD03DE
ΔE00 5.83
Ugly Purple
#A442A0
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A540C2 #5DC240
analogous
#6440C2 #A540C2 #C2409E
triadic
#A540C2 #C2A540 #40C2A5
tetradic
#A540C2 #C26440 #5DC240 #409EC2
square
#A540C2 #C26440 #5DC240 #409EC2
split-complementary
#A540C2 #9EC240 #40C264
monochromatic
#572167 #7F3095 #A540C2 #BB6ED1 #D19DE0
Accessibility & contrast
On white
5.11
#A540C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.11
#A540C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A540C2
5.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A540C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A540C2 | 1.00 | 5.11 | 4.11 | 5.11 |
| #FFFFFF | 5.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0267C6
Deuteranopia (green-blind)
#4571BF
Tritanopia (blue-blind)
#A4587C
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #a540c2; /* rgb */ color: rgb(165, 64, 194); /* oklch */ color: oklch(56.4% 0.206 317.8);
Tailwind
colors: {
custom: {
50: '#c37cd5',
500: '#a540c2',
950: '#000000',
},
}SCSS
$custom: #a540c2; $custom-light: #c37cd5; $custom-dark: #000000;
JSON
{
"hex": "#a540c2",
"rgb": {
"r": 165,
"g": 64,
"b": 194
},
"hsl": {
"h": 286.615,
"s": 51.587,
"l": 50.588
},
"oklch": {
"l": 0.56403,
"c": 0.20613,
"h": 317.8
},
"luminance": 0.15561
}Semantic roles & 50–950 ramp
primary
#A540C2
secondary
#9FCC92
accent
#DB4D6C
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83