#798621
a dark, vivid yellow · cool · closest name: olive
RGB
121, 134, 33
HSL
68°, 61%, 33%
CMYK
10, 0, 75, 48
Luminance
0.2122
Every format
| HEX | #798621 |
| RGB | rgb(121, 134, 33) |
| HSL | hsl(68, 61%, 33%) |
| CMYK | cmyk(10%, 0%, 75%, 48%) |
| LAB | lab(53.2 -18.3 49.4) |
| LCH | lch(53.2 52.6 110.3) |
| OKLCH | oklch(0.590 0.122 116.8) |
Copy-ready code
/* CSS */
color: #798621;
background-color: #798621;
/* Tailwind (arbitrary) */
class="text-[#798621] bg-[#798621]"
/* SCSS */
$brand: #798621;
/* SwiftUI */
Color(red: 0.475, green: 0.525, blue: 0.129)
/* Android */
Color.parseColor("#798621")Accessibility — WCAG contrast
Aa
#798621 on white: 4.00:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#798621 on black: 5.24:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red47.5%
Green52.5%
Blue12.9%
CMYK percentages
Cyan9.7%
Magenta0.0%
Yellow75.4%
Key (black)47.5%
Color previews
#798621 text on a black background
contrast 5.24:1
Card sample
#798621 text on a white background
contrast 4.00:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #798621;
Background color
Panel with #798621 background
background-color: #798621;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #798621;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(121, 134, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(121, 134, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #798621; background: linear-gradient(135deg, #798621, #368621);