#A042B1#A042B1
#A042B1 is a mid, vivid purple. Relative luminance 0.145; OKLCH L 54.9% C 0.185 H 321.2°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).
Color values
| HEX | #A042B1 |
|---|---|
| RGB | rgb(160, 66, 177) |
| HSL | hsl(291, 46%, 48%) |
| HSV | hsv(291, 63%, 69%) |
| CMYK | cmyk(9.6%, 62.7%, 0%, 30.6%) |
| CIE-LAB | lab(45.01, 54.74, -41.68) |
| CIE-LCH | lch(45.01, 68.80, 322.71°) |
| OKLab | oklab(54.94% 0.1446 -0.1161) |
| OKLCH | oklch(54.94% 0.185 321.2) |
| XYZ | xyz(24.3803, 14.5455, 43.1098) |
| Luminance | 0.1454 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.02
Medium Purple
#9E43A2
ΔE00 2.78
Ugly Purple
#A442A0
ΔE00 3.69
Barney
#AC1DB8
ΔE00 4.59
Darkorchid
#9932CC
ΔE00 5.83
Warm Purple
#952E8F
ΔE00 7.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A042B1 #53B142
analogous
#6942B1 #A042B1 #B1428A
triadic
#A042B1 #B1A042 #42B1A0
tetradic
#A042B1 #B16942 #53B142 #428AB1
square
#A042B1 #B16942 #53B142 #428AB1
split-complementary
#A042B1 #8AB142 #42B169
monochromatic
#4F2158 #783184 #A042B1 #B969C7 #CE96D8
Accessibility & contrast
On white
5.37
#A042B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.91
#A042B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A042B1
5.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A042B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A042B1 | 1.00 | 5.37 | 3.91 | 5.37 |
| #FFFFFF | 5.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2864B4
Deuteranopia (green-blind)
#4E6EAE
Tritanopia (blue-blind)
#A15473
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #a042b1; /* rgb */ color: rgb(160, 66, 177); /* oklch */ color: oklch(54.9% 0.185 321.2);
Tailwind
colors: {
custom: {
50: '#bf7dc9',
500: '#a042b1',
950: '#000000',
},
}SCSS
$custom: #a042b1; $custom-light: #bf7dc9; $custom-dark: #000000;
JSON
{
"hex": "#a042b1",
"rgb": {
"r": 160,
"g": 66,
"b": 177
},
"hsl": {
"h": 290.811,
"s": 45.679,
"l": 47.647
},
"oklch": {
"l": 0.54936,
"c": 0.18544,
"h": 321.2
},
"luminance": 0.14544
}Semantic roles & 50–950 ramp
primary
#A042B1
secondary
#94C38B
accent
#D55266
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82