#AF7DE2#AF7DE2
#AF7DE2 is a light, vivid violet. Relative luminance 0.293; OKLCH L 68.0% C 0.152 H 305.6°. Best body text is #000000 at 6.85:1 contrast (WCAG AA passes).
Color values
| HEX | #AF7DE2 |
|---|---|
| RGB | rgb(175, 125, 226) |
| HSL | hsl(270, 64%, 69%) |
| HSV | hsv(270, 45%, 89%) |
| CMYK | cmyk(22.6%, 44.7%, 0%, 11.4%) |
| CIE-LAB | lab(61.02, 38.72, -44.26) |
| CIE-LCH | lch(61.02, 58.81, 311.18°) |
| OKLab | oklab(67.98% 0.0884 -0.1236) |
| OKLCH | oklch(67.98% 0.152 305.6) |
| XYZ | xyz(38.7375, 29.2724, 75.5462) |
| Luminance | 0.2927 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 4.05
Light Urple
#B36FF6
ΔE00 4.77
Easter Purple
#C071FE
ΔE00 5.44
Liliac
#C48EFD
ΔE00 6.02
Wisteria
#A87DC2
ΔE00 6.05
Mediumpurple
#9370DB
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF7DE2 #B0E27D
analogous
#7D7EE2 #AF7DE2 #E27DE2
triadic
#AF7DE2 #E2AF7D #7DE2AF
tetradic
#AF7DE2 #E27D7E #B0E27D #7DE2E2
square
#AF7DE2 #E27D7E #B0E27D #7DE2E2
split-complementary
#AF7DE2 #E2E27D #7EE27D
monochromatic
#722ABB #904BD7 #AF7DE2 #CEAFED #EDE1F8
Accessibility & contrast
On white
3.06
#AF7DE2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.85
#AF7DE2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AF7DE2
6.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF7DE2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF7DE2 | 1.00 | 3.06 | 6.85 | 6.85 |
| #FFFFFF | 3.06 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.85 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.85 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6392E6
Deuteranopia (green-blind)
#7094DF
Tritanopia (blue-blind)
#A78EA5
Achromatopsia (no color)
#939393
Design tokens & code
CSS
--color: #af7de2; /* rgb */ color: rgb(175, 125, 226); /* oklch */ color: oklch(68.0% 0.152 305.6);
Tailwind
colors: {
custom: {
50: '#c9a3eb',
500: '#af7de2',
950: '#000000',
},
}SCSS
$custom: #af7de2; $custom-light: #c9a3eb; $custom-dark: #000000;
JSON
{
"hex": "#af7de2",
"rgb": {
"r": 175,
"g": 125,
"b": 226
},
"hsl": {
"h": 269.703,
"s": 63.522,
"l": 68.824
},
"oklch": {
"l": 0.67976,
"c": 0.1519,
"h": 305.6
},
"luminance": 0.29272
}Semantic roles & 50–950 ramp
primary
#AF7DE2
secondary
#DEECCE
accent
#CB1A74
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#130F16
muted
#827F84