#cfcf7c
a balanced, vivid yellow · cool · closest name: khaki
RGB
207, 207, 124
HSL
60°, 46%, 65%
CMYK
0, 0, 40, 19
Luminance
0.5935
Every format
| HEX | #cfcf7c |
| RGB | rgb(207, 207, 124) |
| HSL | hsl(60, 46%, 65%) |
| CMYK | cmyk(0%, 0%, 40%, 19%) |
| LAB | lab(81.5 -12.1 41.2) |
| LCH | lch(81.5 42.9 106.3) |
| OKLCH | oklch(0.836 0.105 108.5) |
Copy-ready code
/* CSS */
color: #cfcf7c;
background-color: #cfcf7c;
/* Tailwind (arbitrary) */
class="text-[#cfcf7c] bg-[#cfcf7c]"
/* SCSS */
$brand: #cfcf7c;
/* SwiftUI */
Color(red: 0.812, green: 0.812, blue: 0.486)
/* Android */
Color.parseColor("#cfcf7c")Accessibility — WCAG contrast
Aa
#cfcf7c on white: 1.63:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cfcf7c on black: 12.87:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red81.2%
Green81.2%
Blue48.6%
CMYK percentages
Cyan0.0%
Magenta0.0%
Yellow40.1%
Key (black)18.8%
Color previews
#cfcf7c text on a black background
contrast 12.87:1
Card sample
#cfcf7c text on a white background
contrast 1.63:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cfcf7c;
Background color
Panel with #cfcf7c background
background-color: #cfcf7c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cfcf7c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(207, 207, 124, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 207, 124, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfcf7c; background: linear-gradient(135deg, #cfcf7c, #98CF7C);