#AF2FE2#AF2FE2
#AF2FE2 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 58.4% C 0.256 H 313.7°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2FE2 |
|---|---|
| RGB | rgb(175, 47, 226) |
| HSL | hsl(283, 76%, 54%) |
| HSV | hsv(283, 79%, 89%) |
| CMYK | cmyk(22.6%, 79.2%, 0%, 11.4%) |
| CIE-LAB | lab(47.80, 74.34, -65.39) |
| CIE-LCH | lch(47.80, 99.01, 318.67°) |
| OKLab | oklab(58.36% 0.1766 -0.185) |
| OKLCH | oklch(58.36% 0.256 313.7) |
| XYZ | xyz(32.4208, 16.6391, 73.4406) |
| Luminance | 0.1664 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Vibrant Purple
#AD03DE
ΔE00 3.47
Bright Purple
#BE03FD
ΔE00 3.67
Neon Purple
#BC13FE
ΔE00 3.69
Bright Violet
#AD0AFD
ΔE00 3.81
Electric Purple
#AA23FF
ΔE00 3.88
Hot Purple
#CB00F5
ΔE00 4.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2FE2 #62E22F
analogous
#552FE2 #AF2FE2 #E22FBB
triadic
#AF2FE2 #E2AF2F #2FE2AF
tetradic
#AF2FE2 #E2552F #62E22F #2FBBE2
square
#AF2FE2 #E2552F #62E22F #2FBBE2
split-complementary
#AF2FE2 #BBE22F #2FE255
monochromatic
#641284 #8C1ABA #AF2FE2 #C465E9 #D89AF1
Accessibility & contrast
On white
4.85
#AF2FE2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.33
#AF2FE2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2FE2
4.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2FE2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2FE2 | 1.00 | 4.85 | 4.33 | 4.85 |
| #FFFFFF | 4.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006BE7
Deuteranopia (green-blind)
#1774DE
Tritanopia (blue-blind)
#AA5B8A
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #af2fe2; /* rgb */ color: rgb(175, 47, 226); /* oklch */ color: oklch(58.4% 0.256 313.7);
Tailwind
colors: {
custom: {
50: '#cc77ec',
500: '#af2fe2',
950: '#000000',
},
}SCSS
$custom: #af2fe2; $custom-light: #cc77ec; $custom-dark: #000000;
JSON
{
"hex": "#af2fe2",
"rgb": {
"r": 175,
"g": 47,
"b": 226
},
"hsl": {
"h": 282.905,
"s": 75.527,
"l": 53.529
},
"oklch": {
"l": 0.5836,
"c": 0.25573,
"h": 313.7
},
"luminance": 0.16638
}Semantic roles & 50–950 ramp
primary
#AF2FE2
secondary
#A6DD90
accent
#F2366B
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140A16
muted
#837C84