#A42F9F#A42F9F
#A42F9F is a mid, vivid purple. Relative luminance 0.124; OKLCH L 52.5% C 0.197 H 329.8°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).
Color values
| HEX | #A42F9F |
|---|---|
| RGB | rgb(164, 47, 159) |
| HSL | hsl(303, 55%, 41%) |
| HSV | hsv(303, 71%, 64%) |
| CMYK | cmyk(0%, 71.3%, 3%, 35.7%) |
| CIE-LAB | lab(41.89, 60.15, -35.88) |
| CIE-LCH | lch(41.89, 70.04, 329.19°) |
| OKLab | oklab(52.49% 0.17 -0.099) |
| OKLCH | oklch(52.49% 0.197 329.8) |
| XYZ | xyz(22.5842, 12.4305, 34.0040) |
| Luminance | 0.1243 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.36
Medium Purple
#9E43A2
ΔE00 3.38
Warm Purple
#952E8F
ΔE00 3.55
Barney Purple
#A00498
ΔE00 4.27
Barney
#AC1DB8
ΔE00 4.31
Purply
#983FB2
ΔE00 5.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A42F9F #2FA434
analogous
#6F2FA4 #A42F9F #A42F65
triadic
#A42F9F #9FA42F #2F9FA4
tetradic
#A42F9F #A46F2F #2FA434 #2F65A4
square
#A42F9F #A46F2F #2FA434 #2F65A4
split-complementary
#A42F9F #65A42F #2FA46F
monochromatic
#451443 #742171 #A42F9F #CA46C4 #D876D3
Accessibility & contrast
On white
6.02
#A42F9F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.49
#A42F9F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A42F9F
6.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A42F9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A42F9F | 1.00 | 6.02 | 3.49 | 6.02 |
| #FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2159A2
Deuteranopia (green-blind)
#51689C
Tritanopia (blue-blind)
#AA3E64
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #a42f9f; /* rgb */ color: rgb(164, 47, 159); /* oklch */ color: oklch(52.5% 0.197 329.8);
Tailwind
colors: {
custom: {
50: '#c273bc',
500: '#a42f9f',
950: '#000000',
},
}SCSS
$custom: #a42f9f; $custom-light: #c273bc; $custom-dark: #000000;
JSON
{
"hex": "#a42f9f",
"rgb": {
"r": 164,
"g": 47,
"b": 159
},
"hsl": {
"h": 302.564,
"s": 55.45,
"l": 41.373
},
"oklch": {
"l": 0.52493,
"c": 0.19674,
"h": 329.8
},
"luminance": 0.12429
}Semantic roles & 50–950 ramp
primary
#A42F9F
secondary
#6FC073
accent
#DF4F49
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81