#ceac28
a balanced, vivid yellow · cool · closest name: olive
RGB
206, 172, 40
HSL
48°, 68%, 48%
CMYK
0, 17, 81, 19
Luminance
0.4278
Every format
| HEX | #ceac28 |
| RGB | rgb(206, 172, 40) |
| HSL | hsl(48, 68%, 48%) |
| CMYK | cmyk(0%, 17%, 81%, 19%) |
| LAB | lab(71.4 -0.2 66.5) |
| LCH | lch(71.4 66.5 90.2) |
| OKLCH | oklch(0.753 0.144 93.3) |
Copy-ready code
/* CSS */
color: #ceac28;
background-color: #ceac28;
/* Tailwind (arbitrary) */
class="text-[#ceac28] bg-[#ceac28]"
/* SCSS */
$brand: #ceac28;
/* SwiftUI */
Color(red: 0.808, green: 0.675, blue: 0.157)
/* Android */
Color.parseColor("#ceac28")Accessibility — WCAG contrast
Aa
#ceac28 on white: 2.20:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ceac28 on black: 9.56:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.8%
Green67.5%
Blue15.7%
CMYK percentages
Cyan0.0%
Magenta16.5%
Yellow80.6%
Key (black)19.2%
Color previews
#ceac28 text on a black background
contrast 9.56:1
Card sample
#ceac28 text on a white background
contrast 2.20:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ceac28;
Background color
Panel with #ceac28 background
background-color: #ceac28;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ceac28;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(206, 172, 40, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 172, 40, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ceac28; background: linear-gradient(135deg, #ceac28, #81CE28);