#978921
a dark, vivid yellow · cool · closest name: olive
RGB
151, 137, 33
HSL
53°, 64%, 36%
CMYK
0, 9, 78, 41
Luminance
0.2458
Every format
| HEX | #978921 |
| RGB | rgb(151, 137, 33) |
| HSL | hsl(53, 64%, 36%) |
| CMYK | cmyk(0%, 9%, 78%, 41%) |
| LAB | lab(56.7 -6.3 53.5) |
| LCH | lch(56.7 53.9 96.7) |
| OKLCH | oklch(0.624 0.119 101.3) |
Copy-ready code
/* CSS */
color: #978921;
background-color: #978921;
/* Tailwind (arbitrary) */
class="text-[#978921] bg-[#978921]"
/* SCSS */
$brand: #978921;
/* SwiftUI */
Color(red: 0.592, green: 0.537, blue: 0.129)
/* Android */
Color.parseColor("#978921")Accessibility — WCAG contrast
Aa
#978921 on white: 3.55:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#978921 on black: 5.92:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red59.2%
Green53.7%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta9.3%
Yellow78.1%
Key (black)40.8%
Color previews
#978921 text on a black background
contrast 5.92:1
Card sample
#978921 text on a white background
contrast 3.55:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #978921;
Background color
Panel with #978921 background
background-color: #978921;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #978921;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(151, 137, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(151, 137, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #978921; background: linear-gradient(135deg, #978921, #569721);