#AF2A9B#AF2A9B
#AF2A9B is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.6% C 0.205 H 335.0°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2A9B |
|---|---|
| RGB | rgb(175, 42, 155) |
| HSL | hsl(309, 61%, 43%) |
| HSV | hsv(309, 76%, 69%) |
| CMYK | cmyk(0%, 76%, 11.4%, 31.4%) |
| CIE-LAB | lab(42.97, 63.69, -31.65) |
| CIE-LCH | lch(42.97, 71.12, 333.58°) |
| OKLab | oklab(53.56% 0.1859 -0.0865) |
| OKLCH | oklch(53.56% 0.205 335) |
| XYZ | xyz(24.4239, 13.1386, 32.2537) |
| Luminance | 0.1314 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.79
Medium Purple
#9E43A2
ΔE00 4.65
Warm Purple
#952E8F
ΔE00 4.94
Barney Purple
#A00498
ΔE00 5.34
Barney
#AC1DB8
ΔE00 5.63
Purply
#983FB2
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2A9B #2AAF3E
analogous
#812AAF #AF2A9B #AF2A58
triadic
#AF2A9B #9BAF2A #2A9BAF
tetradic
#AF2A9B #AF812A #2AAF3E #2A58AF
square
#AF2A9B #AF812A #2AAF3E #2A58AF
split-complementary
#AF2A9B #58AF2A #2AAF81
monochromatic
#4C1244 #7E1E6F #AF2A9B #D244BD #DE75CE
Accessibility & contrast
On white
5.79
#AF2A9B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.63
#AF2A9B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2A9B
5.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2A9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2A9B | 1.00 | 5.79 | 3.63 | 5.79 |
| #FFFFFF | 5.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#29599E
Deuteranopia (green-blind)
#5A6C98
Tritanopia (blue-blind)
#B83660
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #af2a9b; /* rgb */ color: rgb(175, 42, 155); /* oklch */ color: oklch(53.6% 0.205 335.0);
Tailwind
colors: {
custom: {
50: '#cb72b9',
500: '#af2a9b',
950: '#000000',
},
}SCSS
$custom: #af2a9b; $custom-light: #cb72b9; $custom-dark: #000000;
JSON
{
"hex": "#af2a9b",
"rgb": {
"r": 175,
"g": 42,
"b": 155
},
"hsl": {
"h": 309.023,
"s": 61.29,
"l": 42.549
},
"oklch": {
"l": 0.53557,
"c": 0.20508,
"h": 335
},
"luminance": 0.13136
}Semantic roles & 50–950 ramp
primary
#AF2A9B
secondary
#6FC67C
accent
#E45C43
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80