#cdcf28
a balanced, vivid yellow · cool · closest name: gold
RGB
205, 207, 40
HSL
61°, 68%, 48%
CMYK
1, 0, 81, 19
Luminance
0.5776
Every format
| HEX | #cdcf28 |
| RGB | rgb(205, 207, 40) |
| HSL | hsl(61, 68%, 48%) |
| CMYK | cmyk(1%, 0%, 81%, 19%) |
| LAB | lab(80.6 -18.6 74.5) |
| LCH | lch(80.6 76.7 104.0) |
| OKLCH | oklch(0.826 0.172 110.4) |
Copy-ready code
/* CSS */
color: #cdcf28;
background-color: #cdcf28;
/* Tailwind (arbitrary) */
class="text-[#cdcf28] bg-[#cdcf28]"
/* SCSS */
$brand: #cdcf28;
/* SwiftUI */
Color(red: 0.804, green: 0.812, blue: 0.157)
/* Android */
Color.parseColor("#cdcf28")Accessibility — WCAG contrast
Aa
#cdcf28 on white: 1.67:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cdcf28 on black: 12.55:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.4%
Green81.2%
Blue15.7%
CMYK percentages
Cyan1.0%
Magenta0.0%
Yellow80.7%
Key (black)18.8%
Color previews
#cdcf28 text on a black background
contrast 12.55:1
Card sample
#cdcf28 text on a white background
contrast 1.67:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cdcf28;
Background color
Panel with #cdcf28 background
background-color: #cdcf28;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cdcf28;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(205, 207, 40, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 207, 40, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdcf28; background: linear-gradient(135deg, #cdcf28, #5ECF28);