#504c01
a deep, electric yellow · cool · closest name: olive
RGB
80, 76, 1
HSL
57°, 98%, 16%
CMYK
0, 5, 99, 69
Luminance
0.0688
Every format
| HEX | #504c01 |
| RGB | rgb(80, 76, 1) |
| HSL | hsl(57, 98%, 16%) |
| CMYK | cmyk(0%, 5%, 99%, 69%) |
| LAB | lab(31.5 -6.9 39.4) |
| LCH | lch(31.5 40.0 99.9) |
| OKLCH | oklch(0.407 0.086 106.2) |
Copy-ready code
/* CSS */
color: #504c01;
background-color: #504c01;
/* Tailwind (arbitrary) */
class="text-[#504c01] bg-[#504c01]"
/* SCSS */
$brand: #504c01;
/* SwiftUI */
Color(red: 0.314, green: 0.298, blue: 0.004)
/* Android */
Color.parseColor("#504c01")Accessibility — WCAG contrast
Aa
#504c01 on white: 8.84:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#504c01 on black: 2.38:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.4%
Green29.8%
Blue0.4%
CMYK percentages
Cyan0.0%
Magenta5.0%
Yellow98.8%
Key (black)68.6%
Color previews
#504c01 text on a black background
contrast 2.38:1
Card sample
#504c01 text on a white background
contrast 8.84:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #504c01;
Background color
Panel with #504c01 background
background-color: #504c01;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #504c01;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(80, 76, 1, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 76, 1, 0.45);
Border & gradient
Gradient panel
border: 3px solid #504c01; background: linear-gradient(135deg, #504c01, #1F5001);