#AFA2F2#AFA2F2
#AFA2F2 is a light, moderate blue. Relative luminance 0.414; OKLCH L 75.4% C 0.114 H 290.8°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA2F2 |
|---|---|
| RGB | rgb(175, 162, 242) |
| HSL | hsl(250, 75%, 79%) |
| HSV | hsv(250, 33%, 95%) |
| CMYK | cmyk(27.7%, 33.1%, 0%, 5.1%) |
| CIE-LAB | lab(70.43, 21.78, -38.34) |
| CIE-LCH | lch(70.43, 44.10, 299.60°) |
| OKLab | oklab(75.35% 0.0406 -0.1065) |
| OKLCH | oklch(75.35% 0.114 290.8) |
| XYZ | xyz(46.6225, 41.3646, 89.5150) |
| Luminance | 0.4137 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Lavender
#B39DDB
ΔE00 5.34
Pastel Purple
#CAA0FF
ΔE00 6.01
Lavender (survey)
#C79FEF
ΔE00 6.28
Pale Violet
#CEAEFA
ΔE00 6.52
Lilac (survey)
#CEA2FD
ΔE00 6.67
Baby Purple
#CA9BF7
ΔE00 6.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA2F2 #E5F2A2
analogous
#A2BDF2 #AFA2F2 #D7A2F2
triadic
#AFA2F2 #F2AFA2 #A2F2AF
tetradic
#AFA2F2 #F2A2BD #E5F2A2 #A2F2D7
square
#AFA2F2 #F2A2BD #E5F2A2 #A2F2D7
split-complementary
#AFA2F2 #F2D7A2 #BDF2A2
monochromatic
#5337E3 #816CEA #AFA2F2 #DDD8FA #E8E4FB
Accessibility & contrast
On white
2.26
#AFA2F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.27
#AFA2F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA2F2
9.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA2F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA2F2 | 1.00 | 2.26 | 9.27 | 9.27 |
| #FFFFFF | 2.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.27 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.27 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8CAEF5
Deuteranopia (green-blind)
#8DABF0
Tritanopia (blue-blind)
#A0B0BF
Achromatopsia (no color)
#ACACAC
Design tokens & code
CSS
--color: #afa2f2; /* rgb */ color: rgb(175, 162, 242); /* oklch */ color: oklch(75.4% 0.114 290.8);
Tailwind
colors: {
custom: {
50: '#c8bdf6',
500: '#afa2f2',
950: '#000000',
},
}SCSS
$custom: #afa2f2; $custom-light: #c8bdf6; $custom-dark: #000000;
JSON
{
"hex": "#afa2f2",
"rgb": {
"r": 175,
"g": 162,
"b": 242
},
"hsl": {
"h": 249.75,
"s": 75.472,
"l": 79.216
},
"oklch": {
"l": 0.75352,
"c": 0.11402,
"h": 290.8
},
"luminance": 0.41365
}Semantic roles & 50–950 ramp
primary
#AFA2F2
secondary
#EFF3D8
accent
#D80EB7
background
#FCFBFF
surface
#F8F6FE
border
#D1D0D6
text
#131217
muted
#828185