#9c7e21
a dark, vivid yellow · cool · closest name: olive
RGB
156, 126, 33
HSL
45°, 65%, 37%
CMYK
0, 19, 79, 39
Luminance
0.2210
Every format
| HEX | #9c7e21 |
| RGB | rgb(156, 126, 33) |
| HSL | hsl(45, 65%, 37%) |
| CMYK | cmyk(0%, 19%, 79%, 39%) |
| LAB | lab(54.1 2.1 51.4) |
| LCH | lch(54.1 51.4 87.7) |
| OKLCH | oklch(0.605 0.112 89.9) |
Copy-ready code
/* CSS */
color: #9c7e21;
background-color: #9c7e21;
/* Tailwind (arbitrary) */
class="text-[#9c7e21] bg-[#9c7e21]"
/* SCSS */
$brand: #9c7e21;
/* SwiftUI */
Color(red: 0.612, green: 0.494, blue: 0.129)
/* Android */
Color.parseColor("#9c7e21")Accessibility — WCAG contrast
Aa
#9c7e21 on white: 3.87:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#9c7e21 on black: 5.42:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red61.2%
Green49.4%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta19.2%
Yellow78.8%
Key (black)38.8%
Color previews
#9c7e21 text on a black background
contrast 5.42:1
Card sample
#9c7e21 text on a white background
contrast 3.87:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #9c7e21;
Background color
Panel with #9c7e21 background
background-color: #9c7e21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #9c7e21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(156, 126, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(156, 126, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9c7e21; background: linear-gradient(135deg, #9c7e21, #689C21);