#cfcf21
a balanced, vivid yellow · cool · closest name: gold
RGB
207, 207, 33
HSL
60°, 73%, 47%
CMYK
0, 0, 84, 19
Luminance
0.5800
Every format
| HEX | #cfcf21 |
| RGB | rgb(207, 207, 33) |
| HSL | hsl(60, 73%, 47%) |
| CMYK | cmyk(0%, 0%, 84%, 19%) |
| LAB | lab(80.7 -17.9 76.3) |
| LCH | lch(80.7 78.4 103.2) |
| OKLCH | oklch(0.828 0.174 109.7) |
Copy-ready code
/* CSS */
color: #cfcf21;
background-color: #cfcf21;
/* Tailwind (arbitrary) */
class="text-[#cfcf21] bg-[#cfcf21]"
/* SCSS */
$brand: #cfcf21;
/* SwiftUI */
Color(red: 0.812, green: 0.812, blue: 0.129)
/* Android */
Color.parseColor("#cfcf21")Accessibility — WCAG contrast
Aa
#cfcf21 on white: 1.67:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cfcf21 on black: 12.60:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red81.2%
Green81.2%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta0.0%
Yellow84.1%
Key (black)18.8%
Color previews
#cfcf21 text on a black background
contrast 12.60:1
Card sample
#cfcf21 text on a white background
contrast 1.67:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cfcf21;
Background color
Panel with #cfcf21 background
background-color: #cfcf21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cfcf21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(207, 207, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 207, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfcf21; background: linear-gradient(135deg, #cfcf21, #5BCF21);