#f2cf05
a balanced, electric yellow · cool · closest name: gold
RGB
242, 207, 5
HSL
51°, 96%, 48%
CMYK
0, 15, 98, 5
Luminance
0.6351
Every format
| HEX | #f2cf05 |
| RGB | rgb(242, 207, 5) |
| HSL | hsl(51, 96%, 48%) |
| CMYK | cmyk(0%, 15%, 98%, 5%) |
| LAB | lab(83.7 -3.4 83.8) |
| LCH | lch(83.7 83.9 92.3) |
| OKLCH | oklch(0.859 0.176 96.6) |
Copy-ready code
/* CSS */
color: #f2cf05;
background-color: #f2cf05;
/* Tailwind (arbitrary) */
class="text-[#f2cf05] bg-[#f2cf05]"
/* SCSS */
$brand: #f2cf05;
/* SwiftUI */
Color(red: 0.949, green: 0.812, blue: 0.020)
/* Android */
Color.parseColor("#f2cf05")Accessibility — WCAG contrast
Aa
#f2cf05 on white: 1.53:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f2cf05 on black: 13.70:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.9%
Green81.2%
Blue2.0%
CMYK percentages
Cyan0.0%
Magenta14.5%
Yellow97.9%
Key (black)5.1%
Color previews
#f2cf05 text on a black background
contrast 13.70:1
Card sample
#f2cf05 text on a white background
contrast 1.53:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f2cf05;
Background color
Panel with #f2cf05 background
background-color: #f2cf05;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f2cf05;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(242, 207, 5, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 207, 5, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2cf05; background: linear-gradient(135deg, #f2cf05, #77F205);