#A42F9E#A42F9E
#A42F9E is a mid, vivid purple. Relative luminance 0.124; OKLCH L 52.4% C 0.196 H 330.2°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).
Color values
| HEX | #A42F9E |
|---|---|
| RGB | rgb(164, 47, 158) |
| HSL | hsl(303, 55%, 41%) |
| HSV | hsv(303, 71%, 64%) |
| CMYK | cmyk(0%, 71.3%, 3.7%, 35.7%) |
| CIE-LAB | lab(41.84, 59.99, -35.36) |
| CIE-LCH | lch(41.84, 69.64, 329.48°) |
| OKLab | oklab(52.44% 0.17 -0.0975) |
| OKLCH | oklch(52.44% 0.196 330.2) |
| XYZ | xyz(22.4978, 12.3959, 33.5488) |
| Luminance | 0.1239 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.35
Medium Purple
#9E43A2
ΔE00 3.42
Warm Purple
#952E8F
ΔE00 3.45
Barney Purple
#A00498
ΔE00 4.25
Barney
#AC1DB8
ΔE00 4.48
Purply
#983FB2
ΔE00 5.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A42F9E #2FA435
analogous
#702FA4 #A42F9E #A42F64
triadic
#A42F9E #9EA42F #2F9EA4
tetradic
#A42F9E #A4702F #2FA435 #2F64A4
square
#A42F9E #A4702F #2FA435 #2F64A4
split-complementary
#A42F9E #64A42F #2FA470
monochromatic
#451442 #742170 #A42F9E #CA46C3 #D876D3
Accessibility & contrast
On white
6.04
#A42F9E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.48
#A42F9E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A42F9E
6.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A42F9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A42F9E | 1.00 | 6.04 | 3.48 | 6.04 |
| #FFFFFF | 6.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2359A1
Deuteranopia (green-blind)
#51689B
Tritanopia (blue-blind)
#AA3E63
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #a42f9e; /* rgb */ color: rgb(164, 47, 158); /* oklch */ color: oklch(52.4% 0.196 330.2);
Tailwind
colors: {
custom: {
50: '#c273bb',
500: '#a42f9e',
950: '#000000',
},
}SCSS
$custom: #a42f9e; $custom-light: #c273bb; $custom-dark: #000000;
JSON
{
"hex": "#a42f9e",
"rgb": {
"r": 164,
"g": 47,
"b": 158
},
"hsl": {
"h": 303.077,
"s": 55.45,
"l": 41.373
},
"oklch": {
"l": 0.52437,
"c": 0.19596,
"h": 330.2
},
"luminance": 0.12394
}Semantic roles & 50–950 ramp
primary
#A42F9E
secondary
#6FC073
accent
#DF5149
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81