#CFA2FF#CFA2FF
#CFA2FF is a light, vivid violet. Relative luminance 0.463; OKLCH L 78.7% C 0.136 H 305.7°. Best body text is #000000 at 10.27:1 contrast (WCAG AA passes).
Color values
| HEX | #CFA2FF |
|---|---|
| RGB | rgb(207, 162, 255) |
| HSL | hsl(269, 100%, 82%) |
| HSV | hsv(269, 36%, 100%) |
| CMYK | cmyk(18.8%, 36.5%, 0%, 0%) |
| CIE-LAB | lab(73.76, 34.02, -40.00) |
| CIE-LCH | lch(73.76, 52.51, 310.38°) |
| OKLab | oklab(78.73% 0.0796 -0.1107) |
| OKLCH | oklch(78.73% 0.136 305.7) |
| XYZ | xyz(56.6989, 46.3264, 100.5433) |
| Luminance | 0.4633 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lilac (survey)
#CEA2FD
ΔE00 0.35
Pastel Purple
#CAA0FF
ΔE00 1.10
Baby Purple
#CA9BF7
ΔE00 1.88
Lavender (survey)
#C79FEF
ΔE00 2.67
Pale Violet
#CEAEFA
ΔE00 3.76
Mauve
#E0B0FF
ΔE00 4.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CFA2FF #D2FFA2
analogous
#A2A4FF #CFA2FF #FDA2FF
triadic
#CFA2FF #FFCFA2 #A2FFCF
tetradic
#CFA2FF #FFA2A4 #D2FFA2 #A2FFFD
square
#CFA2FF #FFA2A4 #D2FFA2 #A2FFFD
split-complementary
#CFA2FF #FFFDA2 #A4FFA2
monochromatic
#9028FF #AF65FF #CFA2FF #EFDFFF #EFE0FF
Accessibility & contrast
On white
2.05
#CFA2FF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.27
#CFA2FF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CFA2FF
10.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CFA2FF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CFA2FF | 1.00 | 2.05 | 10.27 | 10.27 |
| #FFFFFF | 2.05 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.27 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.27 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8EB4FF
Deuteranopia (green-blind)
#98B6FC
Tritanopia (blue-blind)
#C8B0C5
Achromatopsia (no color)
#B5B5B5
Design tokens & code
CSS
--color: #cfa2ff; /* rgb */ color: rgb(207, 162, 255); /* oklch */ color: oklch(78.7% 0.136 305.7);
Tailwind
colors: {
custom: {
50: '#dfbeff',
500: '#cfa2ff',
950: '#000000',
},
}SCSS
$custom: #cfa2ff; $custom-light: #dfbeff; $custom-dark: #000000;
JSON
{
"hex": "#cfa2ff",
"rgb": {
"r": 207,
"g": 162,
"b": 255
},
"hsl": {
"h": 269.032,
"s": 100,
"l": 81.765
},
"oklch": {
"l": 0.78732,
"c": 0.1364,
"h": 305.7
},
"luminance": 0.46326
}Semantic roles & 50–950 ramp
primary
#CFA2FF
secondary
#E6F7D4
accent
#E60076
background
#FDFBFF
surface
#FBF7FF
border
#D4D0D7
text
#151218
muted
#838186