#cc98df
a light, vivid violet · warm · closest name: plum
RGB
204, 152, 223
HSL
284°, 53%, 74%
CMYK
9, 32, 0, 13
Luminance
0.4062
Every format
| HEX | #cc98df |
| RGB | rgb(204, 152, 223) |
| HSL | hsl(284, 53%, 74%) |
| CMYK | cmyk(9%, 32%, 0%, 13%) |
| LAB | lab(69.9 31.8 -28.5) |
| LCH | lch(69.9 42.7 318.1) |
| OKLCH | oklch(0.753 0.114 316.8) |
Copy-ready code
/* CSS */
color: #cc98df;
background-color: #cc98df;
/* Tailwind (arbitrary) */
class="text-[#cc98df] bg-[#cc98df]"
/* SCSS */
$brand: #cc98df;
/* SwiftUI */
Color(red: 0.800, green: 0.596, blue: 0.875)
/* Android */
Color.parseColor("#cc98df")Accessibility — WCAG contrast
Aa
#cc98df on white: 2.30:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cc98df on black: 9.12:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green59.6%
Blue87.5%
CMYK percentages
Cyan8.5%
Magenta31.8%
Yellow0.0%
Key (black)12.5%
Color previews
#cc98df text on a black background
contrast 9.12:1
Card sample
#cc98df text on a white background
contrast 2.30:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cc98df;
Background color
Panel with #cc98df background
background-color: #cc98df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cc98df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 152, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 152, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc98df; background: linear-gradient(135deg, #cc98df, #DF98C3);