#4f0fac
a dark, electric violet · warm · closest name: navy
RGB
79, 15, 172
HSL
265°, 84%, 37%
CMYK
54, 91, 0, 33
Luminance
0.0498
Every format
| HEX | #4f0fac |
| RGB | rgb(79, 15, 172) |
| HSL | hsl(265, 84%, 37%) |
| CMYK | cmyk(54%, 91%, 0%, 33%) |
| LAB | lab(26.7 58.5 -68.9) |
| LCH | lch(26.7 90.4 310.3) |
| OKLCH | oklch(0.396 0.212 290.8) |
Copy-ready code
/* CSS */
color: #4f0fac;
background-color: #4f0fac;
/* Tailwind (arbitrary) */
class="text-[#4f0fac] bg-[#4f0fac]"
/* SCSS */
$brand: #4f0fac;
/* SwiftUI */
Color(red: 0.310, green: 0.059, blue: 0.675)
/* Android */
Color.parseColor("#4f0fac")Accessibility — WCAG contrast
Aa
#4f0fac on white: 10.52:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#4f0fac on black: 2.00:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.0%
Green5.9%
Blue67.5%
CMYK percentages
Cyan54.1%
Magenta91.3%
Yellow0.0%
Key (black)32.5%
Color previews
#4f0fac text on a black background
contrast 2.00:1
Card sample
#4f0fac text on a white background
contrast 10.52:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #4f0fac;
Background color
Panel with #4f0fac background
background-color: #4f0fac;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #4f0fac;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(79, 15, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 15, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f0fac; background: linear-gradient(135deg, #4f0fac, #AC0FA0);