#CCAFF2#CCAFF2
#CCAFF2 is a light, moderate violet. Relative luminance 0.499; OKLCH L 80.2% C 0.098 H 304.1°. Best body text is #000000 at 10.98:1 contrast (WCAG AA passes).
Color values
| HEX | #CCAFF2 |
|---|---|
| RGB | rgb(204, 175, 242) |
| HSL | hsl(266, 72%, 82%) |
| HSV | hsv(266, 28%, 95%) |
| CMYK | cmyk(15.7%, 27.7%, 0%, 5.1%) |
| CIE-LAB | lab(76.01, 23.20, -29.51) |
| CIE-LCH | lch(76.01, 37.53, 308.17°) |
| OKLab | oklab(80.22% 0.0547 -0.0809) |
| OKLCH | oklch(80.22% 0.098 304.1) |
| XYZ | xyz(56.2557, 49.9083, 90.6568) |
| Luminance | 0.4991 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Pale Violet
#CEAEFA
ΔE00 1.78
Light Violet
#D6B4FC
ΔE00 2.07
Mauve
#E0B0FF
ΔE00 4.15
Lavender (survey)
#C79FEF
ΔE00 4.36
Lilac (survey)
#CEA2FD
ΔE00 4.93
Light Lavender
#DFC5FE
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CCAFF2 #D5F2AF
analogous
#AFB4F2 #CCAFF2 #EEAFF2
triadic
#CCAFF2 #F2CCAF #AFF2CC
tetradic
#CCAFF2 #F2AFB4 #D5F2AF #AFF2EE
square
#CCAFF2 #F2AFB4 #D5F2AF #AFF2EE
split-complementary
#CCAFF2 #F2EEAF #B4F2AF
monochromatic
#8946E1 #AA7AE9 #CCAFF2 #EEE4FB #EEE5FB
Accessibility & contrast
On white
1.91
#CCAFF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.98
#CCAFF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CCAFF2
10.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CCAFF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CCAFF2 | 1.00 | 1.91 | 10.98 | 10.98 |
| #FFFFFF | 1.91 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#A2BBF5
Deuteranopia (green-blind)
#A7BBF0
Tritanopia (blue-blind)
#C6B9C7
Achromatopsia (no color)
#BBBBBB
Design tokens & code
CSS
--color: #ccaff2; /* rgb */ color: rgb(204, 175, 242); /* oklch */ color: oklch(80.2% 0.098 304.1);
Tailwind
colors: {
custom: {
50: '#dcc7f6',
500: '#ccaff2',
950: '#000000',
},
}SCSS
$custom: #ccaff2; $custom-light: #dcc7f6; $custom-dark: #000000;
JSON
{
"hex": "#ccaff2",
"rgb": {
"r": 204,
"g": 175,
"b": 242
},
"hsl": {
"h": 265.97,
"s": 72.043,
"l": 81.765
},
"oklch": {
"l": 0.80223,
"c": 0.09768,
"h": 304.1
},
"luminance": 0.49908
}Semantic roles & 50–950 ramp
primary
#CCAFF2
secondary
#E7F2D9
accent
#D41180
background
#FDFCFF
surface
#FBF8FE
border
#D4D1D6
text
#151317
muted
#838285