Skip to content

#f2df9c

a light, electric yellow · cool · closest name: khaki

RGB
242, 223, 156
HSL
47°, 77%, 78%
CMYK
0, 8, 36, 5
Luminance
0.7405

Every format

HEX#f2df9c
RGBrgb(242, 223, 156)
HSLhsl(47, 77%, 78%)
CMYKcmyk(0%, 8%, 36%, 5%)
LABlab(89.0 -3.0 35.2)
LCHlch(89.0 35.4 94.8)
OKLCHoklch(0.904 0.088 94.2)

Copy-ready code

/* CSS */
color: #f2df9c;
background-color: #f2df9c;
/* Tailwind (arbitrary) */
class="text-[#f2df9c] bg-[#f2df9c]"
/* SCSS */
$brand: #f2df9c;
/* SwiftUI */
Color(red: 0.949, green: 0.875, blue: 0.612)
/* Android */
Color.parseColor("#f2df9c")

Accessibility — WCAG contrast

Aa
#f2df9c on white: 1.33:1
AA ✗ fail · AA-large · AAA
Aa
#f2df9c on black: 15.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green87.5%
Blue61.2%

CMYK percentages

Cyan0.0%
Magenta7.9%
Yellow35.5%
Key (black)5.1%

Color previews

#f2df9c text on a black background

contrast 15.81:1

Card sample

#f2df9c text on a white background

contrast 1.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #f2df9c;
Background color
Panel with #f2df9c background
background-color: #f2df9c;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #f2df9c;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(242, 223, 156, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 223, 156, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2df9c;
background: linear-gradient(135deg, #f2df9c, #CCF29C);

Monochromatic scale

Palettes built from #f2df9c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2df9c in the Color Lab