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