#AF2E9A#AF2E9A
#AF2E9A is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.8% C 0.200 H 335.5°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2E9A |
|---|---|
| RGB | rgb(175, 46, 154) |
| HSL | hsl(310, 58%, 43%) |
| HSV | hsv(310, 74%, 69%) |
| CMYK | cmyk(0%, 73.7%, 12%, 31.4%) |
| CIE-LAB | lab(43.36, 62.28, -30.43) |
| CIE-LCH | lch(43.36, 69.32, 333.96°) |
| OKLab | oklab(53.82% 0.1821 -0.0831) |
| OKLCH | oklch(53.82% 0.2 335.5) |
| XYZ | xyz(24.4893, 13.4032, 31.8629) |
| Luminance | 0.1340 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.51
Medium Purple
#9E43A2
ΔE00 4.52
Warm Purple
#952E8F
ΔE00 5.16
Barney Purple
#A00498
ΔE00 5.86
Barney
#AC1DB8
ΔE00 6.04
Mediumvioletred
#C71585
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2E9A #2EAF43
analogous
#832EAF #AF2E9A #AF2E5A
triadic
#AF2E9A #9AAF2E #2E9AAF
tetradic
#AF2E9A #AF832E #2EAF43 #2E5AAF
square
#AF2E9A #AF832E #2EAF43 #2E5AAF
split-complementary
#AF2E9A #5AAF2E #2EAF83
monochromatic
#4E1545 #7F216F #AF2E9A #D04BBA #DC7BCC
Accessibility & contrast
On white
5.71
#AF2E9A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.68
#AF2E9A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2E9A
5.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2E9A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2E9A | 1.00 | 5.71 | 3.68 | 5.71 |
| #FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2E5A9D
Deuteranopia (green-blind)
#5C6D97
Tritanopia (blue-blind)
#B83861
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #af2e9a; /* rgb */ color: rgb(175, 46, 154); /* oklch */ color: oklch(53.8% 0.200 335.5);
Tailwind
colors: {
custom: {
50: '#cb74b8',
500: '#af2e9a',
950: '#000000',
},
}SCSS
$custom: #af2e9a; $custom-light: #cb74b8; $custom-dark: #000000;
JSON
{
"hex": "#af2e9a",
"rgb": {
"r": 175,
"g": 46,
"b": 154
},
"hsl": {
"h": 309.767,
"s": 58.371,
"l": 43.333
},
"oklch": {
"l": 0.53824,
"c": 0.20016,
"h": 335.5
},
"luminance": 0.13401
}Semantic roles & 50–950 ramp
primary
#AF2E9A
secondary
#74C581
accent
#E26046
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80