#AF7DF2#AF7DF2
#AF7DF2 is a light, vivid violet. Relative luminance 0.302; OKLCH L 68.8% C 0.171 H 301.8°. Best body text is #000000 at 7.04:1 contrast (WCAG AA passes).
Color values
| HEX | #AF7DF2 |
|---|---|
| RGB | rgb(175, 125, 242) |
| HSL | hsl(266, 82%, 72%) |
| HSV | hsv(266, 48%, 95%) |
| CMYK | cmyk(27.7%, 48.3%, 0%, 5.1%) |
| CIE-LAB | lab(61.82, 42.47, -51.88) |
| CIE-LCH | lch(61.82, 67.05, 309.31°) |
| OKLab | oklab(68.83% 0.0904 -0.1457) |
| OKLCH | oklch(68.83% 0.171 301.8) |
| XYZ | xyz(41.0362, 30.1919, 87.6529) |
| Luminance | 0.3019 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.29
Light Urple
#B36FF6
ΔE00 3.53
Easter Purple
#C071FE
ΔE00 4.17
Liliac
#C48EFD
ΔE00 5.43
Mediumpurple
#9370DB
ΔE00 6.55
Bright Lavender
#C760FF
ΔE00 7.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF7DF2 #C0F27D
analogous
#7D86F2 #AF7DF2 #EA7DF2
triadic
#AF7DF2 #F2AF7D #7DF2AF
tetradic
#AF7DF2 #F27D86 #C0F27D #7DF2EA
square
#AF7DF2 #F27D86 #C0F27D #7DF2EA
split-complementary
#AF7DF2 #F2EA7D #86F27D
monochromatic
#6C16DE #8D45EC #AF7DF2 #D1B5F8 #EEE3FC
Accessibility & contrast
On white
2.98
#AF7DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.04
#AF7DF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF7DF2
7.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF7DF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF7DF2 | 1.00 | 2.98 | 7.04 | 7.04 |
| #FFFFFF | 2.98 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.04 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.04 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5995F6
Deuteranopia (green-blind)
#6695EF
Tritanopia (blue-blind)
#A292AC
Achromatopsia (no color)
#959595
Design tokens & code
CSS
--color: #af7df2; /* rgb */ color: rgb(175, 125, 242); /* oklch */ color: oklch(68.8% 0.171 301.8);
Tailwind
colors: {
custom: {
50: '#c9a4f7',
500: '#af7df2',
950: '#000000',
},
}SCSS
$custom: #af7df2; $custom-light: #c9a4f7; $custom-dark: #000000;
JSON
{
"hex": "#af7df2",
"rgb": {
"r": 175,
"g": 125,
"b": 242
},
"hsl": {
"h": 265.641,
"s": 81.818,
"l": 71.961
},
"oklch": {
"l": 0.68833,
"c": 0.17148,
"h": 301.8
},
"luminance": 0.30192
}Semantic roles & 50–950 ramp
primary
#AF7DF2
secondary
#E8F4D7
accent
#DE0782
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F17
muted
#827F85