#f2daaa
a light, vivid yellow · warm · closest name: tan
RGB
242, 218, 170
HSL
40°, 74%, 81%
CMYK
0, 10, 30, 5
Luminance
0.7192
Every format
| HEX | #f2daaa |
| RGB | rgb(242, 218, 170) |
| HSL | hsl(40, 74%, 81%) |
| CMYK | cmyk(0%, 10%, 30%, 5%) |
| LAB | lab(87.9 1.3 26.7) |
| LCH | lch(87.9 26.7 87.3) |
| OKLCH | oklch(0.896 0.068 84.4) |
Copy-ready code
/* CSS */
color: #f2daaa;
background-color: #f2daaa;
/* Tailwind (arbitrary) */
class="text-[#f2daaa] bg-[#f2daaa]"
/* SCSS */
$brand: #f2daaa;
/* SwiftUI */
Color(red: 0.949, green: 0.855, blue: 0.667)
/* Android */
Color.parseColor("#f2daaa")Accessibility — WCAG contrast
Aa
#f2daaa on white: 1.37:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f2daaa on black: 15.38:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.9%
Green85.5%
Blue66.7%
CMYK percentages
Cyan0.0%
Magenta9.9%
Yellow29.8%
Key (black)5.1%
Color previews
#f2daaa text on a black background
contrast 15.38:1
Card sample
#f2daaa text on a white background
contrast 1.37:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f2daaa;
Background color
Panel with #f2daaa background
background-color: #f2daaa;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f2daaa;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(242, 218, 170, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 218, 170, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2daaa; background: linear-gradient(135deg, #f2daaa, #DAF2AA);