#f2e2bc
a light, vivid yellow · warm · closest name: Wheat
Token name suggestion: Morning Honey
#f2e2bc is a light vivid yellow, 42° on the wheel and 10/100 on the cool side. Put black text on it (16.38:1). As text it scores 1.28:1 on white — use #936F1C instead. Nearest name is Wheat, nearest Tailwind family is yellow.
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.
Left edge is grey, right edge is full chroma; top is white, bottom is black. The dot is #f2e2bc.
Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Green carries most of what the eye calls brightness — that is why WCAG weights it 0.7152.
Every format
| HEX | #f2e2bc |
| HEX (8-digit) | #f2e2bcff |
| RGB | rgb(242, 226, 188) |
| RGBA | rgba(242, 226, 188, 1) |
| HSL | hsl(42, 68%, 84%) |
| HSV / HSB | hsv(42, 22%, 95%) |
| HWB | hwb(42 74% 5%) |
| CMYK | cmyk(0%, 7%, 22%, 5%) |
| LAB | lab(90.3 -0.4 20.6) |
| LCH | lch(90.3 20.6 91.2) |
| OKLCH | oklch(0.916 0.053 87.9) |
| XYZ (D65) | xyz(72.89, 76.90, 58.57) |
| Decimal | 15917756 |
| Display P3 | color(display-p3 0.949 0.886 0.737) |
| Web-safe | #FFCCCC |
Copy-ready code
/* CSS */
color: #f2e2bc;
background-color: #f2e2bc;
/* CSS custom property */
--brand: #f2e2bc;
/* Tailwind (arbitrary) */
class="text-[#f2e2bc] bg-[#f2e2bc]"
/* SCSS */
$brand: #f2e2bc;
/* SwiftUI */
Color(red: 0.949, green: 0.886, blue: 0.737)
/* UIKit */
UIColor(red: 0.949, green: 0.886, blue: 0.737, alpha: 1)
/* Android XML */
<color name="brand">#F2E2BC</color>
/* Android Compose */
Color(0xFFF2E2BC)
/* Flutter */
Color(0xFFF2E2BC)
/* Python / OpenCV (BGR) */
(188, 226, 242)
/* Python / PIL (RGB) */
(242, 226, 188)
/* Java AWT */
new Color(242, 226, 188)
/* .NET */
Color.FromArgb(255, 242, 226, 188)
/* OpenGL / Unity (0–1) */
(0.9490f, 0.8863f, 0.7373f, 1f)
/* LaTeX */
\definecolor{brand}{RGB}{242,226,188}/* mix without leaving CSS */ background: color-mix(in oklab, #f2e2bc 85%, white); border-color: color-mix(in oklab, #f2e2bc 40%, transparent); /* theme-aware in one line */ color: light-dark(#6B5115, #EEE6D3); /* relative colour syntax */ --hover: hsl(from #f2e2bc h s calc(l - 7));
Design tokens
The same ramp in the four formats a team actually needs. Paste one and the whole palette lands with it.
: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;
--brand-surface: #FAF9F4;
--brand-border: #EDDFC0;
--brand-hover: #ECD59E;
--brand-pressed: #E6C880;
}
@media (prefers-color-scheme: dark) {
:root {
--brand-surface: #241F14;
--brand-ink: #EEE6D3;
}
}theme: {
extend: {
colors: {
brand: {
50: '#FBF9F3',
100: '#F8F3E8',
200: '#f2e2bc',
300: '#EDD6A1',
400: '#E4C272',
500: '#DBAE43',
600: '#CD9C28',
700: '#AB8221',
800: '#89681B',
900: '#634D17',
950: '#3E300E',
DEFAULT: '#f2e2bc',
},
},
},
}$brand: (
'50': #FBF9F3,
'100': #F8F3E8,
'200': #f2e2bc,
'300': #EDD6A1,
'400': #E4C272,
'500': #DBAE43,
'600': #CD9C28,
'700': #AB8221,
'800': #89681B,
'900': #634D17,
'950': #3E300E,
);
$brand-base: #f2e2bc;
$brand-ink: #000000;
@function brand($step) { @return map-get($brand, $step); }{
"color": {
"brand": {
"50": { "$value": "#FBF9F3", "$type": "color" },
"100": { "$value": "#F8F3E8", "$type": "color" },
"200": { "$value": "#f2e2bc", "$type": "color" },
"300": { "$value": "#EDD6A1", "$type": "color" },
"400": { "$value": "#E4C272", "$type": "color" },
"500": { "$value": "#DBAE43", "$type": "color" },
"600": { "$value": "#CD9C28", "$type": "color" },
"700": { "$value": "#AB8221", "$type": "color" },
"800": { "$value": "#89681B", "$type": "color" },
"900": { "$value": "#634D17", "$type": "color" },
"950": { "$value": "#3E300E", "$type": "color" }
},
"brandInk": { "$value": "#000000", "$type": "color" }
}
}Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Make it accessible
A contrast checker tells you that you failed. This tells you what to ship instead — same hue, same saturation, lightness moved only as far as WCAG demands.
Large text — 24px regular or 18.66px bold and above — only needs 3:1, so #B98D24 is enough for headings on white. Non-text elements such as icons, chart strokes and focus rings also sit at 3:1 under WCAG 2.2 (1.4.11).
Accessibility — WCAG contrast
Contrast is symmetric, so each row covers both directions: #f2e2bc as text on that neutral, and that neutral as text on #f2e2bc.
| Neutral | Ratio | Verdict | Both directions |
|---|---|---|---|
| White#ffffff | 1.28:1 | AAAA lgAAA | AaAa |
| Slate 50#f8fafc | 1.23:1 | AAAA lgAAA | AaAa |
| Slate 100#f1f5f9 | 1.17:1 | AAAA lgAAA | AaAa |
| Slate 200#e2e8f0 | 1.04:1 | AAAA lgAAA | AaAa |
| Slate 300#cbd5e1 | 1.16:1 | AAAA lgAAA | AaAa |
| Slate 400#94a3b8 | 2.00:1 | AAAA lgAAA | AaAa |
| Slate 500#64748b | 3.71:1 | AAAA lgAAA | AaAa |
| Slate 600#475569 | 5.91:1 | AAAA lgAAA | AaAa |
| Slate 700#334155 | 8.08:1 | AAAA lgAAA | AaAa |
| Slate 800#1e293b | 11.41:1 | AAAA lgAAA | AaAa |
| Slate 900#0f172a | 13.93:1 | AAAA lgAAA | AaAa |
| Black#000000 | 16.38:1 | AAAA lgAAA | AaAa |
Roughly one man in twelve has some form of colour vision deficiency. If any of the three panels above is hard to tell apart from a neighbouring colour in your palette, add a shape, an icon or a label so the meaning does not rest on hue alone.
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.
The same eleven steps expressed in OKLCH, where equal lightness numbers actually look equally spaced. HSL ramps go muddy in the yellows and washed out in the blues; this one does not. Modern browsers render it natively — the hex ramp above is the fallback.
:root {
--brand-50: oklch(0.97 0.013 87.9);
--brand-100: oklch(0.94 0.021 87.9);
--brand-200: oklch(0.88 0.032 87.9);
--brand-300: oklch(0.80 0.041 87.9);
--brand-400: oklch(0.72 0.048 87.9);
--brand-500: oklch(0.64 0.053 87.9);
--brand-600: oklch(0.56 0.053 87.9);
--brand-700: oklch(0.48 0.050 87.9);
--brand-800: oklch(0.40 0.044 87.9);
--brand-900: oklch(0.32 0.037 87.9);
--brand-950: oklch(0.24 0.029 87.9);
}Colors that work with #f2e2bc
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
In real components
The same eight roles, wired into the interface patterns you will actually build with them. Every state below is a computed value, not a mock-up.
Focus ring uses the light variant so the field still reads as one shape.
The file stays available for seven days. Download it before it expires.
How to use #f2e2bc
Derived from its contrast, chroma and lightness — not from taste.
- ✓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
- ⚠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
Meaning and mood
What a colour in this family tends to signal, and how this particular chroma and lightness change the reading.
The most visible hue at low light levels, which is why it owns warnings, hazard tape and value retail.
This is a confident chroma: strong enough to lead a brand, restrained enough to live in an interface all day. The lightness keeps it airy and approachable.
Almost never passes contrast against white. Treat it as a surface or a marker, not as text.
- FormalityMedium
- EnergyMedium-high
- Weight16/100
- TemperatureWarm
- ApproachabilityHigh
Colour associations are cultural and vary by market. Treat these as a starting point for a conversation with your audience, not a finding about them.
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 | Directly opposite — maximum tension | |
| Analogous left | #F2C7BC | Neighbour, quieter | |
| Analogous right | #E7F2BC | Neighbour, quieter | |
| Split-complement 1 | #BCE7F2 | Contrast without the clash | |
| Split-complement 2 | #C7BCF2 | Contrast without the clash | |
| Triadic 1 | #BCF2E2 | Even thirds — balanced and loud | |
| Triadic 2 | #E2BCF2 | Even thirds — balanced and loud | |
| Tetradic | #BCF2C7 | Fourth corner of the square scheme |
#f2e2bc sits at 42°. Every dot is a harmony position and links to its own page in the table alongside.
RGB percentages
CMYK percentages
Total ink coverage is 34%. Most commercial presses cap around 300% — above that, sheets stop drying properly.
Color previews
#f2e2bc text on a black background
contrast 16.38:1
#f2e2bc text on a white background
contrast 1.28:1
#f2e2bc on grey
1.17:1
#f2e2bc on its own surface
1.22:1
#f2e2bc on its dark surface
12.79:1
CSS3 live lab
The quick brown fox
color: #f2e2bc;
background-color: #f2e2bc;
Glowing headline
text-shadow: 2px 2px 8px #f2e2bc;
Soft neon halo
text-shadow: 0 0 14px rgba(242, 226, 188, 0.45);
box-shadow: 0 12px 32px -8px rgba(242, 226, 188, 0.45);
border: 3px solid #f2e2bc; background: linear-gradient(135deg, #f2e2bc, #DEF2BC);
Gradient headline
background: linear-gradient(90deg, #f2e2bc, #D0F2BC); -webkit-background-clip: text; color: transparent;
outline: 2px solid #f2e2bc; outline-offset: 3px;
Marked up text
text-decoration-color: #f2e2bc; caret-color: #f2e2bc;
border-left: 4px solid #f2e2bc;
background: #FBF6EA; box-shadow: inset 0 0 0 2px #f2e2bc;
background: conic-gradient(#f2e2bc 68%, #e2e8f0 0);
Transparency
What each alpha value actually composites to. The top row is #f2e2bc over white; the bottom row is the same alpha over a checkerboard, so you can see what survives on a photo or a video.
Bottom row of hexes is the flattened result over white — use those when a design tool refuses transparency, or when you need a solid fallback.
rgba(242, 226, 188, 0.5) rgb(242 226 188 / 50%) #f2e2bc80 hsl(42 68% 84% / 50%) color-mix(in srgb, #f2e2bc 50%, transparent)
| Alpha | 8-digit hex | Flat on white |
|---|---|---|
| 10% | #f2e2bc1a | #FEFCF8 |
| 20% | #f2e2bc33 | #FCF9F2 |
| 40% | #f2e2bc66 | #FAF3E4 |
| 60% | #f2e2bc99 | #F7EED7 |
| 80% | #f2e2bccc | #F5E8C9 |
Gradients from #f2e2bc
Six recipes, each built from this hex and shown with the exact CSS that produced it.
background: linear-gradient(135deg, #FCF8EE, #f2e2bc 45%, #6B5115);
background: linear-gradient(120deg, #f2e2bc, #CBEDA2);
background: linear-gradient(90deg, #f2e2bc, #BCCCF2);
background: radial-gradient(120% 120% at 20% 0%, #FDF9F2 0%, #f2e2bc 45%, #6B5115 100%);
background: linear-gradient(180deg, #FAF9F4, #ffffff);
background: radial-gradient(60% 60% at 15% 20%, #FAE9E7 0%, transparent 60%), radial-gradient(55% 55% at 85% 15%, #EDF7D6 0%, transparent 60%), radial-gradient(70% 70% at 50% 95%, #6B5115 0%, transparent 65%), #f2e2bc;
Monochromatic scale
Palettes built from #f2e2bc
Shades — darker
Tints — lighter
Tones — desaturated
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.
Closest color with a full write-up: Wheat (#f5deb3) — ΔE2000 2.6 away, with its history, psychology and brand usage.
#f2e2bc in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
Holds up across typical panel gamma. Still worth checking on an uncalibrated laptop, where mid-tones shift most.
Usable as-is on a dark surface at 16.38:1.
Explore nearby colors
Small, deliberate steps away from this hex — useful when you are hunting for the version of a colour that finally feels right.
#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.
What is #f2e2bc in HSL and HSV?
hsl(42, 68%, 84%) and hsv(42, 22%, 95%). HSL is what CSS takes; HSV is what your design tool's picker shows, which is why the saturation numbers rarely match.
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.
Is #f2e2bc accessible on a white background?
#f2e2bc on white scores 1.28:1, which fails WCAG AA at every size. Darken it to #936F1C to reach 4.5:1, or #705516 for 7:1.
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.
Which Tailwind color is closest to #f2e2bc?
The yellow family — its 500 step is #eab308, ΔE2000 20.5 away. That is a visible difference, so define #f2e2bc as a custom token rather than reaching for the built-in.
How do I use #f2e2bc in Tailwind CSS?
Inline it as an arbitrary value with bg-[#f2e2bc] or text-[#f2e2bc], or register the whole ramp under theme.extend.colors.brand so you get bg-brand-500 and friends. The generated 50–950 scale on this page is ready to paste into your config.
What is #f2e2bc with 50% opacity?
rgba(242, 226, 188, 0.5), or #f2e2bc80 in eight-digit hex. Over white that composites to #F9F1DE; over black, #79715E.
Is #f2e2bc a web-safe color?
No. The nearest web-safe colour is #FFCCCC, ΔE2000 22.7 away. The palette only matters for legacy displays and some email clients now.
What does the color #f2e2bc mean?
As a yellow, it reads optimistic, alert, cheap-and-cheerful. The most visible hue at low light levels, which is why it owns warnings, hazard tape and value retail. At this chroma the effect is amplified — it will dominate whatever sits beside it.
What gradient works with #f2e2bc?
The safest is same-hue elevation: linear-gradient(135deg, #FCF8EE, #f2e2bc 45%, #6B5115). For more colour, a short hue run to #CBEDA2 keeps it rich without turning muddy.
Work with #f2e2bc in the Color Lab
Every tool opens with this colour already loaded.
Every value on this page is computed from #f2e2bc at request time — conversions, contrast ratios and ΔE distances are calculated, never looked up.