#CCA7EF#CCA7EF
#CCA7EF is a light, moderate violet. Relative luminance 0.467; OKLCH L 78.6% C 0.107 H 307.5°. Best body text is #000000 at 10.34:1 contrast (WCAG AA passes).
Color values
| HEX | #CCA7EF |
|---|---|
| RGB | rgb(204, 167, 239) |
| HSL | hsl(271, 69%, 80%) |
| HSV | hsv(271, 30%, 94%) |
| CMYK | cmyk(14.6%, 30.1%, 0%, 6.3%) |
| CIE-LAB | lab(74.00, 26.94, -30.98) |
| CIE-LCH | lch(74.00, 41.05, 311.01°) |
| OKLab | oklab(78.65% 0.0654 -0.085) |
| OKLCH | oklch(78.65% 0.107 307.5) |
| XYZ | xyz(54.2976, 46.7072, 87.7995) |
| Luminance | 0.4671 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Pale Violet
#CEAEFA
ΔE00 2.36
Lavender (survey)
#C79FEF
ΔE00 2.36
Light Violet
#D6B4FC
ΔE00 3.28
Lilac (survey)
#CEA2FD
ΔE00 3.45
Mauve
#E0B0FF
ΔE00 3.83
Baby Purple
#CA9BF7
ΔE00 4.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CCA7EF #CAEFA7
analogous
#A8A7EF #CCA7EF #EFA7EE
triadic
#CCA7EF #EFCCA7 #A7EFCC
tetradic
#CCA7EF #EFA8A7 #CAEFA7 #A7EEEF
square
#CCA7EF #EFA8A7 #CAEFA7 #A7EEEF
split-complementary
#CCA7EF #EEEFA7 #A7EFA8
monochromatic
#903FDC #AE73E6 #CCA7EF #EADBF8 #F0E5FA
Accessibility & contrast
On white
2.03
#CCA7EF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.34
#CCA7EF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CCA7EF
10.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CCA7EF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CCA7EF | 1.00 | 2.03 | 10.34 | 10.34 |
| #FFFFFF | 2.03 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.34 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.34 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9AB4F2
Deuteranopia (green-blind)
#A1B6ED
Tritanopia (blue-blind)
#C7B1C1
Achromatopsia (no color)
#B6B6B6
Design tokens & code
CSS
--color: #cca7ef; /* rgb */ color: rgb(204, 167, 239); /* oklch */ color: oklch(78.6% 0.107 307.5);
Tailwind
colors: {
custom: {
50: '#dcc1f4',
500: '#cca7ef',
950: '#000000',
},
}SCSS
$custom: #cca7ef; $custom-light: #dcc1f4; $custom-dark: #000000;
JSON
{
"hex": "#cca7ef",
"rgb": {
"r": 204,
"g": 167,
"b": 239
},
"hsl": {
"h": 270.833,
"s": 69.231,
"l": 79.608
},
"oklch": {
"l": 0.78645,
"c": 0.10725,
"h": 307.5
},
"luminance": 0.46707
}Semantic roles & 50–950 ramp
primary
#CCA7EF
secondary
#E5F2D9
accent
#D11470
background
#FDFBFE
surface
#FBF7FD
border
#D4D0D5
text
#151217
muted
#838185