#938b21
a dark, vivid yellow · cool · closest name: olive
RGB
147, 139, 33
HSL
56°, 63%, 35%
CMYK
0, 5, 78, 42
Luminance
0.2478
Every format
| HEX | #938b21 |
| RGB | rgb(147, 139, 33) |
| HSL | hsl(56, 63%, 35%) |
| CMYK | cmyk(0%, 5%, 78%, 42%) |
| LAB | lab(56.9 -9.2 53.6) |
| LCH | lch(56.9 54.4 99.8) |
| OKLCH | oklch(0.625 0.121 104.9) |
Copy-ready code
/* CSS */
color: #938b21;
background-color: #938b21;
/* Tailwind (arbitrary) */
class="text-[#938b21] bg-[#938b21]"
/* SCSS */
$brand: #938b21;
/* SwiftUI */
Color(red: 0.576, green: 0.545, blue: 0.129)
/* Android */
Color.parseColor("#938b21")Accessibility — WCAG contrast
Aa
#938b21 on white: 3.53:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#938b21 on black: 5.96:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red57.6%
Green54.5%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta5.4%
Yellow77.6%
Key (black)42.4%
Color previews
#938b21 text on a black background
contrast 5.96:1
Card sample
#938b21 text on a white background
contrast 3.53:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #938b21;
Background color
Panel with #938b21 background
background-color: #938b21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #938b21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(147, 139, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(147, 139, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #938b21; background: linear-gradient(135deg, #938b21, #4F9321);