#CF8CF2#CF8CF2
#CF8CF2 is a light, vivid violet. Relative luminance 0.384; OKLCH L 74.5% C 0.157 H 313.3°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).
Color values
| HEX | #CF8CF2 |
|---|---|
| RGB | rgb(207, 140, 242) |
| HSL | hsl(279, 80%, 75%) |
| HSV | hsv(279, 42%, 95%) |
| CMYK | cmyk(14.5%, 42.1%, 0%, 5.1%) |
| CIE-LAB | lab(68.34, 43.13, -41.39) |
| CIE-LCH | lch(68.34, 59.77, 316.18°) |
| OKLab | oklab(74.46% 0.1079 -0.1146) |
| OKLCH | oklch(74.46% 0.157 313.3) |
| XYZ | xyz(51.1346, 38.4334, 88.7119) |
| Luminance | 0.3843 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.48
Baby Purple
#CA9BF7
ΔE00 4.09
Lavender (survey)
#C79FEF
ΔE00 5.56
Pastel Purple
#CAA0FF
ΔE00 5.61
Lilac (survey)
#CEA2FD
ΔE00 5.63
Light Purple
#BF77F6
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CF8CF2 #AFF28C
analogous
#9C8CF2 #CF8CF2 #F28CE2
triadic
#CF8CF2 #F2CF8C #8CF2CF
tetradic
#CF8CF2 #F29C8C #AFF28C #8CE2F2
square
#CF8CF2 #F29C8C #AFF28C #8CE2F2
split-complementary
#CF8CF2 #E2F28C #8CF29C
monochromatic
#A11EE6 #B855EC #CF8CF2 #E6C3F8 #F4E4FC
Accessibility & contrast
On white
2.42
#CF8CF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.69
#CF8CF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CF8CF2
8.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CF8CF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CF8CF2 | 1.00 | 2.42 | 8.69 | 8.69 |
| #FFFFFF | 2.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.69 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.69 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#78A3F6
Deuteranopia (green-blind)
#8AA8EF
Tritanopia (blue-blind)
#CC9BB4
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #cf8cf2; /* rgb */ color: rgb(207, 140, 242); /* oklch */ color: oklch(74.5% 0.157 313.3);
Tailwind
colors: {
custom: {
50: '#dfaff6',
500: '#cf8cf2',
950: '#000000',
},
}SCSS
$custom: #cf8cf2; $custom-light: #dfaff6; $custom-dark: #000000;
JSON
{
"hex": "#cf8cf2",
"rgb": {
"r": 207,
"g": 140,
"b": 242
},
"hsl": {
"h": 279.412,
"s": 79.687,
"l": 74.902
},
"oklch": {
"l": 0.7446,
"c": 0.15739,
"h": 313.3
},
"luminance": 0.38432
}Semantic roles & 50–950 ramp
primary
#CF8CF2
secondary
#E1F4D7
accent
#DC0A52
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85