#918f21
a dark, vivid yellow · cool · closest name: olive
RGB
145, 143, 33
HSL
59°, 63%, 35%
CMYK
0, 1, 77, 43
Luminance
0.2577
Every format
| HEX | #918f21 |
| RGB | rgb(145, 143, 33) |
| HSL | hsl(59, 63%, 35%) |
| CMYK | cmyk(0%, 1%, 77%, 43%) |
| LAB | lab(57.8 -12.3 54.4) |
| LCH | lch(57.8 55.8 102.7) |
| OKLCH | oklch(0.632 0.126 108.4) |
Copy-ready code
/* CSS */
color: #918f21;
background-color: #918f21;
/* Tailwind (arbitrary) */
class="text-[#918f21] bg-[#918f21]"
/* SCSS */
$brand: #918f21;
/* SwiftUI */
Color(red: 0.569, green: 0.561, blue: 0.129)
/* Android */
Color.parseColor("#918f21")Accessibility — WCAG contrast
Aa
#918f21 on white: 3.41:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#918f21 on black: 6.15:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red56.9%
Green56.1%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta1.4%
Yellow77.2%
Key (black)43.1%
Color previews
#918f21 text on a black background
contrast 6.15:1
Card sample
#918f21 text on a white background
contrast 3.41:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #918f21;
Background color
Panel with #918f21 background
background-color: #918f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #918f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(145, 143, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(145, 143, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #918f21; background: linear-gradient(135deg, #918f21, #489121);