#4c4921
a deep, soft yellow · cool · closest name: darkslategray
RGB
76, 73, 33
HSL
56°, 39%, 21%
CMYK
0, 4, 57, 70
Luminance
0.0641
Every format
| HEX | #4c4921 |
| RGB | rgb(76, 73, 33) |
| HSL | hsl(56, 39%, 21%) |
| CMYK | cmyk(0%, 4%, 57%, 70%) |
| LAB | lab(30.4 -5.1 24.1) |
| LCH | lch(30.4 24.7 102.0) |
| OKLCH | oklch(0.399 0.059 104.9) |
Copy-ready code
/* CSS */
color: #4c4921;
background-color: #4c4921;
/* Tailwind (arbitrary) */
class="text-[#4c4921] bg-[#4c4921]"
/* SCSS */
$brand: #4c4921;
/* SwiftUI */
Color(red: 0.298, green: 0.286, blue: 0.129)
/* Android */
Color.parseColor("#4c4921")Accessibility — WCAG contrast
Aa
#4c4921 on white: 9.20:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#4c4921 on black: 2.28:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red29.8%
Green28.6%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta3.9%
Yellow56.6%
Key (black)70.2%
Color previews
#4c4921 text on a black background
contrast 2.28:1
Card sample
#4c4921 text on a white background
contrast 9.20:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #4c4921;
Background color
Panel with #4c4921 background
background-color: #4c4921;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #4c4921;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(76, 73, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(76, 73, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4c4921; background: linear-gradient(135deg, #4c4921, #324C21);