#938f21
a dark, vivid yellow · cool · closest name: olive
RGB
147, 143, 33
HSL
58°, 63%, 35%
CMYK
0, 3, 78, 42
Luminance
0.2596
Every format
| HEX | #938f21 |
| RGB | rgb(147, 143, 33) |
| HSL | hsl(58, 63%, 35%) |
| CMYK | cmyk(0%, 3%, 78%, 42%) |
| LAB | lab(58.0 -11.3 54.6) |
| LCH | lch(58.0 55.8 101.7) |
| OKLCH | oklch(0.634 0.125 107.3) |
Copy-ready code
/* CSS */
color: #938f21;
background-color: #938f21;
/* Tailwind (arbitrary) */
class="text-[#938f21] bg-[#938f21]"
/* SCSS */
$brand: #938f21;
/* SwiftUI */
Color(red: 0.576, green: 0.561, blue: 0.129)
/* Android */
Color.parseColor("#938f21")Accessibility — WCAG contrast
Aa
#938f21 on white: 3.39:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#938f21 on black: 6.19:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red57.6%
Green56.1%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta2.7%
Yellow77.6%
Key (black)42.4%
Color previews
#938f21 text on a black background
contrast 6.19:1
Card sample
#938f21 text on a white background
contrast 3.39:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #938f21;
Background color
Panel with #938f21 background
background-color: #938f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #938f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(147, 143, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(147, 143, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #938f21; background: linear-gradient(135deg, #938f21, #4B9321);