#afb438
a balanced, vivid yellow · cool · closest name: olive
RGB
175, 180, 56
HSL
62°, 53%, 46%
CMYK
3, 0, 69, 29
Luminance
0.4204
Every format
| HEX | #afb438 |
| RGB | rgb(175, 180, 56) |
| HSL | hsl(62, 53%, 46%) |
| CMYK | cmyk(3%, 0%, 69%, 29%) |
| LAB | lab(70.9 -17.2 59.5) |
| LCH | lch(70.9 61.9 106.1) |
| OKLCH | oklch(0.743 0.143 111.7) |
Copy-ready code
/* CSS */
color: #afb438;
background-color: #afb438;
/* Tailwind (arbitrary) */
class="text-[#afb438] bg-[#afb438]"
/* SCSS */
$brand: #afb438;
/* SwiftUI */
Color(red: 0.686, green: 0.706, blue: 0.220)
/* Android */
Color.parseColor("#afb438")Accessibility — WCAG contrast
Aa
#afb438 on white: 2.23:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afb438 on black: 9.41:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green70.6%
Blue22.0%
CMYK percentages
Cyan2.8%
Magenta0.0%
Yellow68.9%
Key (black)29.4%
Color previews
#afb438 text on a black background
contrast 9.41:1
Card sample
#afb438 text on a white background
contrast 2.23:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afb438;
Background color
Panel with #afb438 background
background-color: #afb438;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afb438;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 180, 56, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 180, 56, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afb438; background: linear-gradient(135deg, #afb438, #5CB438);