#796c21
a dark, vivid yellow · cool · closest name: olive
RGB
121, 108, 33
HSL
51°, 57%, 30%
CMYK
0, 11, 73, 53
Luminance
0.1490
Every format
| HEX | #796c21 |
| RGB | rgb(121, 108, 33) |
| HSL | hsl(51, 57%, 30%) |
| CMYK | cmyk(0%, 11%, 73%, 53%) |
| LAB | lab(45.5 -4.0 41.8) |
| LCH | lch(45.5 42.0 95.5) |
| OKLCH | oklch(0.529 0.095 99.2) |
Copy-ready code
/* CSS */
color: #796c21;
background-color: #796c21;
/* Tailwind (arbitrary) */
class="text-[#796c21] bg-[#796c21]"
/* SCSS */
$brand: #796c21;
/* SwiftUI */
Color(red: 0.475, green: 0.424, blue: 0.129)
/* Android */
Color.parseColor("#796c21")Accessibility — WCAG contrast
Aa
#796c21 on white: 5.28:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#796c21 on black: 3.98:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red47.5%
Green42.4%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta10.7%
Yellow72.7%
Key (black)52.5%
Color previews
#796c21 text on a black background
contrast 3.98:1
Card sample
#796c21 text on a white background
contrast 5.28:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #796c21;
Background color
Panel with #796c21 background
background-color: #796c21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #796c21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(121, 108, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(121, 108, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #796c21; background: linear-gradient(135deg, #796c21, #4B7921);