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