#CF8DF2#CF8DF2
#CF8DF2 is a light, vivid violet. Relative luminance 0.387; OKLCH L 74.6% C 0.156 H 313.1°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).
Color values
| HEX | #CF8DF2 |
|---|---|
| RGB | rgb(207, 141, 242) |
| HSL | hsl(279, 80%, 75%) |
| HSV | hsv(279, 42%, 95%) |
| CMYK | cmyk(14.5%, 41.7%, 0%, 5.1%) |
| CIE-LAB | lab(68.55, 42.59, -41.05) |
| CIE-LCH | lch(68.55, 59.16, 316.06°) |
| OKLab | oklab(74.62% 0.1065 -0.1136) |
| OKLCH | oklch(74.62% 0.156 313.1) |
| XYZ | xyz(51.2813, 38.7270, 88.7608) |
| Luminance | 0.3873 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.48
Baby Purple
#CA9BF7
ΔE00 3.87
Lavender (survey)
#C79FEF
ΔE00 5.33
Pastel Purple
#CAA0FF
ΔE00 5.40
Lilac (survey)
#CEA2FD
ΔE00 5.41
Violet (CSS)
#EE82EE
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CF8DF2 #B0F28D
analogous
#9C8DF2 #CF8DF2 #F28DE3
triadic
#CF8DF2 #F2CF8D #8DF2CF
tetradic
#CF8DF2 #F29C8D #B0F28D #8DE3F2
square
#CF8DF2 #F29C8D #B0F28D #8DE3F2
split-complementary
#CF8DF2 #E3F28D #8DF29C
monochromatic
#A11FE5 #B856EC #CF8DF2 #E6C4F8 #F3E4FC
Accessibility & contrast
On white
2.40
#CF8DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.75
#CF8DF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CF8DF2
8.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CF8DF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CF8DF2 | 1.00 | 2.40 | 8.75 | 8.75 |
| #FFFFFF | 2.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7AA4F6
Deuteranopia (green-blind)
#8AA9EF
Tritanopia (blue-blind)
#CC9BB4
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #cf8df2; /* rgb */ color: rgb(207, 141, 242); /* oklch */ color: oklch(74.6% 0.156 313.1);
Tailwind
colors: {
custom: {
50: '#dfaff6',
500: '#cf8df2',
950: '#000000',
},
}SCSS
$custom: #cf8df2; $custom-light: #dfaff6; $custom-dark: #000000;
JSON
{
"hex": "#cf8df2",
"rgb": {
"r": 207,
"g": 141,
"b": 242
},
"hsl": {
"h": 279.208,
"s": 79.528,
"l": 75.098
},
"oklch": {
"l": 0.74621,
"c": 0.15573,
"h": 313.1
},
"luminance": 0.38726
}Semantic roles & 50–950 ramp
primary
#CF8DF2
secondary
#E1F4D7
accent
#DC0A52
background
#FDFAFF
surface
#FBF5FE
border
#D4CFD6
text
#151017
muted
#837F85