Skip to content

#f0dbaf

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

RGB
240, 219, 175
HSL
41°, 68%, 81%
CMYK
0, 9, 27, 6
Luminance
0.7228

Every format

HEX#f0dbaf
RGBrgb(240, 219, 175)
HSLhsl(41, 68%, 81%)
CMYKcmyk(0%, 9%, 27%, 6%)
LABlab(88.1 0.7 24.3)
LCHlch(88.1 24.3 88.5)
OKLCHoklch(0.898 0.062 85.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green85.9%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta8.8%
Yellow27.1%
Key (black)5.9%

Color previews

#f0dbaf text on a black background

contrast 15.46:1

Card sample

#f0dbaf text on a white background

contrast 1.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0dbaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0dbaf in the Color Lab