#AF22D3#AF22D3
#AF22D3 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.5% C 0.254 H 317.8°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).
Color values
| HEX | #AF22D3 |
|---|---|
| RGB | rgb(175, 34, 211) |
| HSL | hsl(288, 72%, 48%) |
| HSV | hsv(288, 84%, 83%) |
| CMYK | cmyk(17.1%, 83.9%, 0%, 17.3%) |
| CIE-LAB | lab(45.58, 75.02, -60.41) |
| CIE-LCH | lch(45.58, 96.32, 321.16°) |
| OKLab | oklab(56.48% 0.1881 -0.1703) |
| OKLCH | oklch(56.48% 0.254 317.8) |
| XYZ | xyz(30.0074, 14.9626, 62.9228) |
| Luminance | 0.1496 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Vibrant Purple
#AD03DE
ΔE00 2.23
Darkorchid
#9932CC
ΔE00 3.62
Barney
#AC1DB8
ΔE00 4.19
Bright Violet
#AD0AFD
ΔE00 5.44
Violet (survey)
#9A0EEA
ΔE00 5.50
Bright Purple
#BE03FD
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF22D3 #46D322
analogous
#5722D3 #AF22D3 #D3229E
triadic
#AF22D3 #D3AF22 #22D3AF
tetradic
#AF22D3 #D35722 #46D322 #229ED3
square
#AF22D3 #D35722 #46D322 #229ED3
split-complementary
#AF22D3 #9ED322 #22D357
monochromatic
#58116A #831A9E #AF22D3 #C54FE3 #D684EB
Accessibility & contrast
On white
5.26
#AF22D3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.99
#AF22D3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF22D3
5.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF22D3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF22D3 | 1.00 | 5.26 | 3.99 | 5.26 |
| #FFFFFF | 5.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064D7
Deuteranopia (green-blind)
#2A70CF
Tritanopia (blue-blind)
#AD4F7F
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #af22d3; /* rgb */ color: rgb(175, 34, 211); /* oklch */ color: oklch(56.5% 0.254 317.8);
Tailwind
colors: {
custom: {
50: '#cc72e1',
500: '#af22d3',
950: '#000000',
},
}SCSS
$custom: #af22d3; $custom-light: #cc72e1; $custom-dark: #000000;
JSON
{
"hex": "#af22d3",
"rgb": {
"r": 175,
"g": 34,
"b": 211
},
"hsl": {
"h": 287.797,
"s": 72.245,
"l": 48.039
},
"oklch": {
"l": 0.56478,
"c": 0.25373,
"h": 317.8
},
"luminance": 0.14961
}Semantic roles & 50–950 ramp
primary
#AF22D3
secondary
#8ED47D
accent
#EF395E
background
#FDF7FD
surface
#FAEDFB
border
#D3C8D4
text
#140915
muted
#837B83