#f4cf02
a balanced, electric yellow · cool · closest name: gold
RGB
244, 207, 2
HSL
51°, 98%, 48%
CMYK
0, 15, 99, 4
Luminance
0.6386
Every format
| HEX | #f4cf02 |
| RGB | rgb(244, 207, 2) |
| HSL | hsl(51, 98%, 48%) |
| CMYK | cmyk(0%, 15%, 99%, 4%) |
| LAB | lab(83.9 -2.5 84.3) |
| LCH | lch(83.9 84.4 91.7) |
| OKLCH | oklch(0.860 0.177 95.9) |
Copy-ready code
/* CSS */
color: #f4cf02;
background-color: #f4cf02;
/* Tailwind (arbitrary) */
class="text-[#f4cf02] bg-[#f4cf02]"
/* SCSS */
$brand: #f4cf02;
/* SwiftUI */
Color(red: 0.957, green: 0.812, blue: 0.008)
/* Android */
Color.parseColor("#f4cf02")Accessibility — WCAG contrast
Aa
#f4cf02 on white: 1.52:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f4cf02 on black: 13.77:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red95.7%
Green81.2%
Blue0.8%
CMYK percentages
Cyan0.0%
Magenta15.2%
Yellow99.2%
Key (black)4.3%
Color previews
#f4cf02 text on a black background
contrast 13.77:1
Card sample
#f4cf02 text on a white background
contrast 1.52:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f4cf02;
Background color
Panel with #f4cf02 background
background-color: #f4cf02;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f4cf02;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(244, 207, 2, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(244, 207, 2, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f4cf02; background: linear-gradient(135deg, #f4cf02, #78F402);