#AF4FE3#AF4FE3
#AF4FE3 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.4% C 0.222 H 311.4°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).
Color values
| HEX | #AF4FE3 |
|---|---|
| RGB | rgb(175, 79, 227) |
| HSL | hsl(279, 73%, 60%) |
| HSV | hsv(279, 65%, 89%) |
| CMYK | cmyk(22.9%, 65.2%, 0%, 11%) |
| CIE-LAB | lab(52.12, 62.48, -58.99) |
| CIE-LCH | lch(52.12, 85.93, 316.65°) |
| OKLab | oklab(61.45% 0.1468 -0.1664) |
| OKLCH | oklch(61.45% 0.222 311.4) |
| XYZ | xyz(34.3377, 20.2528, 74.7585) |
| Luminance | 0.2025 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 1.95
Lighter Purple
#A55AF4
ΔE00 3.96
Mediumorchid
#BA55D3
ΔE00 4.07
Neon Purple
#BC13FE
ΔE00 6.03
Hot Purple
#CB00F5
ΔE00 6.12
Bright Purple
#BE03FD
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF4FE3 #83E34F
analogous
#654FE3 #AF4FE3 #E34FCD
triadic
#AF4FE3 #E3AF4F #4FE3AF
tetradic
#AF4FE3 #E3654F #83E34F #4FCDE3
square
#AF4FE3 #E3654F #83E34F #4FCDE3
split-complementary
#AF4FE3 #CDE34F #4FE365
monochromatic
#70199E #9522D3 #AF4FE3 #C784EB #DFB9F4
Accessibility & contrast
On white
4.16
#AF4FE3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.05
#AF4FE3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AF4FE3
5.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF4FE3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF4FE3 | 1.00 | 4.16 | 5.05 | 5.05 |
| #FFFFFF | 4.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.05 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.05 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0078E7
Deuteranopia (green-blind)
#3F7EE0
Tritanopia (blue-blind)
#A96D92
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #af4fe3; /* rgb */ color: rgb(175, 79, 227); /* oklch */ color: oklch(61.4% 0.222 311.4);
Tailwind
colors: {
custom: {
50: '#cb87ec',
500: '#af4fe3',
950: '#000000',
},
}SCSS
$custom: #af4fe3; $custom-light: #cb87ec; $custom-dark: #000000;
JSON
{
"hex": "#af4fe3",
"rgb": {
"r": 175,
"g": 79,
"b": 227
},
"hsl": {
"h": 278.919,
"s": 72.549,
"l": 60
},
"oklch": {
"l": 0.61449,
"c": 0.22185,
"h": 311.4
},
"luminance": 0.20252
}Semantic roles & 50–950 ramp
primary
#AF4FE3
secondary
#BEE3AA
accent
#EF3979
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84