#ffcf42
a balanced, electric yellow · warm · closest name: gold
RGB
255, 207, 66
HSL
45°, 100%, 63%
CMYK
0, 19, 74, 0
Luminance
0.6628
Every format
| HEX | #ffcf42 |
| RGB | rgb(255, 207, 66) |
| HSL | hsl(45, 100%, 63%) |
| CMYK | cmyk(0%, 19%, 74%, 0%) |
| LAB | lab(85.1 3.5 72.1) |
| LCH | lch(85.1 72.2 87.2) |
| OKLCH | oklch(0.873 0.159 89.1) |
Copy-ready code
/* CSS */
color: #ffcf42;
background-color: #ffcf42;
/* Tailwind (arbitrary) */
class="text-[#ffcf42] bg-[#ffcf42]"
/* SCSS */
$brand: #ffcf42;
/* SwiftUI */
Color(red: 1.000, green: 0.812, blue: 0.259)
/* Android */
Color.parseColor("#ffcf42")Accessibility — WCAG contrast
Aa
#ffcf42 on white: 1.47:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ffcf42 on black: 14.26:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green81.2%
Blue25.9%
CMYK percentages
Cyan0.0%
Magenta18.8%
Yellow74.1%
Key (black)0.0%
Color previews
#ffcf42 text on a black background
contrast 14.26:1
Card sample
#ffcf42 text on a white background
contrast 1.47:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ffcf42;
Background color
Panel with #ffcf42 background
background-color: #ffcf42;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ffcf42;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 207, 66, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 207, 66, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffcf42; background: linear-gradient(135deg, #ffcf42, #B1FF42);