#504907
a deep, electric yellow · cool · closest name: olive
RGB
80, 73, 7
HSL
54°, 84%, 17%
CMYK
0, 9, 91, 69
Luminance
0.0649
Every format
| HEX | #504907 |
| RGB | rgb(80, 73, 7) |
| HSL | hsl(54, 84%, 17%) |
| CMYK | cmyk(0%, 9%, 91%, 69%) |
| LAB | lab(30.6 -4.8 36.5) |
| LCH | lch(30.6 36.8 97.6) |
| OKLCH | oklch(0.400 0.080 102.8) |
Copy-ready code
/* CSS */
color: #504907;
background-color: #504907;
/* Tailwind (arbitrary) */
class="text-[#504907] bg-[#504907]"
/* SCSS */
$brand: #504907;
/* SwiftUI */
Color(red: 0.314, green: 0.286, blue: 0.027)
/* Android */
Color.parseColor("#504907")Accessibility — WCAG contrast
Aa
#504907 on white: 9.14:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#504907 on black: 2.30:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.4%
Green28.6%
Blue2.7%
CMYK percentages
Cyan0.0%
Magenta8.8%
Yellow91.3%
Key (black)68.6%
Color previews
#504907 text on a black background
contrast 2.30:1
Card sample
#504907 text on a white background
contrast 9.14:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #504907;
Background color
Panel with #504907 background
background-color: #504907;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #504907;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(80, 73, 7, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 73, 7, 0.45);
Border & gradient
Gradient panel
border: 3px solid #504907; background: linear-gradient(135deg, #504907, #265007);