#ffcf06
a balanced, electric yellow · cool · closest name: gold
RGB
255, 207, 6
HSL
48°, 100%, 51%
CMYK
0, 19, 98, 0
Luminance
0.6590
Every format
| HEX | #ffcf06 |
| RGB | rgb(255, 207, 6) |
| HSL | hsl(48, 100%, 51%) |
| CMYK | cmyk(0%, 19%, 98%, 0%) |
| LAB | lab(85.0 2.2 85.2) |
| LCH | lch(85.0 85.2 88.5) |
| OKLCH | oklch(0.871 0.177 91.7) |
Copy-ready code
/* CSS */
color: #ffcf06;
background-color: #ffcf06;
/* Tailwind (arbitrary) */
class="text-[#ffcf06] bg-[#ffcf06]"
/* SCSS */
$brand: #ffcf06;
/* SwiftUI */
Color(red: 1.000, green: 0.812, blue: 0.024)
/* Android */
Color.parseColor("#ffcf06")Accessibility — WCAG contrast
Aa
#ffcf06 on white: 1.48:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ffcf06 on black: 14.18:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green81.2%
Blue2.4%
CMYK percentages
Cyan0.0%
Magenta18.8%
Yellow97.6%
Key (black)0.0%
Color previews
#ffcf06 text on a black background
contrast 14.18:1
Card sample
#ffcf06 text on a white background
contrast 1.48:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ffcf06;
Background color
Panel with #ffcf06 background
background-color: #ffcf06;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ffcf06;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 207, 6, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 207, 6, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffcf06; background: linear-gradient(135deg, #ffcf06, #89FF06);