#A42F9B#A42F9B
#A42F9B is a mid, vivid purple. Relative luminance 0.123; OKLCH L 52.3% C 0.194 H 331.3°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).
Color values
| HEX | #A42F9B |
|---|---|
| RGB | rgb(164, 47, 155) |
| HSL | hsl(305, 55%, 41%) |
| HSV | hsv(305, 71%, 64%) |
| CMYK | cmyk(0%, 71.3%, 5.5%, 35.7%) |
| CIE-LAB | lab(41.68, 59.50, -33.81) |
| CIE-LCH | lch(41.68, 68.44, 330.39°) |
| OKLab | oklab(52.27% 0.1698 -0.093) |
| OKLCH | oklch(52.27% 0.194 331.3) |
| XYZ | xyz(22.2427, 12.2939, 32.2054) |
| Luminance | 0.1229 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.21
Ugly Purple
#A442A0
ΔE00 3.39
Medium Purple
#9E43A2
ΔE00 3.60
Barney Purple
#A00498
ΔE00 4.25
Barney
#AC1DB8
ΔE00 5.01
Purply
#983FB2
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A42F9B #2FA438
analogous
#732FA4 #A42F9B #A42F61
triadic
#A42F9B #9BA42F #2F9BA4
tetradic
#A42F9B #A4732F #2FA438 #2F61A4
square
#A42F9B #A4732F #2FA438 #2F61A4
split-complementary
#A42F9B #61A42F #2FA473
monochromatic
#451441 #74216E #A42F9B #CA46C0 #D876D0
Accessibility & contrast
On white
6.07
#A42F9B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.46
#A42F9B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A42F9B
6.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A42F9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A42F9B | 1.00 | 6.07 | 3.46 | 6.07 |
| #FFFFFF | 6.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#26589E
Deuteranopia (green-blind)
#536898
Tritanopia (blue-blind)
#AB3C62
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #a42f9b; /* rgb */ color: rgb(164, 47, 155); /* oklch */ color: oklch(52.3% 0.194 331.3);
Tailwind
colors: {
custom: {
50: '#c273b9',
500: '#a42f9b',
950: '#000000',
},
}SCSS
$custom: #a42f9b; $custom-light: #c273b9; $custom-dark: #000000;
JSON
{
"hex": "#a42f9b",
"rgb": {
"r": 164,
"g": 47,
"b": 155
},
"hsl": {
"h": 304.615,
"s": 55.45,
"l": 41.373
},
"oklch": {
"l": 0.52271,
"c": 0.19365,
"h": 331.3
},
"luminance": 0.12292
}Semantic roles & 50–950 ramp
primary
#A42F9B
secondary
#6FC075
accent
#DF5549
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80