#ce9a21
a balanced, vivid yellow · warm · closest name: peru
RGB
206, 154, 33
HSL
42°, 72%, 47%
CMYK
0, 25, 84, 19
Luminance
0.3634
Every format
| HEX | #ce9a21 |
| RGB | rgb(206, 154, 33) |
| HSL | hsl(42, 72%, 47%) |
| CMYK | cmyk(0%, 25%, 84%, 19%) |
| LAB | lab(66.8 9.2 64.6) |
| LCH | lch(66.8 65.3 81.9) |
| OKLCH | oklch(0.717 0.139 82.6) |
Copy-ready code
/* CSS */
color: #ce9a21;
background-color: #ce9a21;
/* Tailwind (arbitrary) */
class="text-[#ce9a21] bg-[#ce9a21]"
/* SCSS */
$brand: #ce9a21;
/* SwiftUI */
Color(red: 0.808, green: 0.604, blue: 0.129)
/* Android */
Color.parseColor("#ce9a21")Accessibility — WCAG contrast
Aa
#ce9a21 on white: 2.54:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ce9a21 on black: 8.27:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.8%
Green60.4%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta25.2%
Yellow84.0%
Key (black)19.2%
Color previews
#ce9a21 text on a black background
contrast 8.27:1
Card sample
#ce9a21 text on a white background
contrast 2.54:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ce9a21;
Background color
Panel with #ce9a21 background
background-color: #ce9a21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ce9a21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(206, 154, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 154, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ce9a21; background: linear-gradient(135deg, #ce9a21, #8FCE21);