#afb80f
a dark, electric yellow · cool · closest name: olive
RGB
175, 184, 15
HSL
63°, 85%, 39%
CMYK
5, 0, 92, 28
Luminance
0.4343
Every format
| HEX | #afb80f |
| RGB | rgb(175, 184, 15) |
| HSL | hsl(63, 85%, 39%) |
| CMYK | cmyk(5%, 0%, 92%, 28%) |
| LAB | lab(71.8 -20.6 71.3) |
| LCH | lch(71.8 74.3 106.1) |
| OKLCH | oklch(0.750 0.165 113.3) |
Copy-ready code
/* CSS */
color: #afb80f;
background-color: #afb80f;
/* Tailwind (arbitrary) */
class="text-[#afb80f] bg-[#afb80f]"
/* SCSS */
$brand: #afb80f;
/* SwiftUI */
Color(red: 0.686, green: 0.722, blue: 0.059)
/* Android */
Color.parseColor("#afb80f")Accessibility — WCAG contrast
Aa
#afb80f on white: 2.17:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afb80f on black: 9.69:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green72.2%
Blue5.9%
CMYK percentages
Cyan4.9%
Magenta0.0%
Yellow91.8%
Key (black)27.8%
Color previews
#afb80f text on a black background
contrast 9.69:1
Card sample
#afb80f text on a white background
contrast 2.17:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afb80f;
Background color
Panel with #afb80f background
background-color: #afb80f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afb80f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 184, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 184, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afb80f; background: linear-gradient(135deg, #afb80f, #3EB80F);