#f2cf98
a light, electric orange · warm · closest name: tan
RGB
242, 207, 152
HSL
37°, 78%, 77%
CMYK
0, 15, 37, 5
Luminance
0.6577
Every format
| HEX | #f2cf98 |
| RGB | rgb(242, 207, 152) |
| HSL | hsl(37, 78%, 77%) |
| CMYK | cmyk(0%, 15%, 37%, 5%) |
| LAB | lab(84.9 4.8 31.9) |
| LCH | lch(84.9 32.3 81.5) |
| OKLCH | oklch(0.872 0.081 78.6) |
Copy-ready code
/* CSS */
color: #f2cf98;
background-color: #f2cf98;
/* Tailwind (arbitrary) */
class="text-[#f2cf98] bg-[#f2cf98]"
/* SCSS */
$brand: #f2cf98;
/* SwiftUI */
Color(red: 0.949, green: 0.812, blue: 0.596)
/* Android */
Color.parseColor("#f2cf98")Accessibility — WCAG contrast
Aa
#f2cf98 on white: 1.48:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f2cf98 on black: 14.15:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.9%
Green81.2%
Blue59.6%
CMYK percentages
Cyan0.0%
Magenta14.5%
Yellow37.2%
Key (black)5.1%
Color previews
#f2cf98 text on a black background
contrast 14.15:1
Card sample
#f2cf98 text on a white background
contrast 1.48:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f2cf98;
Background color
Panel with #f2cf98 background
background-color: #f2cf98;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f2cf98;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(242, 207, 152, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 207, 152, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2cf98; background: linear-gradient(135deg, #f2cf98, #D9F298);