#918b21
a dark, vivid yellow · cool · closest name: olive
RGB
145, 139, 33
HSL
57°, 63%, 35%
CMYK
0, 4, 77, 43
Luminance
0.2459
Every format
| HEX | #918b21 |
| RGB | rgb(145, 139, 33) |
| HSL | hsl(57, 63%, 35%) |
| CMYK | cmyk(0%, 4%, 77%, 43%) |
| LAB | lab(56.7 -10.1 53.4) |
| LCH | lch(56.7 54.3 100.7) |
| OKLCH | oklch(0.623 0.122 106.1) |
Copy-ready code
/* CSS */
color: #918b21;
background-color: #918b21;
/* Tailwind (arbitrary) */
class="text-[#918b21] bg-[#918b21]"
/* SCSS */
$brand: #918b21;
/* SwiftUI */
Color(red: 0.569, green: 0.545, blue: 0.129)
/* Android */
Color.parseColor("#918b21")Accessibility — WCAG contrast
Aa
#918b21 on white: 3.55:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#918b21 on black: 5.92:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red56.9%
Green54.5%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta4.1%
Yellow77.2%
Key (black)43.1%
Color previews
#918b21 text on a black background
contrast 5.92:1
Card sample
#918b21 text on a white background
contrast 3.55:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #918b21;
Background color
Panel with #918b21 background
background-color: #918b21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #918b21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(145, 139, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(145, 139, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #918b21; background: linear-gradient(135deg, #918b21, #4C9121);