#AFA2F1#AFA2F1
#AFA2F1 is a light, moderate blue. Relative luminance 0.413; OKLCH L 75.3% C 0.113 H 291.0°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA2F1 |
|---|---|
| RGB | rgb(175, 162, 241) |
| HSL | hsl(250, 74%, 79%) |
| HSV | hsv(250, 33%, 95%) |
| CMYK | cmyk(27.4%, 32.8%, 0%, 5.5%) |
| CIE-LAB | lab(70.39, 21.54, -37.86) |
| CIE-LCH | lch(70.39, 43.56, 299.63°) |
| OKLab | oklab(75.31% 0.0403 -0.1052) |
| OKLCH | oklch(75.31% 0.113 291) |
| XYZ | xyz(46.4728, 41.3047, 88.7262) |
| Luminance | 0.4130 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Lavender
#B39DDB
ΔE00 5.16
Pastel Purple
#CAA0FF
ΔE00 6.03
Lavender (survey)
#C79FEF
ΔE00 6.22
Pale Violet
#CEAEFA
ΔE00 6.46
Lilac (survey)
#CEA2FD
ΔE00 6.66
Baby Purple
#CA9BF7
ΔE00 6.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA2F1 #E4F1A2
analogous
#A2BDF1 #AFA2F1 #D7A2F1
triadic
#AFA2F1 #F1AFA2 #A2F1AF
tetradic
#AFA2F1 #F1A2BD #E4F1A2 #A2F1D7
square
#AFA2F1 #F1A2BD #E4F1A2 #A2F1D7
split-complementary
#AFA2F1 #F1D7A2 #BDF1A2
monochromatic
#5338E1 #816DE9 #AFA2F1 #DDD7F9 #E8E4FB
Accessibility & contrast
On white
2.27
#AFA2F1 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.26
#AFA2F1 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA2F1
9.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA2F1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA2F1 | 1.00 | 2.27 | 9.26 | 9.26 |
| #FFFFFF | 2.27 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.26 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.26 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8DADF4
Deuteranopia (green-blind)
#8DABEF
Tritanopia (blue-blind)
#A0B0BF
Achromatopsia (no color)
#ACACAC
Design tokens & code
CSS
--color: #afa2f1; /* rgb */ color: rgb(175, 162, 241); /* oklch */ color: oklch(75.3% 0.113 291.0);
Tailwind
colors: {
custom: {
50: '#c8bdf6',
500: '#afa2f1',
950: '#000000',
},
}SCSS
$custom: #afa2f1; $custom-light: #c8bdf6; $custom-dark: #000000;
JSON
{
"hex": "#afa2f1",
"rgb": {
"r": 175,
"g": 162,
"b": 241
},
"hsl": {
"h": 249.873,
"s": 73.832,
"l": 79.02
},
"oklch": {
"l": 0.75306,
"c": 0.11264,
"h": 291
},
"luminance": 0.41305
}Semantic roles & 50–950 ramp
primary
#AFA2F1
secondary
#EEF3D8
accent
#D610B5
background
#FCFBFF
surface
#F8F6FE
border
#D1D0D6
text
#131217
muted
#828185