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