#ffb821
a balanced, electric yellow · warm · closest name: orange
RGB
255, 184, 33
HSL
41°, 100%, 57%
CMYK
0, 28, 87, 0
Luminance
0.5565
Every format
| HEX | #ffb821 |
| RGB | rgb(255, 184, 33) |
| HSL | hsl(41, 100%, 57%) |
| CMYK | cmyk(0%, 28%, 87%, 0%) |
| LAB | lab(79.4 14.4 77.1) |
| LCH | lch(79.4 78.4 79.4) |
| OKLCH | oklch(0.828 0.165 79.3) |
Copy-ready code
/* CSS */
color: #ffb821;
background-color: #ffb821;
/* Tailwind (arbitrary) */
class="text-[#ffb821] bg-[#ffb821]"
/* SCSS */
$brand: #ffb821;
/* SwiftUI */
Color(red: 1.000, green: 0.722, blue: 0.129)
/* Android */
Color.parseColor("#ffb821")Accessibility — WCAG contrast
Aa
#ffb821 on white: 1.73:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ffb821 on black: 12.13:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green72.2%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta27.8%
Yellow87.1%
Key (black)0.0%
Color previews
#ffb821 text on a black background
contrast 12.13:1
Card sample
#ffb821 text on a white background
contrast 1.73:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ffb821;
Background color
Panel with #ffb821 background
background-color: #ffb821;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ffb821;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 184, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 184, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffb821; background: linear-gradient(135deg, #ffb821, #B2FF21);