Skip to content

#f0df9c

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

RGB
240, 223, 156
HSL
48°, 74%, 78%
CMYK
0, 7, 35, 6
Luminance
0.7370

Every format

HEX#f0df9c
RGBrgb(240, 223, 156)
HSLhsl(48, 74%, 78%)
CMYKcmyk(0%, 7%, 35%, 6%)
LABlab(88.8 -3.7 35.0)
LCHlch(88.8 35.2 96.1)
OKLCHoklch(0.902 0.087 95.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green87.5%
Blue61.2%

CMYK percentages

Cyan0.0%
Magenta7.1%
Yellow35.0%
Key (black)5.9%

Color previews

#f0df9c text on a black background

contrast 15.74:1

Card sample

#f0df9c text on a white background

contrast 1.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0df9c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0df9c in the Color Lab