#AF2E9B#AF2E9B
#AF2E9B is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.9% C 0.201 H 335.1°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2E9B |
|---|---|
| RGB | rgb(175, 46, 155) |
| HSL | hsl(309, 58%, 43%) |
| HSV | hsv(309, 74%, 69%) |
| CMYK | cmyk(0%, 73.7%, 11.4%, 31.4%) |
| CIE-LAB | lab(43.41, 62.43, -30.95) |
| CIE-LCH | lch(43.41, 69.68, 333.63°) |
| OKLab | oklab(53.88% 0.1822 -0.0846) |
| OKLCH | oklch(53.88% 0.201 335.1) |
| XYZ | xyz(24.5729, 13.4367, 32.3034) |
| Luminance | 0.1343 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.43
Medium Purple
#9E43A2
ΔE00 4.41
Warm Purple
#952E8F
ΔE00 5.17
Barney Purple
#A00498
ΔE00 5.82
Barney
#AC1DB8
ΔE00 5.86
Purply
#983FB2
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2E9B #2EAF42
analogous
#822EAF #AF2E9B #AF2E5B
triadic
#AF2E9B #9BAF2E #2E9BAF
tetradic
#AF2E9B #AF822E #2EAF42 #2E5BAF
square
#AF2E9B #AF822E #2EAF42 #2E5BAF
split-complementary
#AF2E9B #5BAF2E #2EAF82
monochromatic
#4E1545 #7F2170 #AF2E9B #D04BBB #DC7BCD
Accessibility & contrast
On white
5.70
#AF2E9B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.69
#AF2E9B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2E9B
5.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2E9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2E9B | 1.00 | 5.70 | 3.69 | 5.70 |
| #FFFFFF | 5.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2E5A9E
Deuteranopia (green-blind)
#5C6D98
Tritanopia (blue-blind)
#B83861
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #af2e9b; /* rgb */ color: rgb(175, 46, 155); /* oklch */ color: oklch(53.9% 0.201 335.1);
Tailwind
colors: {
custom: {
50: '#cb74b9',
500: '#af2e9b',
950: '#000000',
},
}SCSS
$custom: #af2e9b; $custom-light: #cb74b9; $custom-dark: #000000;
JSON
{
"hex": "#af2e9b",
"rgb": {
"r": 175,
"g": 46,
"b": 155
},
"hsl": {
"h": 309.302,
"s": 58.371,
"l": 43.333
},
"oklch": {
"l": 0.53876,
"c": 0.20087,
"h": 335.1
},
"luminance": 0.13435
}Semantic roles & 50–950 ramp
primary
#AF2E9B
secondary
#74C581
accent
#E25E46
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80