#cf8cf9
a light, electric violet · warm · closest name: violet
RGB
207, 140, 249
HSL
277°, 90%, 76%
CMYK
17, 44, 0, 2
Luminance
0.3886
Every format
| HEX | #cf8cf9 |
| RGB | rgb(207, 140, 249) |
| HSL | hsl(277, 90%, 76%) |
| CMYK | cmyk(17%, 44%, 0%, 2%) |
| LAB | lab(68.7 44.6 -44.7) |
| LCH | lch(68.7 63.2 314.9) |
| OKLCH | oklch(0.748 0.165 311.3) |
Copy-ready code
/* CSS */
color: #cf8cf9;
background-color: #cf8cf9;
/* Tailwind (arbitrary) */
class="text-[#cf8cf9] bg-[#cf8cf9]"
/* SCSS */
$brand: #cf8cf9;
/* SwiftUI */
Color(red: 0.812, green: 0.549, blue: 0.976)
/* Android */
Color.parseColor("#cf8cf9")Accessibility — WCAG contrast
Aa
#cf8cf9 on white: 2.39:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cf8cf9 on black: 8.77:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red81.2%
Green54.9%
Blue97.6%
CMYK percentages
Cyan16.9%
Magenta43.8%
Yellow0.0%
Key (black)2.4%
Color previews
#cf8cf9 text on a black background
contrast 8.77:1
Card sample
#cf8cf9 text on a white background
contrast 2.39:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cf8cf9;
Background color
Panel with #cf8cf9 background
background-color: #cf8cf9;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cf8cf9;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(207, 140, 249, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 140, 249, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cf8cf9; background: linear-gradient(135deg, #cf8cf9, #F98CDA);