#f2ba10
a balanced, electric yellow · cool · closest name: gold
RGB
242, 186, 16
HSL
45°, 90%, 51%
CMYK
0, 23, 93, 5
Luminance
0.5403
Every format
| HEX | #f2ba10 |
| RGB | rgb(242, 186, 16) |
| HSL | hsl(45, 90%, 51%) |
| CMYK | cmyk(0%, 23%, 93%, 5%) |
| LAB | lab(78.5 7.6 78.9) |
| LCH | lch(78.5 79.3 84.5) |
| OKLCH | oklch(0.817 0.165 86.3) |
Copy-ready code
/* CSS */
color: #f2ba10;
background-color: #f2ba10;
/* Tailwind (arbitrary) */
class="text-[#f2ba10] bg-[#f2ba10]"
/* SCSS */
$brand: #f2ba10;
/* SwiftUI */
Color(red: 0.949, green: 0.729, blue: 0.063)
/* Android */
Color.parseColor("#f2ba10")Accessibility — WCAG contrast
Aa
#f2ba10 on white: 1.78:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f2ba10 on black: 11.81:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.9%
Green72.9%
Blue6.3%
CMYK percentages
Cyan0.0%
Magenta23.1%
Yellow93.4%
Key (black)5.1%
Color previews
#f2ba10 text on a black background
contrast 11.81:1
Card sample
#f2ba10 text on a white background
contrast 1.78:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f2ba10;
Background color
Panel with #f2ba10 background
background-color: #f2ba10;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f2ba10;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(242, 186, 16, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 186, 16, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2ba10; background: linear-gradient(135deg, #f2ba10, #93F210);