#514b21
a deep, soft yellow · cool · closest name: darkslategray
RGB
81, 75, 33
HSL
53°, 42%, 22%
CMYK
0, 7, 59, 68
Luminance
0.0689
Every format
| HEX | #514b21 |
| RGB | rgb(81, 75, 33) |
| HSL | hsl(53, 42%, 22%) |
| CMYK | cmyk(0%, 7%, 59%, 68%) |
| LAB | lab(31.6 -3.9 25.6) |
| LCH | lch(31.6 25.9 98.6) |
| OKLCH | oklch(0.409 0.061 101.3) |
Copy-ready code
/* CSS */
color: #514b21;
background-color: #514b21;
/* Tailwind (arbitrary) */
class="text-[#514b21] bg-[#514b21]"
/* SCSS */
$brand: #514b21;
/* SwiftUI */
Color(red: 0.318, green: 0.294, blue: 0.129)
/* Android */
Color.parseColor("#514b21")Accessibility — WCAG contrast
Aa
#514b21 on white: 8.83:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#514b21 on black: 2.38:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.8%
Green29.4%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta7.4%
Yellow59.3%
Key (black)68.2%
Color previews
#514b21 text on a black background
contrast 2.38:1
Card sample
#514b21 text on a white background
contrast 8.83:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #514b21;
Background color
Panel with #514b21 background
background-color: #514b21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #514b21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(81, 75, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 75, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #514b21; background: linear-gradient(135deg, #514b21, #375121);