#504f21
a deep, soft yellow · cool · closest name: darkslategray
RGB
80, 79, 33
HSL
59°, 42%, 22%
CMYK
0, 1, 59, 69
Luminance
0.0741
Every format
| HEX | #504f21 |
| RGB | rgb(80, 79, 33) |
| HSL | hsl(59, 42%, 22%) |
| CMYK | cmyk(0%, 1%, 59%, 69%) |
| LAB | lab(32.7 -6.8 26.9) |
| LCH | lch(32.7 27.8 104.2) |
| OKLCH | oklch(0.418 0.066 107.8) |
Copy-ready code
/* CSS */
color: #504f21;
background-color: #504f21;
/* Tailwind (arbitrary) */
class="text-[#504f21] bg-[#504f21]"
/* SCSS */
$brand: #504f21;
/* SwiftUI */
Color(red: 0.314, green: 0.310, blue: 0.129)
/* Android */
Color.parseColor("#504f21")Accessibility — WCAG contrast
Aa
#504f21 on white: 8.46:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#504f21 on black: 2.48:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.4%
Green31.0%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta1.2%
Yellow58.8%
Key (black)68.6%
Color previews
#504f21 text on a black background
contrast 2.48:1
Card sample
#504f21 text on a white background
contrast 8.46:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #504f21;
Background color
Panel with #504f21 background
background-color: #504f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #504f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(80, 79, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 79, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #504f21; background: linear-gradient(135deg, #504f21, #325021);