#f7cf08
a balanced, electric yellow · cool · closest name: gold
RGB
247, 207, 8
HSL
50°, 94%, 50%
CMYK
0, 16, 97, 3
Luminance
0.6442
Every format
| HEX | #f7cf08 |
| RGB | rgb(247, 207, 8) |
| HSL | hsl(50, 94%, 50%) |
| CMYK | cmyk(0%, 16%, 97%, 3%) |
| LAB | lab(84.2 -1.2 84.1) |
| LCH | lch(84.2 84.1 90.8) |
| OKLCH | oklch(0.863 0.176 94.7) |
Copy-ready code
/* CSS */
color: #f7cf08;
background-color: #f7cf08;
/* Tailwind (arbitrary) */
class="text-[#f7cf08] bg-[#f7cf08]"
/* SCSS */
$brand: #f7cf08;
/* SwiftUI */
Color(red: 0.969, green: 0.812, blue: 0.031)
/* Android */
Color.parseColor("#f7cf08")Accessibility — WCAG contrast
Aa
#f7cf08 on white: 1.51:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f7cf08 on black: 13.88:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red96.9%
Green81.2%
Blue3.1%
CMYK percentages
Cyan0.0%
Magenta16.2%
Yellow96.8%
Key (black)3.1%
Color previews
#f7cf08 text on a black background
contrast 13.88:1
Card sample
#f7cf08 text on a white background
contrast 1.51:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f7cf08;
Background color
Panel with #f7cf08 background
background-color: #f7cf08;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f7cf08;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(247, 207, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(247, 207, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f7cf08; background: linear-gradient(135deg, #f7cf08, #80F708);