#a7b821
a dark, vivid yellow · cool · closest name: olive
RGB
167, 184, 33
HSL
67°, 70%, 43%
CMYK
9, 0, 82, 28
Luminance
0.4261
Every format
| HEX | #a7b821 |
| RGB | rgb(167, 184, 33) |
| HSL | hsl(67, 70%, 43%) |
| CMYK | cmyk(9%, 0%, 82%, 28%) |
| LAB | lab(71.3 -23.6 67.1) |
| LCH | lch(71.3 71.1 109.4) |
| OKLCH | oklch(0.744 0.162 116.4) |
Copy-ready code
/* CSS */
color: #a7b821;
background-color: #a7b821;
/* Tailwind (arbitrary) */
class="text-[#a7b821] bg-[#a7b821]"
/* SCSS */
$brand: #a7b821;
/* SwiftUI */
Color(red: 0.655, green: 0.722, blue: 0.129)
/* Android */
Color.parseColor("#a7b821")Accessibility — WCAG contrast
Aa
#a7b821 on white: 2.21:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#a7b821 on black: 9.52:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red65.5%
Green72.2%
Blue12.9%
CMYK percentages
Cyan9.2%
Magenta0.0%
Yellow82.1%
Key (black)27.8%
Color previews
#a7b821 text on a black background
contrast 9.52:1
Card sample
#a7b821 text on a white background
contrast 2.21:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #a7b821;
Background color
Panel with #a7b821 background
background-color: #a7b821;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #a7b821;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(167, 184, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(167, 184, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a7b821; background: linear-gradient(135deg, #a7b821, #42B821);