Skip to content

#f0dfb1

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

RGB
240, 223, 177
HSL
44°, 68%, 82%
CMYK
0, 7, 26, 6
Luminance
0.7447

At a glance

Every number on this page in one read: what #f0dfb1 is made of, how bright it looks, and which way it leans.

Hex
#f0dfb1
Hue
44°
yellow
Saturation
68%
vivid
Lightness
82%
light
Brightness
94%
HSV value
Perceived
88%
weighted brightness
Luminance
0.7447
WCAG relative
Temperature
Warm
12/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
15.89:1
Closest name
Wheat
ΔE2000 2.5
Where it sits
Hue44° of 360°
Saturation68%
Lightness82%
Temperature
Warm ← → Cool12% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#f0dfb1
RGBrgb(240, 223, 177)
HSLhsl(44, 68%, 82%)
CMYKcmyk(0%, 7%, 26%, 6%)
LABlab(89.2 -1.1 24.7)
LCHlch(89.2 24.7 92.6)
OKLCHoklch(0.906 0.063 90.2)
Decimal15785905
Display P3color(display-p3 0.941 0.875 0.694)

Copy-ready code

/* CSS */
color: #f0dfb1;
background-color: #f0dfb1;
/* Tailwind (arbitrary) */
class="text-[#f0dfb1] bg-[#f0dfb1]"
/* SCSS */
$brand: #f0dfb1;
/* SwiftUI */
Color(red: 0.941, green: 0.875, blue: 0.694)
/* Android */
Color.parseColor("#f0dfb1")
/* Flutter */
Color(0xFFF0DFB1)
/* Python / OpenCV (BGR) */
(177, 223, 240)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #f0dfb1 · 15.89:1
Use #000000AAA at every size.
Aa
White text · 1.32:1
AA fail · AA large fail · AAA fail
Aa
Black text · 15.89:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #f0dfb1 as text scores 1.32:1 on white and 15.89:1 on black.

Accessibility — WCAG contrast

Aa
#f0dfb1 on white: 1.32:1
AA ✗ fail · AA-large · AAA
Aa
#f0dfb1 on black: 15.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #EADDAE
deuteranopia · #EEE2B2
tritanopia · #FAD8D2

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #f0dfb1 is pinned to step 300; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FBF9F3
#F8F3E8
#F2E7CA
#f0dfb1
#E4C572
#DBB243
#CDA128
#AB8621
#896B1A
#634F17
#3E310E
Base = 300Lightest = 50 · #FBF9F3Darkest = 950 · #3E310E
:root {
  --brand-50: #FBF9F3;
  --brand-100: #F8F3E8;
  --brand-200: #F2E7CA;
  --brand-300: #f0dfb1;
  --brand-400: #E4C572;
  --brand-500: #DBB243;
  --brand-600: #CDA128;
  --brand-700: #AB8621;
  --brand-800: #896B1A;
  --brand-900: #634F17;
  --brand-950: #3E310E;
  --brand: #f0dfb1;
  --brand-ink: #000000;
}

Colors that work with #f0dfb1

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAF9F4
Tinted page background
Border#EDE1C0
Hairlines and dividers
Muted text#9B854B
Captions on the surface
Accent#1D69AF
Second voice, not a rival
Dark variant#6B5415
Hover, pressed, headers
Light variant#FBF6EA
Selected rows, tints
Dark surface#242014
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #f0dfb1

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • Thin strokes and 1px borders — they disappear on light UI
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#B1C2F0
Analogous left#F0C0B1
Analogous right#E2F0B1
Split-complement 1#B1E2F0
Split-complement 2#C0B1F0
Triadic 1#B1F0DF
Triadic 2#DFB1F0
Tetradic#B1F0C0

RGB percentages

Red94.1%
Green87.5%
Blue69.4%

CMYK percentages

Cyan0.0%
Magenta7.1%
Yellow26.3%
Key (black)5.9%

Color previews

#f0dfb1 text on a black background

contrast 15.89:1

Card sample

#f0dfb1 text on a white background

contrast 1.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0dfb1

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#f0dfb1 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
RetailLeisureEnergyWarning systems
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Converts to four-color process without much drama. Proof it anyway.

#f0dfb1, answered

What color is #f0dfb1?

#f0dfb1 is a light vivid yellow, closest to Wheat (ΔE2000 2.5). It sits at 44° on the hue wheel with 68% saturation and 82% lightness, which reads as warm.

What is the RGB value of #f0dfb1?

rgb(240, 223, 177) — 240 red, 223 green and 177 blue out of 255, or 94.1% / 87.5% / 69.4% by channel.

Is #f0dfb1 a light or a dark color?

It is a light color. Relative luminance is 0.7447 and perceived brightness is 88%, so black text on it reaches 15.89:1.

Should I use black or white text on #f0dfb1?

Black. It scores 15.89:1 against #f0dfb1, versus 1.32:1 for white — AAA at any size.

What is the complementary color of #f0dfb1?

#B1C2F0 sits directly opposite on the wheel. Softer options are the split-complements #B1E2F0 and #C0B1F0, which give the same contrast with far less vibration.

What colors go well with #f0dfb1?

For interface work: #FAF9F4 as the surface, #EDE1C0 for borders, #9B854B for secondary text, #1D69AF as an accent and #6B5415 for hover and pressed states. For a palette, the analogous pair #F0C0B1 and #E2F0B1 stays calm, while #B1C2F0 is the loudest partner.

What is #f0dfb1 in CMYK for printing?

cmyk(0%, 7%, 26%, 6%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #f0dfb1 warm or cool?

Warm — it scores 12 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F0D0B1; nudged cooler, #EBF1B0.

Work with #f0dfb1 in the Color Lab