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