#afbe49
a balanced, vivid yellow · cool · closest name: olivedrab
RGB
175, 190, 73
HSL
68°, 47%, 52%
CMYK
8, 0, 62, 26
Luminance
0.4642
Every format
| HEX | #afbe49 |
| RGB | rgb(175, 190, 73) |
| HSL | hsl(68, 47%, 52%) |
| CMYK | cmyk(8%, 0%, 62%, 26%) |
| LAB | lab(73.8 -21.1 55.6) |
| LCH | lch(73.8 59.5 110.8) |
| OKLCH | oklch(0.767 0.142 116.0) |
Copy-ready code
/* CSS */
color: #afbe49;
background-color: #afbe49;
/* Tailwind (arbitrary) */
class="text-[#afbe49] bg-[#afbe49]"
/* SCSS */
$brand: #afbe49;
/* SwiftUI */
Color(red: 0.686, green: 0.745, blue: 0.286)
/* Android */
Color.parseColor("#afbe49")Accessibility — WCAG contrast
Aa
#afbe49 on white: 2.04:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afbe49 on black: 10.28:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green74.5%
Blue28.6%
CMYK percentages
Cyan7.9%
Magenta0.0%
Yellow61.6%
Key (black)25.5%
Color previews
#afbe49 text on a black background
contrast 10.28:1
Card sample
#afbe49 text on a white background
contrast 2.04:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afbe49;
Background color
Panel with #afbe49 background
background-color: #afbe49;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afbe49;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 190, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 190, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afbe49; background: linear-gradient(135deg, #afbe49, #61BE49);