#cec97f
a light, soft yellow · cool · closest name: khaki
RGB
206, 201, 127
HSL
56°, 45%, 65%
CMYK
0, 2, 38, 19
Luminance
0.5643
Every format
| HEX | #cec97f |
| RGB | rgb(206, 201, 127) |
| HSL | hsl(56, 45%, 65%) |
| CMYK | cmyk(0%, 2%, 38%, 19%) |
| LAB | lab(79.9 -9.1 37.6) |
| LCH | lch(79.9 38.7 103.6) |
| OKLCH | oklch(0.823 0.095 105.0) |
Copy-ready code
/* CSS */
color: #cec97f;
background-color: #cec97f;
/* Tailwind (arbitrary) */
class="text-[#cec97f] bg-[#cec97f]"
/* SCSS */
$brand: #cec97f;
/* SwiftUI */
Color(red: 0.808, green: 0.788, blue: 0.498)
/* Android */
Color.parseColor("#cec97f")Accessibility — WCAG contrast
Aa
#cec97f on white: 1.71:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cec97f on black: 12.29:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.8%
Green78.8%
Blue49.8%
CMYK percentages
Cyan0.0%
Magenta2.4%
Yellow38.3%
Key (black)19.2%
Color previews
#cec97f text on a black background
contrast 12.29:1
Card sample
#cec97f text on a white background
contrast 1.71:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cec97f;
Background color
Panel with #cec97f background
background-color: #cec97f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cec97f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(206, 201, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 201, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cec97f; background: linear-gradient(135deg, #cec97f, #9ECE7F);