#f2cf89
a light, electric yellow · warm · closest name: khaki
RGB
242, 207, 137
HSL
40°, 80%, 74%
CMYK
0, 15, 43, 5
Luminance
0.6531
Every format
| HEX | #f2cf89 |
| RGB | rgb(242, 207, 137) |
| HSL | hsl(40, 80%, 74%) |
| CMYK | cmyk(0%, 15%, 43%, 5%) |
| LAB | lab(84.6 3.2 39.3) |
| LCH | lch(84.6 39.4 85.4) |
| OKLCH | oklch(0.869 0.097 84.0) |
Copy-ready code
/* CSS */
color: #f2cf89;
background-color: #f2cf89;
/* Tailwind (arbitrary) */
class="text-[#f2cf89] bg-[#f2cf89]"
/* SCSS */
$brand: #f2cf89;
/* SwiftUI */
Color(red: 0.949, green: 0.812, blue: 0.537)
/* Android */
Color.parseColor("#f2cf89")Accessibility — WCAG contrast
Aa
#f2cf89 on white: 1.49:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f2cf89 on black: 14.06:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.9%
Green81.2%
Blue53.7%
CMYK percentages
Cyan0.0%
Magenta14.5%
Yellow43.4%
Key (black)5.1%
Color previews
#f2cf89 text on a black background
contrast 14.06:1
Card sample
#f2cf89 text on a white background
contrast 1.49:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f2cf89;
Background color
Panel with #f2cf89 background
background-color: #f2cf89;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f2cf89;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(242, 207, 137, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 207, 137, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2cf89; background: linear-gradient(135deg, #f2cf89, #CFF289);