#AF4FE2#AF4FE2
#AF4FE2 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.4% C 0.221 H 311.7°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #AF4FE2 |
|---|---|
| RGB | rgb(175, 79, 226) |
| HSL | hsl(279, 72%, 60%) |
| HSV | hsv(279, 65%, 89%) |
| CMYK | cmyk(22.6%, 65%, 0%, 11.4%) |
| CIE-LAB | lab(52.06, 62.27, -58.52) |
| CIE-LCH | lch(52.06, 85.45, 316.78°) |
| OKLab | oklab(61.39% 0.1468 -0.165) |
| OKLCH | oklch(61.39% 0.221 311.7) |
| XYZ | xyz(34.2001, 20.1978, 74.0337) |
| Luminance | 0.2020 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 2.03
Mediumorchid
#BA55D3
ΔE00 3.97
Lighter Purple
#A55AF4
ΔE00 4.09
Neon Purple
#BC13FE
ΔE00 6.09
Hot Purple
#CB00F5
ΔE00 6.14
Amethyst
#9B5FC0
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF4FE2 #82E24F
analogous
#664FE2 #AF4FE2 #E24FCB
triadic
#AF4FE2 #E2AF4F #4FE2AF
tetradic
#AF4FE2 #E2664F #82E24F #4FCBE2
square
#AF4FE2 #E2664F #82E24F #4FCBE2
split-complementary
#AF4FE2 #CBE24F #4FE266
monochromatic
#6F1A9D #9522D1 #AF4FE2 #C784EB #DFB8F3
Accessibility & contrast
On white
4.17
#AF4FE2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.04
#AF4FE2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AF4FE2
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF4FE2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF4FE2 | 1.00 | 4.17 | 5.04 | 5.04 |
| #FFFFFF | 4.17 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.04 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.04 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0077E6
Deuteranopia (green-blind)
#407EDF
Tritanopia (blue-blind)
#A96C92
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #af4fe2; /* rgb */ color: rgb(175, 79, 226); /* oklch */ color: oklch(61.4% 0.221 311.7);
Tailwind
colors: {
custom: {
50: '#cb86ec',
500: '#af4fe2',
950: '#000000',
},
}SCSS
$custom: #af4fe2; $custom-light: #cb86ec; $custom-dark: #000000;
JSON
{
"hex": "#af4fe2",
"rgb": {
"r": 175,
"g": 79,
"b": 226
},
"hsl": {
"h": 279.184,
"s": 71.707,
"l": 59.804
},
"oklch": {
"l": 0.61385,
"c": 0.22087,
"h": 311.7
},
"luminance": 0.20197
}Semantic roles & 50–950 ramp
primary
#AF4FE2
secondary
#BEE3AA
accent
#EE3978
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84