#AF8CFC#AF8CFC
#AF8CFC is a light, vivid violet. Relative luminance 0.349; OKLCH L 71.9% C 0.161 H 296.5°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).
Color values
| HEX | #AF8CFC |
|---|---|
| RGB | rgb(175, 140, 252) |
| HSL | hsl(259, 95%, 77%) |
| HSV | hsv(259, 44%, 99%) |
| CMYK | cmyk(30.6%, 44.4%, 0%, 1.2%) |
| CIE-LAB | lab(65.67, 36.59, -51.28) |
| CIE-LCH | lch(65.67, 62.99, 305.51°) |
| OKLab | oklab(71.88% 0.0719 -0.144) |
| OKLCH | oklch(71.88% 0.161 296.5) |
| XYZ | xyz(44.6237, 34.8978, 96.4615) |
| Luminance | 0.3490 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 4.17
Light Purple
#BF77F6
ΔE00 6.51
Periwinkle (survey)
#8E82FE
ΔE00 6.65
Baby Purple
#CA9BF7
ΔE00 6.80
Pastel Purple
#CAA0FF
ΔE00 6.80
Perrywinkle
#8F8CE7
ΔE00 6.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF8CFC #D9FC8C
analogous
#8CA1FC #AF8CFC #E78CFC
triadic
#AF8CFC #FCAF8C #8CFCAF
tetradic
#AF8CFC #FC8CA1 #D9FC8C #8CFCE7
square
#AF8CFC #FC8CA1 #D9FC8C #8CFCE7
split-complementary
#AF8CFC #FCE78C #A1FC8C
monochromatic
#5C15F9 #8650FA #AF8CFC #D8C8FE #EAE1FE
Accessibility & contrast
On white
2.63
#AF8CFC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.98
#AF8CFC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF8CFC
7.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF8CFC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF8CFC | 1.00 | 2.63 | 7.98 | 7.98 |
| #FFFFFF | 2.63 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#69A0FF
Deuteranopia (green-blind)
#709EF9
Tritanopia (blue-blind)
#9EA1B8
Achromatopsia (no color)
#9F9F9F
Design tokens & code
CSS
--color: #af8cfc; /* rgb */ color: rgb(175, 140, 252); /* oklch */ color: oklch(71.9% 0.161 296.5);
Tailwind
colors: {
custom: {
50: '#c9aefe',
500: '#af8cfc',
950: '#000000',
},
}SCSS
$custom: #af8cfc; $custom-light: #c9aefe; $custom-dark: #000000;
JSON
{
"hex": "#af8cfc",
"rgb": {
"r": 175,
"g": 140,
"b": 252
},
"hsl": {
"h": 258.75,
"s": 94.915,
"l": 76.863
},
"oklch": {
"l": 0.71882,
"c": 0.16096,
"h": 296.5
},
"luminance": 0.34898
}Semantic roles & 50–950 ramp
primary
#AF8CFC
secondary
#ECF6D5
accent
#E6009E
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131018
muted
#827F86