#504e21
a deep, soft yellow · cool · closest name: darkslategray
RGB
80, 78, 33
HSL
57°, 42%, 22%
CMYK
0, 3, 59, 69
Luminance
0.0726
Every format
| HEX | #504e21 |
| RGB | rgb(80, 78, 33) |
| HSL | hsl(57, 42%, 22%) |
| CMYK | cmyk(0%, 3%, 59%, 69%) |
| LAB | lab(32.4 -6.2 26.5) |
| LCH | lch(32.4 27.3 103.1) |
| OKLCH | oklch(0.415 0.065 106.6) |
Copy-ready code
/* CSS */
color: #504e21;
background-color: #504e21;
/* Tailwind (arbitrary) */
class="text-[#504e21] bg-[#504e21]"
/* SCSS */
$brand: #504e21;
/* SwiftUI */
Color(red: 0.314, green: 0.306, blue: 0.129)
/* Android */
Color.parseColor("#504e21")Accessibility — WCAG contrast
Aa
#504e21 on white: 8.56:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#504e21 on black: 2.45:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.4%
Green30.6%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta2.5%
Yellow58.8%
Key (black)68.6%
Color previews
#504e21 text on a black background
contrast 2.45:1
Card sample
#504e21 text on a white background
contrast 8.56:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #504e21;
Background color
Panel with #504e21 background
background-color: #504e21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #504e21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(80, 78, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 78, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #504e21; background: linear-gradient(135deg, #504e21, #335021);