#A542BA#A542BA
#A542BA is a mid, vivid purple. Relative luminance 0.154; OKLCH L 56.1% C 0.196 H 320.2°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #A542BA |
|---|---|
| RGB | rgb(165, 66, 186) |
| HSL | hsl(290, 48%, 49%) |
| HSV | hsv(290, 65%, 73%) |
| CMYK | cmyk(11.3%, 64.5%, 0%, 27.1%) |
| CIE-LAB | lab(46.23, 57.68, -44.96) |
| CIE-LCH | lch(46.23, 73.13, 322.07°) |
| OKLab | oklab(56.14% 0.1507 -0.1255) |
| OKLCH | oklch(56.14% 0.196 320.2) |
| XYZ | xyz(26.3271, 15.4422, 48.0387) |
| Luminance | 0.1544 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.88
Medium Purple
#9E43A2
ΔE00 4.21
Barney
#AC1DB8
ΔE00 4.64
Ugly Purple
#A442A0
ΔE00 4.83
Darkorchid
#9932CC
ΔE00 5.34
Amethyst
#9B5FC0
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A542BA #57BA42
analogous
#6942BA #A542BA #BA4293
triadic
#A542BA #BAA542 #42BAA5
tetradic
#A542BA #BA6942 #57BA42 #4293BA
square
#A542BA #BA6942 #57BA42 #4293BA
split-complementary
#A542BA #93BA42 #42BA69
monochromatic
#552260 #7D328D #A542BA #BB6ECB #D09BDB
Accessibility & contrast
On white
5.14
#A542BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.09
#A542BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A542BA
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A542BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A542BA | 1.00 | 5.14 | 4.09 | 5.14 |
| #FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F67BE
Deuteranopia (green-blind)
#4C71B7
Tritanopia (blue-blind)
#A65678
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #a542ba; /* rgb */ color: rgb(165, 66, 186); /* oklch */ color: oklch(56.1% 0.196 320.2);
Tailwind
colors: {
custom: {
50: '#c37dcf',
500: '#a542ba',
950: '#000000',
},
}SCSS
$custom: #a542ba; $custom-light: #c37dcf; $custom-dark: #000000;
JSON
{
"hex": "#a542ba",
"rgb": {
"r": 165,
"g": 66,
"b": 186
},
"hsl": {
"h": 289.5,
"s": 47.619,
"l": 49.412
},
"oklch": {
"l": 0.56137,
"c": 0.19611,
"h": 320.2
},
"luminance": 0.15441
}Semantic roles & 50–950 ramp
primary
#A542BA
secondary
#9AC890
accent
#D75168
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82