#A42F96#A42F96
#A42F96 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 52.0% C 0.190 H 333.2°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).
Color values
| HEX | #A42F96 |
|---|---|
| RGB | rgb(164, 47, 150) |
| HSL | hsl(307, 55%, 41%) |
| HSV | hsv(307, 71%, 64%) |
| CMYK | cmyk(0%, 71.3%, 8.5%, 35.7%) |
| CIE-LAB | lab(41.42, 58.70, -31.20) |
| CIE-LCH | lch(41.42, 66.48, 332.01°) |
| OKLab | oklab(52% 0.1695 -0.0855) |
| OKLCH | oklch(52% 0.19 333.2) |
| XYZ | xyz(21.8315, 12.1294, 30.0396) |
| Luminance | 0.1213 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.03
Ugly Purple
#A442A0
ΔE00 3.67
Medium Purple
#9E43A2
ΔE00 4.09
Barney Purple
#A00498
ΔE00 4.43
Barney
#AC1DB8
ΔE00 5.93
Light Eggplant
#894585
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A42F96 #2FA43D
analogous
#782FA4 #A42F96 #A42F5C
triadic
#A42F96 #96A42F #2F96A4
tetradic
#A42F96 #A4782F #2FA43D #2F5CA4
square
#A42F96 #A4782F #2FA43D #2F5CA4
split-complementary
#A42F96 #5CA42F #2FA478
monochromatic
#45143F #74216A #A42F96 #CA46BA #D876CC
Accessibility & contrast
On white
6.13
#A42F96 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.43
#A42F96 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A42F96
6.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A42F96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A42F96 | 1.00 | 6.13 | 3.43 | 6.13 |
| #FFFFFF | 6.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B5799
Deuteranopia (green-blind)
#556893
Tritanopia (blue-blind)
#AB3A5F
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #a42f96; /* rgb */ color: rgb(164, 47, 150); /* oklch */ color: oklch(52.0% 0.190 333.2);
Tailwind
colors: {
custom: {
50: '#c273b5',
500: '#a42f96',
950: '#000000',
},
}SCSS
$custom: #a42f96; $custom-light: #c273b5; $custom-dark: #000000;
JSON
{
"hex": "#a42f96",
"rgb": {
"r": 164,
"g": 47,
"b": 150
},
"hsl": {
"h": 307.179,
"s": 55.45,
"l": 41.373
},
"oklch": {
"l": 0.52001,
"c": 0.18986,
"h": 333.2
},
"luminance": 0.12128
}Semantic roles & 50–950 ramp
primary
#A42F96
secondary
#6FC079
accent
#DF5B49
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80