#AFA1FE#AFA1FE
#AFA1FE is a light, vivid blue. Relative luminance 0.418; OKLCH L 75.7% C 0.132 H 289.8°. Best body text is #000000 at 9.35:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA1FE |
|---|---|
| RGB | rgb(175, 161, 254) |
| HSL | hsl(249, 98%, 81%) |
| HSV | hsv(249, 37%, 100%) |
| CMYK | cmyk(31.1%, 36.6%, 0%, 0.4%) |
| CIE-LAB | lab(70.70, 25.30, -44.44) |
| CIE-LCH | lch(70.70, 51.13, 299.65°) |
| OKLab | oklab(75.73% 0.0446 -0.1241) |
| OKLCH | oklch(75.73% 0.132 289.8) |
| XYZ | xyz(48.3088, 41.7584, 99.2617) |
| Luminance | 0.4176 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Pastel Purple
#CAA0FF
ΔE00 6.09
Periwinkle Blue
#8F99FB
ΔE00 6.53
Lilac (survey)
#CEA2FD
ΔE00 7.00
Baby Purple
#CA9BF7
ΔE00 7.21
Lavender (survey)
#C79FEF
ΔE00 7.26
Lavender
#B39DDB
ΔE00 7.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA1FE #F0FEA1
analogous
#A1C2FE #AFA1FE #DEA1FE
triadic
#AFA1FE #FEAFA1 #A1FEAF
tetradic
#AFA1FE #FEA1C2 #F0FEA1 #A1FEDE
square
#AFA1FE #FEA1C2 #F0FEA1 #A1FEDE
split-complementary
#AFA1FE #FEDEA1 #C2FEA1
monochromatic
#4828FD #7B64FD #AFA1FE #E3DEFF #E5E1FF
Accessibility & contrast
On white
2.25
#AFA1FE on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.35
#AFA1FE on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA1FE
9.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA1FE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA1FE | 1.00 | 2.25 | 9.35 | 9.35 |
| #FFFFFF | 2.25 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.35 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.35 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#86AFFF
Deuteranopia (green-blind)
#86ABFC
Tritanopia (blue-blind)
#9CB2C4
Achromatopsia (no color)
#ADADAD
Design tokens & code
CSS
--color: #afa1fe; /* rgb */ color: rgb(175, 161, 254); /* oklch */ color: oklch(75.7% 0.132 289.8);
Tailwind
colors: {
custom: {
50: '#c9bcff',
500: '#afa1fe',
950: '#000000',
},
}SCSS
$custom: #afa1fe; $custom-light: #c9bcff; $custom-dark: #000000;
JSON
{
"hex": "#afa1fe",
"rgb": {
"r": 175,
"g": 161,
"b": 254
},
"hsl": {
"h": 249.032,
"s": 97.895,
"l": 81.373
},
"oklch": {
"l": 0.75731,
"c": 0.13191,
"h": 289.8
},
"luminance": 0.41759
}Semantic roles & 50–950 ramp
primary
#AFA1FE
secondary
#F2F7D4
accent
#E600C3
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131218
muted
#828186