#AF9DF6#AF9DF6
#AF9DF6 is a light, vivid violet. Relative luminance 0.399; OKLCH L 74.6% C 0.127 H 292.3°. Best body text is #000000 at 8.98:1 contrast (WCAG AA passes).
Color values
| HEX | #AF9DF6 |
|---|---|
| RGB | rgb(175, 157, 246) |
| HSL | hsl(252, 83%, 79%) |
| HSV | hsv(252, 36%, 96%) |
| CMYK | cmyk(28.9%, 36.2%, 0%, 3.5%) |
| CIE-LAB | lab(69.38, 25.57, -42.15) |
| CIE-LCH | lch(69.38, 49.30, 301.24°) |
| OKLab | oklab(74.61% 0.0483 -0.1175) |
| OKLCH | oklch(74.61% 0.127 292.3) |
| XYZ | xyz(46.3666, 39.8809, 92.4258) |
| Luminance | 0.3988 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Pastel Purple
#CAA0FF
ΔE00 5.43
Lavender
#B39DDB
ΔE00 6.04
Lavender (survey)
#C79FEF
ΔE00 6.17
Baby Purple
#CA9BF7
ΔE00 6.20
Lilac (survey)
#CEA2FD
ΔE00 6.31
Liliac
#C48EFD
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF9DF6 #E4F69D
analogous
#9DB8F6 #AF9DF6 #DC9DF6
triadic
#AF9DF6 #F6AF9D #9DF6AF
tetradic
#AF9DF6 #F69DB8 #E4F69D #9DF6DC
square
#AF9DF6 #F69DB8 #E4F69D #9DF6DC
split-complementary
#AF9DF6 #F6DC9D #B8F69D
monochromatic
#532DEC #8165F1 #AF9DF6 #DDD5FB #E8E3FC
Accessibility & contrast
On white
2.34
#AF9DF6 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.98
#AF9DF6 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF9DF6
8.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF9DF6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF9DF6 | 1.00 | 2.34 | 8.98 | 8.98 |
| #FFFFFF | 2.34 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#84ABF9
Deuteranopia (green-blind)
#86A8F4
Tritanopia (blue-blind)
#9FADBE
Achromatopsia (no color)
#A9A9A9
Design tokens & code
CSS
--color: #af9df6; /* rgb */ color: rgb(175, 157, 246); /* oklch */ color: oklch(74.6% 0.127 292.3);
Tailwind
colors: {
custom: {
50: '#c9baf9',
500: '#af9df6',
950: '#000000',
},
}SCSS
$custom: #af9df6; $custom-light: #c9baf9; $custom-dark: #000000;
JSON
{
"hex": "#af9df6",
"rgb": {
"r": 175,
"g": 157,
"b": 246
},
"hsl": {
"h": 252.135,
"s": 83.178,
"l": 79.02
},
"oklch": {
"l": 0.74607,
"c": 0.12705,
"h": 292.3
},
"luminance": 0.39882
}Semantic roles & 50–950 ramp
primary
#AF9DF6
secondary
#EEF4D7
accent
#E006B4
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085