#ffba2f
a balanced, electric yellow · warm · closest name: orange
RGB
255, 186, 47
HSL
40°, 100%, 59%
CMYK
0, 27, 82, 0
Luminance
0.5658
Every format
| HEX | #ffba2f |
| RGB | rgb(255, 186, 47) |
| HSL | hsl(40, 100%, 59%) |
| CMYK | cmyk(0%, 27%, 82%, 0%) |
| LAB | lab(80.0 13.7 73.8) |
| LCH | lch(80.0 75.0 79.5) |
| OKLCH | oklch(0.832 0.161 79.3) |
Copy-ready code
/* CSS */
color: #ffba2f;
background-color: #ffba2f;
/* Tailwind (arbitrary) */
class="text-[#ffba2f] bg-[#ffba2f]"
/* SCSS */
$brand: #ffba2f;
/* SwiftUI */
Color(red: 1.000, green: 0.729, blue: 0.184)
/* Android */
Color.parseColor("#ffba2f")Accessibility — WCAG contrast
Aa
#ffba2f on white: 1.71:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ffba2f on black: 12.32:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green72.9%
Blue18.4%
CMYK percentages
Cyan0.0%
Magenta27.1%
Yellow81.6%
Key (black)0.0%
Color previews
#ffba2f text on a black background
contrast 12.32:1
Card sample
#ffba2f text on a white background
contrast 1.71:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ffba2f;
Background color
Panel with #ffba2f background
background-color: #ffba2f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ffba2f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 186, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 186, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffba2f; background: linear-gradient(135deg, #ffba2f, #B9FF2F);