#f2cf25
a balanced, electric yellow · cool · closest name: gold
RGB
242, 207, 37
HSL
50°, 89%, 55%
CMYK
0, 15, 85, 5
Luminance
0.6364
Every format
| HEX | #f2cf25 |
| RGB | rgb(242, 207, 37) |
| HSL | hsl(50, 89%, 55%) |
| CMYK | cmyk(0%, 15%, 85%, 5%) |
| LAB | lab(83.8 -2.9 79.1) |
| LCH | lch(83.8 79.2 92.1) |
| OKLCH | oklch(0.859 0.170 96.0) |
Copy-ready code
/* CSS */
color: #f2cf25;
background-color: #f2cf25;
/* Tailwind (arbitrary) */
class="text-[#f2cf25] bg-[#f2cf25]"
/* SCSS */
$brand: #f2cf25;
/* SwiftUI */
Color(red: 0.949, green: 0.812, blue: 0.145)
/* Android */
Color.parseColor("#f2cf25")Accessibility — WCAG contrast
Aa
#f2cf25 on white: 1.53:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f2cf25 on black: 13.73:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.9%
Green81.2%
Blue14.5%
CMYK percentages
Cyan0.0%
Magenta14.5%
Yellow84.7%
Key (black)5.1%
Color previews
#f2cf25 text on a black background
contrast 13.73:1
Card sample
#f2cf25 text on a white background
contrast 1.53:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f2cf25;
Background color
Panel with #f2cf25 background
background-color: #f2cf25;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f2cf25;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(242, 207, 37, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 207, 37, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2cf25; background: linear-gradient(135deg, #f2cf25, #8CF225);