#A542BB#A542BB
#A542BB is a mid, vivid purple. Relative luminance 0.155; OKLCH L 56.2% C 0.197 H 319.9°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).
Color values
| HEX | #A542BB |
|---|---|
| RGB | rgb(165, 66, 187) |
| HSL | hsl(289, 48%, 50%) |
| HSV | hsv(289, 65%, 73%) |
| CMYK | cmyk(11.8%, 64.7%, 0%, 26.7%) |
| CIE-LAB | lab(46.29, 57.87, -45.45) |
| CIE-LCH | lch(46.29, 73.59, 321.86°) |
| OKLab | oklab(56.2% 0.1507 -0.127) |
| OKLCH | oklch(56.2% 0.197 319.9) |
| XYZ | xyz(26.4338, 15.4849, 48.6006) |
| Luminance | 0.1548 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.92
Medium Purple
#9E43A2
ΔE00 4.38
Barney
#AC1DB8
ΔE00 4.67
Ugly Purple
#A442A0
ΔE00 5.01
Darkorchid
#9932CC
ΔE00 5.23
Amethyst
#9B5FC0
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A542BB #58BB42
analogous
#6942BB #A542BB #BB4295
triadic
#A542BB #BBA542 #42BBA5
tetradic
#A542BB #BB6942 #58BB42 #4295BB
square
#A542BB #BB6942 #58BB42 #4295BB
split-complementary
#A542BB #95BB42 #42BB69
monochromatic
#552261 #7D328E #A542BB #BB6ECC #D09CDC
Accessibility & contrast
On white
5.13
#A542BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.10
#A542BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A542BB
5.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A542BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A542BB | 1.00 | 5.13 | 4.10 | 5.13 |
| #FFFFFF | 5.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1E67BF
Deuteranopia (green-blind)
#4C71B8
Tritanopia (blue-blind)
#A65779
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #a542bb; /* rgb */ color: rgb(165, 66, 187); /* oklch */ color: oklch(56.2% 0.197 319.9);
Tailwind
colors: {
custom: {
50: '#c37dd0',
500: '#a542bb',
950: '#000000',
},
}SCSS
$custom: #a542bb; $custom-light: #c37dd0; $custom-dark: #000000;
JSON
{
"hex": "#a542bb",
"rgb": {
"r": 165,
"g": 66,
"b": 187
},
"hsl": {
"h": 289.091,
"s": 47.826,
"l": 49.608
},
"oklch": {
"l": 0.56197,
"c": 0.19704,
"h": 319.9
},
"luminance": 0.15484
}Semantic roles & 50–950 ramp
primary
#A542BB
secondary
#9BC891
accent
#D75069
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82