#897f21
a dark, vivid yellow · cool · closest name: olive
RGB
137, 127, 33
HSL
54°, 61%, 33%
CMYK
0, 7, 76, 46
Luminance
0.2061
Every format
| HEX | #897f21 |
| RGB | rgb(137, 127, 33) |
| HSL | hsl(54, 61%, 33%) |
| CMYK | cmyk(0%, 7%, 76%, 46%) |
| LAB | lab(52.5 -7.2 49.2) |
| LCH | lch(52.5 49.7 98.4) |
| OKLCH | oklch(0.588 0.111 103.1) |
Copy-ready code
/* CSS */
color: #897f21;
background-color: #897f21;
/* Tailwind (arbitrary) */
class="text-[#897f21] bg-[#897f21]"
/* SCSS */
$brand: #897f21;
/* SwiftUI */
Color(red: 0.537, green: 0.498, blue: 0.129)
/* Android */
Color.parseColor("#897f21")Accessibility — WCAG contrast
Aa
#897f21 on white: 4.10:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#897f21 on black: 5.12:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red53.7%
Green49.8%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta7.3%
Yellow75.9%
Key (black)46.3%
Color previews
#897f21 text on a black background
contrast 5.12:1
Card sample
#897f21 text on a white background
contrast 4.10:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #897f21;
Background color
Panel with #897f21 background
background-color: #897f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #897f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(137, 127, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(137, 127, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #897f21; background: linear-gradient(135deg, #897f21, #4E8921);