#4f0bad
a dark, electric violet · warm · closest name: navy
RGB
79, 11, 173
HSL
265°, 88%, 36%
CMYK
54, 94, 0, 32
Luminance
0.0492
Every format
| HEX | #4f0bad |
| RGB | rgb(79, 11, 173) |
| HSL | hsl(265, 88%, 36%) |
| CMYK | cmyk(54%, 94%, 0%, 32%) |
| LAB | lab(26.5 59.6 -69.8) |
| LCH | lch(26.5 91.8 310.5) |
| OKLCH | oklch(0.395 0.215 290.8) |
Copy-ready code
/* CSS */
color: #4f0bad;
background-color: #4f0bad;
/* Tailwind (arbitrary) */
class="text-[#4f0bad] bg-[#4f0bad]"
/* SCSS */
$brand: #4f0bad;
/* SwiftUI */
Color(red: 0.310, green: 0.043, blue: 0.678)
/* Android */
Color.parseColor("#4f0bad")Accessibility — WCAG contrast
Aa
#4f0bad on white: 10.59:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#4f0bad on black: 1.98:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.0%
Green4.3%
Blue67.8%
CMYK percentages
Cyan54.3%
Magenta93.6%
Yellow0.0%
Key (black)32.2%
Color previews
#4f0bad text on a black background
contrast 1.98:1
Card sample
#4f0bad text on a white background
contrast 10.59:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #4f0bad;
Background color
Panel with #4f0bad background
background-color: #4f0bad;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #4f0bad;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(79, 11, 173, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 11, 173, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f0bad; background: linear-gradient(135deg, #4f0bad, #AD0B9F);