#ffef00
a balanced, electric yellow · cool · closest name: yellow
RGB
255, 239, 0
HSL
56°, 100%, 50%
CMYK
0, 6, 100, 0
Luminance
0.8299
Every format
| HEX | #ffef00 |
| RGB | rgb(255, 239, 0) |
| HSL | hsl(56, 100%, 50%) |
| CMYK | cmyk(0%, 6%, 100%, 0%) |
| LAB | lab(93.0 -13.9 91.5) |
| LCH | lch(93.0 92.5 98.6) |
| OKLCH | oklch(0.935 0.198 104.7) |
Copy-ready code
/* CSS */
color: #ffef00;
background-color: #ffef00;
/* Tailwind (arbitrary) */
class="text-[#ffef00] bg-[#ffef00]"
/* SCSS */
$brand: #ffef00;
/* SwiftUI */
Color(red: 1.000, green: 0.937, blue: 0.000)
/* Android */
Color.parseColor("#ffef00")Accessibility — WCAG contrast
Aa
#ffef00 on white: 1.19:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ffef00 on black: 17.60:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green93.7%
Blue0.0%
CMYK percentages
Cyan0.0%
Magenta6.3%
Yellow100.0%
Key (black)0.0%
Color previews
#ffef00 text on a black background
contrast 17.60:1
Card sample
#ffef00 text on a white background
contrast 1.19:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ffef00;
Background color
Panel with #ffef00 background
background-color: #ffef00;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ffef00;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 239, 0, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 239, 0, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffef00; background: linear-gradient(135deg, #ffef00, #65FF00);