Skip to content

#f0d8af

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

RGB
240, 216, 175
HSL
38°, 68%, 81%
CMYK
0, 10, 27, 6
Luminance
0.7073

Every format

HEX#f0d8af
RGBrgb(240, 216, 175)
HSLhsl(38, 68%, 81%)
CMYKcmyk(0%, 10%, 27%, 6%)
LABlab(87.4 2.2 23.3)
LCHlch(87.4 23.4 84.6)
OKLCHoklch(0.892 0.060 81.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0d8af on white: 1.39:1
AA ✗ fail · AA-large · AAA
Aa
#f0d8af on black: 15.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green84.7%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta10.0%
Yellow27.1%
Key (black)5.9%

Color previews

#f0d8af text on a black background

contrast 15.15:1

Card sample

#f0d8af text on a white background

contrast 1.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0d8af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0d8af in the Color Lab