#fdf791
a light, electric yellow · warm · closest name: Khaki
At a glance
Every number on this page in one read: what #fdf791 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 | #fdf791 |
| RGB | rgb(253, 247, 145) |
| HSL | hsl(57, 96%, 78%) |
| CMYK | cmyk(0%, 2%, 43%, 1%) |
| LAB | lab(95.8 -11.9 49.6) |
| LCH | lch(95.8 51.0 103.5) |
| OKLCH | oklch(0.959 0.124 105.6) |
| Decimal | 16643985 |
| Display P3 | color(display-p3 0.992 0.969 0.569) |
Copy-ready code
/* CSS */
color: #fdf791;
background-color: #fdf791;
/* Tailwind (arbitrary) */
class="text-[#fdf791] bg-[#fdf791]"
/* SCSS */
$brand: #fdf791;
/* SwiftUI */
Color(red: 0.992, green: 0.969, blue: 0.569)
/* Android */
Color.parseColor("#fdf791")
/* Flutter */
Color(0xFFFDF791)
/* Python / OpenCV (BGR) */
(145, 247, 253)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. #fdf791 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: #FDFDF1;
--brand-100: #FCFAE4;
--brand-200: #FAF7C1;
--brand-300: #fdf791;
--brand-400: #FCF35A;
--brand-500: #FBEF23;
--brand-600: #F0E304;
--brand-700: #C8BE04;
--brand-800: #A09803;
--brand-900: #736E07;
--brand-950: #484404;
--brand: #fdf791;
--brand-ink: #000000;
}Colors that work with #fdf791
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 #fdf791
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 | #9197FD | Directly opposite — maximum tension | |
| Analogous left | #FDC191 | Neighbour, quieter | |
| Analogous right | #CDFD91 | Neighbour, quieter | |
| Split-complement 1 | #91CDFD | Contrast without the clash | |
| Split-complement 2 | #C191FD | Contrast without the clash | |
| Triadic 1 | #91FDF7 | Even thirds — balanced and loud | |
| Triadic 2 | #F791FD | Even thirds — balanced and loud | |
| Tetradic | #91FDC1 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#fdf791 text on a black background
contrast 18.89:1
#fdf791 text on a white background
contrast 1.11:1
CSS3 live lab
The quick brown fox
color: #fdf791;
background-color: #fdf791;
Glowing headline
text-shadow: 2px 2px 8px #fdf791;
Soft neon halo
text-shadow: 0 0 14px rgba(253, 247, 145, 0.45);
box-shadow: 0 12px 32px -8px rgba(253, 247, 145, 0.45);
border: 3px solid #fdf791; background: linear-gradient(135deg, #fdf791, #BBFD91);
Monochromatic scale
Palettes built from #fdf791
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: Dandelion (#f0e130) — ΔE2000 9.4 away, with its history, psychology and brand usage.
#fdf791 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.
#fdf791, answered
What color is #fdf791?
#fdf791 is a light electric yellow, closest to Khaki (ΔE2000 3.9). It sits at 57° on the hue wheel with 96% saturation and 78% lightness, which reads as warm.
What is the RGB value of #fdf791?
rgb(253, 247, 145) — 253 red, 247 green and 145 blue out of 255, or 99.2% / 96.9% / 56.9% by channel.
Is #fdf791 a light or a dark color?
It is a light color. Relative luminance is 0.8945 and perceived brightness is 94%, so black text on it reaches 18.89:1.
Should I use black or white text on #fdf791?
Black. It scores 18.89:1 against #fdf791, versus 1.11:1 for white — AAA at any size.
What is the complementary color of #fdf791?
#9197FD sits directly opposite on the wheel. Softer options are the split-complements #91CDFD and #C191FD, which give the same contrast with far less vibration.
What colors go well with #fdf791?
For interface work: #FAFAF4 as the surface, #EDEAC0 for borders, #9B964B for secondary text, #003ECC as an accent and #7D7602 for hover and pressed states. For a palette, the analogous pair #FDC191 and #CDFD91 stays calm, while #9197FD is the loudest partner.
What is #fdf791 in CMYK for printing?
cmyk(0%, 2%, 43%, 1%). 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 #fdf791 warm or cool?
Warm — it scores 22 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FDD191; nudged cooler, #DCFE90.