#AF2E9C#AF2E9C
#AF2E9C is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 53.9% C 0.202 H 334.7°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2E9C |
|---|---|
| RGB | rgb(175, 46, 156) |
| HSL | hsl(309, 58%, 43%) |
| HSV | hsv(309, 74%, 69%) |
| CMYK | cmyk(0%, 73.7%, 10.9%, 31.4%) |
| CIE-LAB | lab(43.46, 62.58, -31.48) |
| CIE-LCH | lch(43.46, 70.05, 333.30°) |
| OKLab | oklab(53.93% 0.1823 -0.0861) |
| OKLCH | oklch(53.93% 0.202 334.7) |
| XYZ | xyz(24.6572, 13.4704, 32.7475) |
| Luminance | 0.1347 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.35
Medium Purple
#9E43A2
ΔE00 4.31
Warm Purple
#952E8F
ΔE00 5.17
Barney
#AC1DB8
ΔE00 5.68
Barney Purple
#A00498
ΔE00 5.78
Purply
#983FB2
ΔE00 6.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2E9C #2EAF41
analogous
#812EAF #AF2E9C #AF2E5B
triadic
#AF2E9C #9CAF2E #2E9CAF
tetradic
#AF2E9C #AF812E #2EAF41 #2E5BAF
square
#AF2E9C #AF812E #2EAF41 #2E5BAF
split-complementary
#AF2E9C #5BAF2E #2EAF81
monochromatic
#4E1546 #7F2171 #AF2E9C #D04BBC #DC7BCE
Accessibility & contrast
On white
5.69
#AF2E9C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.69
#AF2E9C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2E9C
5.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2E9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2E9C | 1.00 | 5.69 | 3.69 | 5.69 |
| #FFFFFF | 5.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D5B9F
Deuteranopia (green-blind)
#5B6D99
Tritanopia (blue-blind)
#B83962
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #af2e9c; /* rgb */ color: rgb(175, 46, 156); /* oklch */ color: oklch(53.9% 0.202 334.7);
Tailwind
colors: {
custom: {
50: '#cb74b9',
500: '#af2e9c',
950: '#000000',
},
}SCSS
$custom: #af2e9c; $custom-light: #cb74b9; $custom-dark: #000000;
JSON
{
"hex": "#af2e9c",
"rgb": {
"r": 175,
"g": 46,
"b": 156
},
"hsl": {
"h": 308.837,
"s": 58.371,
"l": 43.333
},
"oklch": {
"l": 0.53928,
"c": 0.20158,
"h": 334.7
},
"luminance": 0.13468
}Semantic roles & 50–950 ramp
primary
#AF2E9C
secondary
#74C580
accent
#E25D46
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80