#ffcd2f
a balanced, electric yellow · cool · closest name: gold
RGB
255, 205, 47
HSL
46°, 100%, 59%
CMYK
0, 20, 82, 0
Luminance
0.6513
Every format
| HEX | #ffcd2f |
| RGB | rgb(255, 205, 47) |
| HSL | hsl(46, 100%, 59%) |
| CMYK | cmyk(0%, 20%, 82%, 0%) |
| LAB | lab(84.5 3.9 77.7) |
| LCH | lch(84.5 77.8 87.1) |
| OKLCH | oklch(0.868 0.167 89.4) |
Copy-ready code
/* CSS */
color: #ffcd2f;
background-color: #ffcd2f;
/* Tailwind (arbitrary) */
class="text-[#ffcd2f] bg-[#ffcd2f]"
/* SCSS */
$brand: #ffcd2f;
/* SwiftUI */
Color(red: 1.000, green: 0.804, blue: 0.184)
/* Android */
Color.parseColor("#ffcd2f")Accessibility — WCAG contrast
Aa
#ffcd2f on white: 1.50:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ffcd2f on black: 14.03:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green80.4%
Blue18.4%
CMYK percentages
Cyan0.0%
Magenta19.6%
Yellow81.6%
Key (black)0.0%
Color previews
#ffcd2f text on a black background
contrast 14.03:1
Card sample
#ffcd2f text on a white background
contrast 1.50:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ffcd2f;
Background color
Panel with #ffcd2f background
background-color: #ffcd2f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ffcd2f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 205, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 205, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffcd2f; background: linear-gradient(135deg, #ffcd2f, #A6FF2F);