#A42E9F#A42E9F
#A42E9F is a mid, vivid purple. Relative luminance 0.123; OKLCH L 52.4% C 0.198 H 329.8°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).
Color values
| HEX | #A42E9F |
|---|---|
| RGB | rgb(164, 46, 159) |
| HSL | hsl(303, 56%, 41%) |
| HSV | hsv(303, 72%, 64%) |
| CMYK | cmyk(0%, 72%, 3%, 35.7%) |
| CIE-LAB | lab(41.77, 60.50, -36.07) |
| CIE-LCH | lch(41.77, 70.44, 329.20°) |
| OKLab | oklab(52.41% 0.171 -0.0996) |
| OKLCH | oklch(52.41% 0.198 329.8) |
| XYZ | xyz(22.5447, 12.3514, 33.9908) |
| Luminance | 0.1235 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.50
Ugly Purple
#A442A0
ΔE00 3.51
Medium Purple
#9E43A2
ΔE00 3.51
Barney Purple
#A00498
ΔE00 4.13
Barney
#AC1DB8
ΔE00 4.26
Purply
#983FB2
ΔE00 5.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A42E9F #2EA433
analogous
#6E2EA4 #A42E9F #A42E64
triadic
#A42E9F #9FA42E #2E9FA4
tetradic
#A42E9F #A46E2E #2EA433 #2E64A4
square
#A42E9F #A46E2E #2EA433 #2E64A4
split-complementary
#A42E9F #64A42E #2EA46E
monochromatic
#441342 #742171 #A42E9F #CB45C5 #D874D4
Accessibility & contrast
On white
6.05
#A42E9F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.47
#A42E9F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A42E9F
6.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A42E9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A42E9F | 1.00 | 6.05 | 3.47 | 6.05 |
| #FFFFFF | 6.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2058A2
Deuteranopia (green-blind)
#50689C
Tritanopia (blue-blind)
#AA3E63
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #a42e9f; /* rgb */ color: rgb(164, 46, 159); /* oklch */ color: oklch(52.4% 0.198 329.8);
Tailwind
colors: {
custom: {
50: '#c272bc',
500: '#a42e9f',
950: '#000000',
},
}SCSS
$custom: #a42e9f; $custom-light: #c272bc; $custom-dark: #000000;
JSON
{
"hex": "#a42e9f",
"rgb": {
"r": 164,
"g": 46,
"b": 159
},
"hsl": {
"h": 302.542,
"s": 56.19,
"l": 41.176
},
"oklch": {
"l": 0.52405,
"c": 0.19788,
"h": 329.8
},
"luminance": 0.1235
}Semantic roles & 50–950 ramp
primary
#A42E9F
secondary
#6EC071
accent
#DF4F48
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81