Skip to content

#f2ddab

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

RGB
242, 221, 171
HSL
42°, 73%, 81%
CMYK
0, 9, 29, 5
Luminance
0.7353

At a glance

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

Hex
#f2ddab
Hue
42°
yellow
Saturation
73%
vivid
Lightness
81%
light
Brightness
95%
HSV value
Perceived
87%
weighted brightness
Luminance
0.7353
WCAG relative
Temperature
Warm
10/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
15.71:1
Closest name
Wheat
ΔE2000 2.2
Where it sits
Hue42° of 360°
Saturation73%
Lightness81%
Temperature
Warm ← → Cool10% 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#f2ddab
RGBrgb(242, 221, 171)
HSLhsl(42, 73%, 81%)
CMYKcmyk(0%, 9%, 29%, 5%)
LABlab(88.7 -0.1 27.2)
LCHlch(88.7 27.2 90.3)
OKLCHoklch(0.903 0.069 87.9)
Decimal15916459
Display P3color(display-p3 0.949 0.867 0.671)

Copy-ready code

/* CSS */
color: #f2ddab;
background-color: #f2ddab;
/* Tailwind (arbitrary) */
class="text-[#f2ddab] bg-[#f2ddab]"
/* SCSS */
$brand: #f2ddab;
/* SwiftUI */
Color(red: 0.949, green: 0.867, blue: 0.671)
/* Android */
Color.parseColor("#f2ddab")
/* Flutter */
Color(0xFFF2DDAB)
/* Python / OpenCV (BGR) */
(171, 221, 242)

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 #f2ddab · 15.71:1
Use #000000AAA at every size.
Aa
White text · 1.34:1
AA fail · AA large fail · AAA fail
Aa
Black text · 15.71:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #f2ddab as text scores 1.34:1 on white and 15.71:1 on black.

Accessibility — WCAG contrast

Aa
#f2ddab on white: 1.34:1
AA ✗ fail · AA-large · AAA
Aa
#f2ddab on black: 15.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E9DBA8
deuteranopia · #EEE1AC
tritanopia · #FDD5D0

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #f2ddab 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.

#FCF9F3
#F8F3E7
#F3E7C8
#f2ddab
#E8C46D
#E1B03D
#D49F21
#B1851B
#8D6A16
#664E14
#40310C
Base = 300Lightest = 50 · #FCF9F3Darkest = 950 · #40310C
:root {
  --brand-50: #FCF9F3;
  --brand-100: #F8F3E7;
  --brand-200: #F3E7C8;
  --brand-300: #f2ddab;
  --brand-400: #E8C46D;
  --brand-500: #E1B03D;
  --brand-600: #D49F21;
  --brand-700: #B1851B;
  --brand-800: #8D6A16;
  --brand-900: #664E14;
  --brand-950: #40310C;
  --brand: #f2ddab;
  --brand-ink: #000000;
}

Colors that work with #f2ddab

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#EDDFC0
Hairlines and dividers
Muted text#9B834B
Captions on the surface
Accent#176DB5
Second voice, not a rival
Dark variant#6E5311
Hover, pressed, headers
Light variant#FCF6E9
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 #f2ddab

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#ABC0F2
Analogous left#F2BAAB
Analogous right#E3F2AB
Split-complement 1#ABE3F2
Split-complement 2#BAABF2
Triadic 1#ABF2DD
Triadic 2#DDABF2
Tetradic#ABF2BA

RGB percentages

Red94.9%
Green86.7%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta8.7%
Yellow29.3%
Key (black)5.1%

Color previews

#f2ddab text on a black background

contrast 15.71:1

Card sample

#f2ddab text on a white background

contrast 1.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(242, 221, 171, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 221, 171, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2ddab;
background: linear-gradient(135deg, #f2ddab, #D8F2AB);

Monochromatic scale

Palettes built from #f2ddab

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.

#f2ddab 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.

#f2ddab, answered

What color is #f2ddab?

#f2ddab is a light vivid yellow, closest to Wheat (ΔE2000 2.2). It sits at 42° on the hue wheel with 73% saturation and 81% lightness, which reads as warm.

What is the RGB value of #f2ddab?

rgb(242, 221, 171) — 242 red, 221 green and 171 blue out of 255, or 94.9% / 86.7% / 67.1% by channel.

Is #f2ddab a light or a dark color?

It is a light color. Relative luminance is 0.7353 and perceived brightness is 87%, so black text on it reaches 15.71:1.

Should I use black or white text on #f2ddab?

Black. It scores 15.71:1 against #f2ddab, versus 1.34:1 for white — AAA at any size.

What is the complementary color of #f2ddab?

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

What colors go well with #f2ddab?

For interface work: #FAF9F4 as the surface, #EDDFC0 for borders, #9B834B for secondary text, #176DB5 as an accent and #6E5311 for hover and pressed states. For a palette, the analogous pair #F2BAAB and #E3F2AB stays calm, while #ABC0F2 is the loudest partner.

What is #f2ddab in CMYK for printing?

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

Is #f2ddab warm or cool?

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

Work with #f2ddab in the Color Lab