#AF8CF3#AF8CF3
#AF8CF3 is a light, vivid violet. Relative luminance 0.343; OKLCH L 71.4% C 0.149 H 298.2°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).
Color values
| HEX | #AF8CF3 |
|---|---|
| RGB | rgb(175, 140, 243) |
| HSL | hsl(260, 81%, 75%) |
| HSV | hsv(260, 42%, 95%) |
| CMYK | cmyk(28%, 42.4%, 0%, 4.7%) |
| CIE-LAB | lab(65.23, 34.38, -47.03) |
| CIE-LCH | lch(65.23, 58.26, 306.17°) |
| OKLab | oklab(71.41% 0.0706 -0.1316) |
| OKLCH | oklch(71.41% 0.149 298.2) |
| XYZ | xyz(43.2311, 34.3408, 89.1275) |
| Luminance | 0.3434 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.95
Baby Purple
#CA9BF7
ΔE00 6.18
Light Purple
#BF77F6
ΔE00 6.37
Pastel Purple
#CAA0FF
ΔE00 6.46
Perrywinkle
#8F8CE7
ΔE00 6.84
Lavender (survey)
#C79FEF
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF8CF3 #D0F38C
analogous
#8C9DF3 #AF8CF3 #E28CF3
triadic
#AF8CF3 #F3AF8C #8CF3AF
tetradic
#AF8CF3 #F38C9D #D0F38C #8CF3E2
square
#AF8CF3 #F38C9D #D0F38C #8CF3E2
split-complementary
#AF8CF3 #F3E28C #9DF38C
monochromatic
#621DE7 #8855ED #AF8CF3 #D6C3F9 #ECE3FC
Accessibility & contrast
On white
2.67
#AF8CF3 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.87
#AF8CF3 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF8CF3
7.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF8CF3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF8CF3 | 1.00 | 2.67 | 7.87 | 7.87 |
| #FFFFFF | 2.67 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.87 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.87 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6F9EF7
Deuteranopia (green-blind)
#759DF0
Tritanopia (blue-blind)
#A19EB4
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #af8cf3; /* rgb */ color: rgb(175, 140, 243); /* oklch */ color: oklch(71.4% 0.149 298.2);
Tailwind
colors: {
custom: {
50: '#c9aef7',
500: '#af8cf3',
950: '#000000',
},
}SCSS
$custom: #af8cf3; $custom-light: #c9aef7; $custom-dark: #000000;
JSON
{
"hex": "#af8cf3",
"rgb": {
"r": 175,
"g": 140,
"b": 243
},
"hsl": {
"h": 260.388,
"s": 81.102,
"l": 75.098
},
"oklch": {
"l": 0.7141,
"c": 0.14936,
"h": 298.2
},
"luminance": 0.34341
}Semantic roles & 50–950 ramp
primary
#AF8CF3
secondary
#EAF4D7
accent
#DD0895
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85