Skip to content

#f0dbac

a light, vivid yellow · warm · closest name: tan

RGB
240, 219, 172
HSL
42°, 69%, 81%
CMYK
0, 9, 28, 6
Luminance
0.7217

Every format

HEX#f0dbac
RGBrgb(240, 219, 172)
HSLhsl(42, 69%, 81%)
CMYKcmyk(0%, 9%, 28%, 6%)
LABlab(88.0 0.3 25.8)
LCHlch(88.0 25.8 89.4)
OKLCHoklch(0.897 0.065 86.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0dbac on white: 1.36:1
AA ✗ fail · AA-large · AAA
Aa
#f0dbac on black: 15.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green85.9%
Blue67.5%

CMYK percentages

Cyan0.0%
Magenta8.8%
Yellow28.3%
Key (black)5.9%

Color previews

#f0dbac text on a black background

contrast 15.43:1

Card sample

#f0dbac text on a white background

contrast 1.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0dbac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0dbac in the Color Lab