#afb614
a dark, electric yellow · cool · closest name: olive
RGB
175, 182, 20
HSL
63°, 80%, 40%
CMYK
4, 0, 89, 29
Luminance
0.4262
Every format
| HEX | #afb614 |
| RGB | rgb(175, 182, 20) |
| HSL | hsl(63, 80%, 40%) |
| CMYK | cmyk(4%, 0%, 89%, 29%) |
| LAB | lab(71.3 -19.5 70.1) |
| LCH | lch(71.3 72.8 105.5) |
| OKLCH | oklch(0.746 0.162 112.5) |
Copy-ready code
/* CSS */
color: #afb614;
background-color: #afb614;
/* Tailwind (arbitrary) */
class="text-[#afb614] bg-[#afb614]"
/* SCSS */
$brand: #afb614;
/* SwiftUI */
Color(red: 0.686, green: 0.714, blue: 0.078)
/* Android */
Color.parseColor("#afb614")Accessibility — WCAG contrast
Aa
#afb614 on white: 2.20:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afb614 on black: 9.52:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green71.4%
Blue7.8%
CMYK percentages
Cyan3.8%
Magenta0.0%
Yellow89.0%
Key (black)28.6%
Color previews
#afb614 text on a black background
contrast 9.52:1
Card sample
#afb614 text on a white background
contrast 2.20:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afb614;
Background color
Panel with #afb614 background
background-color: #afb614;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afb614;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 182, 20, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 182, 20, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afb614; background: linear-gradient(135deg, #afb614, #43B614);