#7c8921
a dark, vivid yellow · cool · closest name: olive
RGB
124, 137, 33
HSL
68°, 61%, 33%
CMYK
10, 0, 76, 46
Luminance
0.2229
Every format
| HEX | #7c8921 |
| RGB | rgb(124, 137, 33) |
| HSL | hsl(68, 61%, 33%) |
| CMYK | cmyk(10%, 0%, 76%, 46%) |
| LAB | lab(54.3 -18.5 50.5) |
| LCH | lch(54.3 53.8 110.1) |
| OKLCH | oklch(0.600 0.125 116.6) |
Copy-ready code
/* CSS */
color: #7c8921;
background-color: #7c8921;
/* Tailwind (arbitrary) */
class="text-[#7c8921] bg-[#7c8921]"
/* SCSS */
$brand: #7c8921;
/* SwiftUI */
Color(red: 0.486, green: 0.537, blue: 0.129)
/* Android */
Color.parseColor("#7c8921")Accessibility — WCAG contrast
Aa
#7c8921 on white: 3.85:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#7c8921 on black: 5.46:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red48.6%
Green53.7%
Blue12.9%
CMYK percentages
Cyan9.5%
Magenta0.0%
Yellow75.9%
Key (black)46.3%
Color previews
#7c8921 text on a black background
contrast 5.46:1
Card sample
#7c8921 text on a white background
contrast 3.85:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #7c8921;
Background color
Panel with #7c8921 background
background-color: #7c8921;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #7c8921;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(124, 137, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(124, 137, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7c8921; background: linear-gradient(135deg, #7c8921, #378921);