#A42F9D#A42F9D
#A42F9D is a mid, vivid purple. Relative luminance 0.124; OKLCH L 52.4% C 0.195 H 330.5°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).
Color values
| HEX | #A42F9D |
|---|---|
| RGB | rgb(164, 47, 157) |
| HSL | hsl(304, 55%, 41%) |
| HSV | hsv(304, 71%, 64%) |
| CMYK | cmyk(0%, 71.3%, 4.3%, 35.7%) |
| CIE-LAB | lab(41.79, 59.83, -34.85) |
| CIE-LCH | lch(41.79, 69.23, 329.78°) |
| OKLab | oklab(52.38% 0.1699 -0.096) |
| OKLCH | oklch(52.38% 0.195 330.5) |
| XYZ | xyz(22.4121, 12.3616, 33.0974) |
| Luminance | 0.1236 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.35
Warm Purple
#952E8F
ΔE00 3.36
Medium Purple
#9E43A2
ΔE00 3.47
Barney Purple
#A00498
ΔE00 4.24
Barney
#AC1DB8
ΔE00 4.66
Purply
#983FB2
ΔE00 5.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A42F9D #2FA436
analogous
#712FA4 #A42F9D #A42F63
triadic
#A42F9D #9DA42F #2F9DA4
tetradic
#A42F9D #A4712F #2FA436 #2F63A4
square
#A42F9D #A4712F #2FA436 #2F63A4
split-complementary
#A42F9D #63A42F #2FA471
monochromatic
#451442 #74216F #A42F9D #CA46C2 #D876D2
Accessibility & contrast
On white
6.05
#A42F9D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.47
#A42F9D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A42F9D
6.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A42F9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A42F9D | 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)
#2458A0
Deuteranopia (green-blind)
#52689A
Tritanopia (blue-blind)
#AA3D63
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #a42f9d; /* rgb */ color: rgb(164, 47, 157); /* oklch */ color: oklch(52.4% 0.195 330.5);
Tailwind
colors: {
custom: {
50: '#c273ba',
500: '#a42f9d',
950: '#000000',
},
}SCSS
$custom: #a42f9d; $custom-light: #c273ba; $custom-dark: #000000;
JSON
{
"hex": "#a42f9d",
"rgb": {
"r": 164,
"g": 47,
"b": 157
},
"hsl": {
"h": 303.59,
"s": 55.45,
"l": 41.373
},
"oklch": {
"l": 0.52382,
"c": 0.19519,
"h": 330.5
},
"luminance": 0.1236
}Semantic roles & 50–950 ramp
primary
#A42F9D
secondary
#6FC074
accent
#DF5249
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81