#797f21
a dark, vivid yellow · cool · closest name: olive
RGB
121, 127, 33
HSL
64°, 59%, 31%
CMYK
5, 0, 74, 50
Luminance
0.1935
Every format
| HEX | #797f21 |
| RGB | rgb(121, 127, 33) |
| HSL | hsl(64, 59%, 31%) |
| CMYK | cmyk(5%, 0%, 74%, 50%) |
| LAB | lab(51.1 -14.6 47.3) |
| LCH | lch(51.1 49.5 107.1) |
| OKLCH | oklch(0.573 0.114 113.1) |
Copy-ready code
/* CSS */
color: #797f21;
background-color: #797f21;
/* Tailwind (arbitrary) */
class="text-[#797f21] bg-[#797f21]"
/* SCSS */
$brand: #797f21;
/* SwiftUI */
Color(red: 0.475, green: 0.498, blue: 0.129)
/* Android */
Color.parseColor("#797f21")Accessibility — WCAG contrast
Aa
#797f21 on white: 4.31:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#797f21 on black: 4.87:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red47.5%
Green49.8%
Blue12.9%
CMYK percentages
Cyan4.7%
Magenta0.0%
Yellow74.0%
Key (black)50.2%
Color previews
#797f21 text on a black background
contrast 4.87:1
Card sample
#797f21 text on a white background
contrast 4.31:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #797f21;
Background color
Panel with #797f21 background
background-color: #797f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #797f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(121, 127, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(121, 127, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #797f21; background: linear-gradient(135deg, #797f21, #3A7F21);