#AFA7FE#AFA7FE
#AFA7FE is a light, vivid blue. Relative luminance 0.439; OKLCH L 76.8% C 0.123 H 287.3°. Best body text is #000000 at 9.78:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA7FE |
|---|---|
| RGB | rgb(175, 167, 254) |
| HSL | hsl(246, 98%, 83%) |
| HSV | hsv(246, 34%, 100%) |
| CMYK | cmyk(31.1%, 34.3%, 0%, 0.4%) |
| CIE-LAB | lab(72.17, 21.93, -42.15) |
| CIE-LCH | lch(72.17, 47.52, 297.49°) |
| OKLab | oklab(76.85% 0.0367 -0.1175) |
| OKLCH | oklch(76.85% 0.123 287.3) |
| XYZ | xyz(49.3826, 43.9060, 99.6196) |
| Luminance | 0.4391 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Periwinkle Blue
#8F99FB
ΔE00 6.67
Pastel Purple
#CAA0FF
ΔE00 7.02
Pale Violet
#CEAEFA
ΔE00 7.43
Lavender
#B39DDB
ΔE00 7.65
Lilac (survey)
#CEA2FD
ΔE00 7.76
Lavender (survey)
#C79FEF
ΔE00 7.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA7FE #F6FEA7
analogous
#A7CBFE #AFA7FE #DAA7FE
triadic
#AFA7FE #FEAFA7 #A7FEAF
tetradic
#AFA7FE #FEA7CB #F6FEA7 #A7FEDA
square
#AFA7FE #FEA7CB #F6FEA7 #A7FEDA
split-complementary
#AFA7FE #FEDAA7 #CBFEA7
monochromatic
#412EFD #786AFD #AFA7FE #E3E1FF #E3E1FF
Accessibility & contrast
On white
2.15
#AFA7FE on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.78
#AFA7FE on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA7FE
9.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA7FE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA7FE | 1.00 | 2.15 | 9.78 | 9.78 |
| #FFFFFF | 2.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8EB3FF
Deuteranopia (green-blind)
#8CAFFC
Tritanopia (blue-blind)
#9CB7C7
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #afa7fe; /* rgb */ color: rgb(175, 167, 254); /* oklch */ color: oklch(76.8% 0.123 287.3);
Tailwind
colors: {
custom: {
50: '#c9c1ff',
500: '#afa7fe',
950: '#000000',
},
}SCSS
$custom: #afa7fe; $custom-light: #c9c1ff; $custom-dark: #000000;
JSON
{
"hex": "#afa7fe",
"rgb": {
"r": 175,
"g": 167,
"b": 254
},
"hsl": {
"h": 245.517,
"s": 97.753,
"l": 82.549
},
"oklch": {
"l": 0.76849,
"c": 0.12312,
"h": 287.3
},
"luminance": 0.43907
}Semantic roles & 50–950 ramp
primary
#AFA7FE
secondary
#F4F7D4
accent
#E600D0
background
#FCFBFF
surface
#F8F7FF
border
#D1D0D7
text
#131218
muted
#828186