#f2df94
a light, electric yellow · warm · closest name: Khaki
At a glance
Every number on this page in one read: what #f2df94 is made of, how bright it looks, and which way it leans.
Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #f2df94 |
| RGB | rgb(242, 223, 148) |
| HSL | hsl(48, 78%, 77%) |
| CMYK | cmyk(0%, 8%, 39%, 5%) |
| LAB | lab(88.8 -3.9 39.1) |
| LCH | lch(88.8 39.3 95.6) |
| OKLCH | oklch(0.902 0.097 95.6) |
| Decimal | 15916948 |
| Display P3 | color(display-p3 0.949 0.875 0.580) |
Copy-ready code
/* CSS */
color: #f2df94;
background-color: #f2df94;
/* Tailwind (arbitrary) */
class="text-[#f2df94] bg-[#f2df94]"
/* SCSS */
$brand: #f2df94;
/* SwiftUI */
Color(red: 0.949, green: 0.875, blue: 0.580)
/* Android */
Color.parseColor("#f2df94")
/* Flutter */
Color(0xFFF2DF94)
/* Python / OpenCV (BGR) */
(148, 223, 242)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #f2df94 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.
:root {
--brand-50: #FCFAF3;
--brand-100: #F9F5E6;
--brand-200: #F5EBC7;
--brand-300: #f2df94;
--brand-400: #EDD269;
--brand-500: #E7C337;
--brand-600: #DAB41B;
--brand-700: #B69616;
--brand-800: #917812;
--brand-900: #695811;
--brand-950: #42370B;
--brand: #f2df94;
--brand-ink: #000000;
}Colors that work with #f2df94
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.
How to use #f2df94
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
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 | #94A7F2 | Directly opposite — maximum tension | |
| Analogous left | #F2B094 | Neighbour, quieter | |
| Analogous right | #D6F294 | Neighbour, quieter | |
| Split-complement 1 | #94D6F2 | Contrast without the clash | |
| Split-complement 2 | #B094F2 | Contrast without the clash | |
| Triadic 1 | #94F2DF | Even thirds — balanced and loud | |
| Triadic 2 | #DF94F2 | Even thirds — balanced and loud | |
| Tetradic | #94F2B0 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#f2df94 text on a black background
contrast 15.76:1
#f2df94 text on a white background
contrast 1.33:1
CSS3 live lab
The quick brown fox
color: #f2df94;
background-color: #f2df94;
Glowing headline
text-shadow: 2px 2px 8px #f2df94;
Soft neon halo
text-shadow: 0 0 14px rgba(242, 223, 148, 0.45);
box-shadow: 0 12px 32px -8px rgba(242, 223, 148, 0.45);
border: 3px solid #f2df94; background: linear-gradient(135deg, #f2df94, #C6F294);
Monochromatic scale
Palettes built from #f2df94
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.
Closest color with a full write-up: Peach (#ffe5b4) — ΔE2000 6.7 away, with its history, psychology and brand usage.
#f2df94 in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#f2df94, answered
What color is #f2df94?
#f2df94 is a light electric yellow, closest to Khaki (ΔE2000 3.8). It sits at 48° on the hue wheel with 78% saturation and 77% lightness, which reads as warm.
What is the RGB value of #f2df94?
rgb(242, 223, 148) — 242 red, 223 green and 148 blue out of 255, or 94.9% / 87.5% / 58% by channel.
Is #f2df94 a light or a dark color?
It is a light color. Relative luminance is 0.7379 and perceived brightness is 87%, so black text on it reaches 15.76:1.
Should I use black or white text on #f2df94?
Black. It scores 15.76:1 against #f2df94, versus 1.33:1 for white — AAA at any size.
What is the complementary color of #f2df94?
#94A7F2 sits directly opposite on the wheel. Softer options are the split-complements #94D6F2 and #B094F2, which give the same contrast with far less vibration.
What colors go well with #f2df94?
For interface work: #FAF9F4 as the surface, #EDE4C0 for borders, #9B8B4B for secondary text, #135DB9 as an accent and #725E0E for hover and pressed states. For a palette, the analogous pair #F2B094 and #D6F294 stays calm, while #94A7F2 is the loudest partner.
What is #f2df94 in CMYK for printing?
cmyk(0%, 8%, 39%, 5%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.
Is #f2df94 warm or cool?
Warm — it scores 15 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F2C694; nudged cooler, #E3F393.