#A042B7#A042B7
#A042B7 is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.3% C 0.191 H 319.2°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).
Color values
| HEX | #A042B7 |
|---|---|
| RGB | rgb(160, 66, 183) |
| HSL | hsl(288, 47%, 49%) |
| HSV | hsv(288, 64%, 72%) |
| CMYK | cmyk(12.6%, 63.9%, 0%, 28.2%) |
| CIE-LAB | lab(45.35, 55.90, -44.66) |
| CIE-LCH | lch(45.35, 71.55, 321.38°) |
| OKLab | oklab(55.29% 0.1447 -0.1248) |
| OKLCH | oklch(55.29% 0.191 319.2) |
| XYZ | xyz(24.9916, 14.7900, 46.3289) |
| Luminance | 0.1479 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 1.89
Medium Purple
#9E43A2
ΔE00 3.85
Barney
#AC1DB8
ΔE00 4.57
Ugly Purple
#A442A0
ΔE00 4.73
Darkorchid
#9932CC
ΔE00 4.98
Amethyst
#9B5FC0
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A042B7 #59B742
analogous
#6642B7 #A042B7 #B74294
triadic
#A042B7 #B7A042 #42B7A0
tetradic
#A042B7 #B76642 #59B742 #4294B7
square
#A042B7 #B76642 #59B742 #4294B7
split-complementary
#A042B7 #94B742 #42B766
monochromatic
#51225D #79328A #A042B7 #B86CCA #CD99DA
Accessibility & contrast
On white
5.31
#A042B7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.96
#A042B7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A042B7
5.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A042B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A042B7 | 1.00 | 5.31 | 3.96 | 5.31 |
| #FFFFFF | 5.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F65BB
Deuteranopia (green-blind)
#4A6FB4
Tritanopia (blue-blind)
#A05677
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #a042b7; /* rgb */ color: rgb(160, 66, 183); /* oklch */ color: oklch(55.3% 0.191 319.2);
Tailwind
colors: {
custom: {
50: '#bf7dcd',
500: '#a042b7',
950: '#000000',
},
}SCSS
$custom: #a042b7; $custom-light: #bf7dcd; $custom-dark: #000000;
JSON
{
"hex": "#a042b7",
"rgb": {
"r": 160,
"g": 66,
"b": 183
},
"hsl": {
"h": 288.205,
"s": 46.988,
"l": 48.824
},
"oklch": {
"l": 0.55292,
"c": 0.19106,
"h": 319.2
},
"luminance": 0.14789
}Semantic roles & 50–950 ramp
primary
#A042B7
secondary
#9AC68F
accent
#D7516B
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A13
muted
#827C82