#AF2DE2#AF2DE2
#AF2DE2 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 58.2% C 0.257 H 313.8°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2DE2 |
|---|---|
| RGB | rgb(175, 45, 226) |
| HSL | hsl(283, 76%, 53%) |
| HSV | hsv(283, 80%, 89%) |
| CMYK | cmyk(22.6%, 80.1%, 0%, 11.4%) |
| CIE-LAB | lab(47.60, 74.93, -65.72) |
| CIE-LCH | lch(47.60, 99.66, 318.75°) |
| OKLab | oklab(58.22% 0.178 -0.1859) |
| OKLCH | oklch(58.22% 0.257 313.8) |
| XYZ | xyz(32.3427, 16.4828, 73.4146) |
| Luminance | 0.1648 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Vibrant Purple
#AD03DE
ΔE00 3.24
Bright Purple
#BE03FD
ΔE00 3.67
Bright Violet
#AD0AFD
ΔE00 3.70
Neon Purple
#BC13FE
ΔE00 3.72
Electric Purple
#AA23FF
ΔE00 3.85
Hot Purple
#CB00F5
ΔE00 4.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2DE2 #60E22D
analogous
#542DE2 #AF2DE2 #E22DBA
triadic
#AF2DE2 #E2AF2D #2DE2AF
tetradic
#AF2DE2 #E2542D #60E22D #2DBAE2
square
#AF2DE2 #E2542D #60E22D #2DBAE2
split-complementary
#AF2DE2 #BAE22D #2DE254
monochromatic
#631283 #8C19B8 #AF2DE2 #C363E9 #D899F1
Accessibility & contrast
On white
4.89
#AF2DE2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.30
#AF2DE2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2DE2
4.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2DE2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2DE2 | 1.00 | 4.89 | 4.30 | 4.89 |
| #FFFFFF | 4.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006AE7
Deuteranopia (green-blind)
#1374DE
Tritanopia (blue-blind)
#AA5A89
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #af2de2; /* rgb */ color: rgb(175, 45, 226); /* oklch */ color: oklch(58.2% 0.257 313.8);
Tailwind
colors: {
custom: {
50: '#cc76ec',
500: '#af2de2',
950: '#000000',
},
}SCSS
$custom: #af2de2; $custom-light: #cc76ec; $custom-dark: #000000;
JSON
{
"hex": "#af2de2",
"rgb": {
"r": 175,
"g": 45,
"b": 226
},
"hsl": {
"h": 283.094,
"s": 75.732,
"l": 53.137
},
"oklch": {
"l": 0.58219,
"c": 0.2574,
"h": 313.8
},
"luminance": 0.16482
}Semantic roles & 50–950 ramp
primary
#AF2DE2
secondary
#A4DC8E
accent
#F2356B
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140A16
muted
#837C84