#A42F9C#A42F9C
#A42F9C is a mid, vivid purple. Relative luminance 0.123; OKLCH L 52.3% C 0.194 H 330.9°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).
Color values
| HEX | #A42F9C |
|---|---|
| RGB | rgb(164, 47, 156) |
| HSL | hsl(304, 55%, 41%) |
| HSV | hsv(304, 71%, 64%) |
| CMYK | cmyk(0%, 71.3%, 4.9%, 35.7%) |
| CIE-LAB | lab(41.73, 59.66, -34.33) |
| CIE-LCH | lch(41.73, 68.83, 330.09°) |
| OKLab | oklab(52.33% 0.1699 -0.0945) |
| OKLCH | oklch(52.33% 0.194 330.9) |
| XYZ | xyz(22.3271, 12.3276, 32.6496) |
| Luminance | 0.1233 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.28
Ugly Purple
#A442A0
ΔE00 3.37
Medium Purple
#9E43A2
ΔE00 3.53
Barney Purple
#A00498
ΔE00 4.24
Barney
#AC1DB8
ΔE00 4.83
Purply
#983FB2
ΔE00 5.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A42F9C #2FA437
analogous
#722FA4 #A42F9C #A42F62
triadic
#A42F9C #9CA42F #2F9CA4
tetradic
#A42F9C #A4722F #2FA437 #2F62A4
square
#A42F9C #A4722F #2FA437 #2F62A4
split-complementary
#A42F9C #62A42F #2FA472
monochromatic
#451442 #74216F #A42F9C #CA46C1 #D876D1
Accessibility & contrast
On white
6.06
#A42F9C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.47
#A42F9C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A42F9C
6.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A42F9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A42F9C | 1.00 | 6.06 | 3.47 | 6.06 |
| #FFFFFF | 6.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#25589F
Deuteranopia (green-blind)
#526899
Tritanopia (blue-blind)
#AA3D62
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #a42f9c; /* rgb */ color: rgb(164, 47, 156); /* oklch */ color: oklch(52.3% 0.194 330.9);
Tailwind
colors: {
custom: {
50: '#c273b9',
500: '#a42f9c',
950: '#000000',
},
}SCSS
$custom: #a42f9c; $custom-light: #c273b9; $custom-dark: #000000;
JSON
{
"hex": "#a42f9c",
"rgb": {
"r": 164,
"g": 47,
"b": 156
},
"hsl": {
"h": 304.103,
"s": 55.45,
"l": 41.373
},
"oklch": {
"l": 0.52326,
"c": 0.19441,
"h": 330.9
},
"luminance": 0.12326
}Semantic roles & 50–950 ramp
primary
#A42F9C
secondary
#6FC075
accent
#DF5349
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80