#cb98ff
a light, electric violet · warm · closest name: violet
RGB
203, 152, 255
HSL
270°, 100%, 80%
CMYK
20, 40, 0, 0
Luminance
0.4237
Every format
| HEX | #cb98ff |
| RGB | rgb(203, 152, 255) |
| HSL | hsl(270, 100%, 80%) |
| CMYK | cmyk(20%, 40%, 0%, 0%) |
| LAB | lab(71.1 38.3 -44.1) |
| LCH | lch(71.1 58.5 311.0) |
| OKLCH | oklch(0.766 0.151 305.9) |
Copy-ready code
/* CSS */
color: #cb98ff;
background-color: #cb98ff;
/* Tailwind (arbitrary) */
class="text-[#cb98ff] bg-[#cb98ff]"
/* SCSS */
$brand: #cb98ff;
/* SwiftUI */
Color(red: 0.796, green: 0.596, blue: 1.000)
/* Android */
Color.parseColor("#cb98ff")Accessibility — WCAG contrast
Aa
#cb98ff on white: 2.22:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cb98ff on black: 9.47:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red79.6%
Green59.6%
Blue100.0%
CMYK percentages
Cyan20.4%
Magenta40.4%
Yellow0.0%
Key (black)0.0%
Color previews
#cb98ff text on a black background
contrast 9.47:1
Card sample
#cb98ff text on a white background
contrast 2.22:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cb98ff;
Background color
Panel with #cb98ff background
background-color: #cb98ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cb98ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(203, 152, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(203, 152, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cb98ff; background: linear-gradient(135deg, #cb98ff, #FF98EE);