#AF2E9E#AF2E9E
#AF2E9E is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.0% C 0.203 H 334.0°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2E9E |
|---|---|
| RGB | rgb(175, 46, 158) |
| HSL | hsl(308, 58%, 43%) |
| HSV | hsv(308, 74%, 69%) |
| CMYK | cmyk(0%, 73.7%, 9.7%, 31.4%) |
| CIE-LAB | lab(43.56, 62.88, -32.52) |
| CIE-LCH | lch(43.56, 70.79, 332.65°) |
| OKLab | oklab(54.03% 0.1824 -0.0891) |
| OKLCH | oklch(54.03% 0.203 334) |
| XYZ | xyz(24.8280, 13.5387, 33.6467) |
| Luminance | 0.1354 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.23
Medium Purple
#9E43A2
ΔE00 4.14
Warm Purple
#952E8F
ΔE00 5.22
Barney
#AC1DB8
ΔE00 5.33
Barney Purple
#A00498
ΔE00 5.73
Purply
#983FB2
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2E9E #2EAF3F
analogous
#7F2EAF #AF2E9E #AF2E5D
triadic
#AF2E9E #9EAF2E #2E9EAF
tetradic
#AF2E9E #AF7F2E #2EAF3F #2E5DAF
square
#AF2E9E #AF7F2E #2EAF3F #2E5DAF
split-complementary
#AF2E9E #5DAF2E #2EAF7F
monochromatic
#4E1546 #7F2172 #AF2E9E #D04BBE #DC7BD0
Accessibility & contrast
On white
5.66
#AF2E9E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.71
#AF2E9E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2E9E
5.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2E9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2E9E | 1.00 | 5.66 | 3.71 | 5.66 |
| #FFFFFF | 5.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B5BA1
Deuteranopia (green-blind)
#5A6E9B
Tritanopia (blue-blind)
#B73A63
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #af2e9e; /* rgb */ color: rgb(175, 46, 158); /* oklch */ color: oklch(54.0% 0.203 334.0);
Tailwind
colors: {
custom: {
50: '#cb74bb',
500: '#af2e9e',
950: '#000000',
},
}SCSS
$custom: #af2e9e; $custom-light: #cb74bb; $custom-dark: #000000;
JSON
{
"hex": "#af2e9e",
"rgb": {
"r": 175,
"g": 46,
"b": 158
},
"hsl": {
"h": 307.907,
"s": 58.371,
"l": 43.333
},
"oklch": {
"l": 0.54033,
"c": 0.20301,
"h": 334
},
"luminance": 0.13537
}Semantic roles & 50–950 ramp
primary
#AF2E9E
secondary
#74C57F
accent
#E25B46
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81