#747f21
a dark, vivid yellow · cool · closest name: olive
RGB
116, 127, 33
HSL
67°, 59%, 31%
CMYK
9, 0, 74, 50
Luminance
0.1900
Every format
| HEX | #747f21 |
| RGB | rgb(116, 127, 33) |
| HSL | hsl(67, 59%, 31%) |
| CMYK | cmyk(9%, 0%, 74%, 50%) |
| LAB | lab(50.7 -16.9 46.8) |
| LCH | lch(50.7 49.8 109.8) |
| OKLCH | oklch(0.569 0.116 116.0) |
Copy-ready code
/* CSS */
color: #747f21;
background-color: #747f21;
/* Tailwind (arbitrary) */
class="text-[#747f21] bg-[#747f21]"
/* SCSS */
$brand: #747f21;
/* SwiftUI */
Color(red: 0.455, green: 0.498, blue: 0.129)
/* Android */
Color.parseColor("#747f21")Accessibility — WCAG contrast
Aa
#747f21 on white: 4.37:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#747f21 on black: 4.80:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red45.5%
Green49.8%
Blue12.9%
CMYK percentages
Cyan8.7%
Magenta0.0%
Yellow74.0%
Key (black)50.2%
Color previews
#747f21 text on a black background
contrast 4.80:1
Card sample
#747f21 text on a white background
contrast 4.37:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #747f21;
Background color
Panel with #747f21 background
background-color: #747f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #747f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(116, 127, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(116, 127, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #747f21; background: linear-gradient(135deg, #747f21, #357F21);