Skip to content

#f2e2bc

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

RGB
242, 226, 188
HSL
42°, 68%, 84%
CMYK
0, 7, 22, 5
Luminance
0.7690

At a glance

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

Hex
#f2e2bc
Hue
42°
yellow
Saturation
68%
vivid
Lightness
84%
light
Brightness
95%
HSV value
Perceived
89%
weighted brightness
Luminance
0.7690
WCAG relative
Temperature
Warm
10/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
16.38:1
Closest name
Wheat
ΔE2000 2.6
Where it sits
Hue42° of 360°
Saturation68%
Lightness84%
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#f2e2bc
RGBrgb(242, 226, 188)
HSLhsl(42, 68%, 84%)
CMYKcmyk(0%, 7%, 22%, 5%)
LABlab(90.3 -0.4 20.6)
LCHlch(90.3 20.6 91.2)
OKLCHoklch(0.916 0.053 87.9)
Decimal15917756
Display P3color(display-p3 0.949 0.886 0.737)

Copy-ready code

/* CSS */
color: #f2e2bc;
background-color: #f2e2bc;
/* Tailwind (arbitrary) */
class="text-[#f2e2bc] bg-[#f2e2bc]"
/* SCSS */
$brand: #f2e2bc;
/* SwiftUI */
Color(red: 0.949, green: 0.886, blue: 0.737)
/* Android */
Color.parseColor("#f2e2bc")
/* Flutter */
Color(0xFFF2E2BC)
/* Python / OpenCV (BGR) */
(188, 226, 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 #f2e2bc · 16.38:1
Use #000000AAA at every size.
Aa
White text · 1.28:1
AA fail · AA large fail · AAA fail
Aa
Black text · 16.38:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #f2e2bc as text scores 1.28:1 on white and 16.38:1 on black.

Accessibility — WCAG contrast

Aa
#f2e2bc on white: 1.28:1
AA ✗ fail · AA-large · AAA
Aa
#f2e2bc on black: 16.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #EBE1BA
deuteranopia · #EFE5BD
tritanopia · #FBDCD7

Color scale — 50 to 950

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

#FBF9F3
#F8F3E8
#f2e2bc
#EDD6A1
#E4C272
#DBAE43
#CD9C28
#AB8221
#89681B
#634D17
#3E300E
Base = 200Lightest = 50 · #FBF9F3Darkest = 950 · #3E300E
:root {
  --brand-50: #FBF9F3;
  --brand-100: #F8F3E8;
  --brand-200: #f2e2bc;
  --brand-300: #EDD6A1;
  --brand-400: #E4C272;
  --brand-500: #DBAE43;
  --brand-600: #CD9C28;
  --brand-700: #AB8221;
  --brand-800: #89681B;
  --brand-900: #634D17;
  --brand-950: #3E300E;
  --brand: #f2e2bc;
  --brand-ink: #000000;
}

Colors that work with #f2e2bc

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#1C6EB0
Second voice, not a rival
Dark variant#6B5115
Hover, pressed, headers
Light variant#FBF6EA
Selected rows, tints
Dark surface#241F14
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 #f2e2bc

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#BCCCF2
Analogous left#F2C7BC
Analogous right#E7F2BC
Split-complement 1#BCE7F2
Split-complement 2#C7BCF2
Triadic 1#BCF2E2
Triadic 2#E2BCF2
Tetradic#BCF2C7

RGB percentages

Red94.9%
Green88.6%
Blue73.7%

CMYK percentages

Cyan0.0%
Magenta6.6%
Yellow22.3%
Key (black)5.1%

Color previews

#f2e2bc text on a black background

contrast 16.38:1

Card sample

#f2e2bc text on a white background

contrast 1.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2e2bc

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.

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

#f2e2bc, answered

What color is #f2e2bc?

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

What is the RGB value of #f2e2bc?

rgb(242, 226, 188) — 242 red, 226 green and 188 blue out of 255, or 94.9% / 88.6% / 73.7% by channel.

Is #f2e2bc a light or a dark color?

It is a light color. Relative luminance is 0.7690 and perceived brightness is 89%, so black text on it reaches 16.38:1.

Should I use black or white text on #f2e2bc?

Black. It scores 16.38:1 against #f2e2bc, versus 1.28:1 for white — AAA at any size.

What is the complementary color of #f2e2bc?

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

What colors go well with #f2e2bc?

For interface work: #FAF9F4 as the surface, #EDDFC0 for borders, #9B834B for secondary text, #1C6EB0 as an accent and #6B5115 for hover and pressed states. For a palette, the analogous pair #F2C7BC and #E7F2BC stays calm, while #BCCCF2 is the loudest partner.

What is #f2e2bc in CMYK for printing?

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

Is #f2e2bc 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 #F2D6BC; nudged cooler, #EFF3BB.

Work with #f2e2bc in the Color Lab