#A042CB#A042CB
#A042CB is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.6% C 0.210 H 313.2°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).
Color values
| HEX | #A042CB |
|---|---|
| RGB | rgb(160, 66, 203) |
| HSL | hsl(281, 57%, 53%) |
| HSV | hsv(281, 67%, 80%) |
| CMYK | cmyk(21.2%, 67.5%, 0%, 20.4%) |
| CIE-LAB | lab(46.56, 59.95, -54.35) |
| CIE-LCH | lch(46.56, 80.92, 317.81°) |
| OKLab | oklab(56.55% 0.1439 -0.1532) |
| OKLCH | oklch(56.55% 0.21 313.2) |
| XYZ | xyz(27.2230, 15.6826, 58.0813) |
| Luminance | 0.1568 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.43
Purply
#983FB2
ΔE00 4.19
Vibrant Purple
#AD03DE
ΔE00 5.33
Lightish Purple
#A552E6
ΔE00 5.76
Barney
#AC1DB8
ΔE00 5.95
Amethyst
#9B5FC0
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A042CB #6DCB42
analogous
#5C42CB #A042CB #CB42B1
triadic
#A042CB #CBA042 #42CBA0
tetradic
#A042CB #CB5C42 #6DCB42 #42B1CB
square
#A042CB #CB5C42 #6DCB42 #42B1CB
split-complementary
#A042CB #B1CB42 #42CB5C
monochromatic
#592073 #7E2DA3 #A042CB #B872D8 #D0A2E5
Accessibility & contrast
On white
5.08
#A042CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.14
#A042CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A042CB
5.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A042CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A042CB | 1.00 | 5.08 | 4.14 | 5.08 |
| #FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#3870C8
Tritanopia (blue-blind)
#9C5E81
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #a042cb; /* rgb */ color: rgb(160, 66, 203); /* oklch */ color: oklch(56.6% 0.210 313.2);
Tailwind
colors: {
custom: {
50: '#c07ddb',
500: '#a042cb',
950: '#000000',
},
}SCSS
$custom: #a042cb; $custom-light: #c07ddb; $custom-dark: #000000;
JSON
{
"hex": "#a042cb",
"rgb": {
"r": 160,
"g": 66,
"b": 203
},
"hsl": {
"h": 281.168,
"s": 56.846,
"l": 52.745
},
"oklch": {
"l": 0.56551,
"c": 0.21016,
"h": 313.2
},
"luminance": 0.15682
}Semantic roles & 50–950 ramp
primary
#A042CB
secondary
#A9D297
accent
#E04878
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83