Skip to content

#f9da4e

a balanced, electric yellow · warm · closest name: Gold

RGB
249, 218, 78
HSL
49°, 93%, 64%
CMYK
0, 12, 69, 2
Luminance
0.7083

At a glance

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

Hex
#f9da4e
Hue
49°
yellow
Saturation
93%
electric
Lightness
64%
balanced
Brightness
98%
HSV value
Perceived
85%
weighted brightness
Luminance
0.7083
WCAG relative
Temperature
Warm
16/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
15.17:1
Closest name
Gold
ΔE2000 4.2
Where it sits
Hue49° of 360°
Saturation93%
Lightness64%
Temperature
Warm ← → Cool16% 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#f9da4e
RGBrgb(249, 218, 78)
HSLhsl(49, 93%, 64%)
CMYKcmyk(0%, 12%, 69%, 2%)
LABlab(87.4 -4.0 69.7)
LCHlch(87.4 69.8 93.3)
OKLCHoklch(0.890 0.157 96.5)
Decimal16374350
Display P3color(display-p3 0.976 0.855 0.306)

Copy-ready code

/* CSS */
color: #f9da4e;
background-color: #f9da4e;
/* Tailwind (arbitrary) */
class="text-[#f9da4e] bg-[#f9da4e]"
/* SCSS */
$brand: #f9da4e;
/* SwiftUI */
Color(red: 0.976, green: 0.855, blue: 0.306)
/* Android */
Color.parseColor("#f9da4e")
/* Flutter */
Color(0xFFF9DA4E)
/* Python / OpenCV (BGR) */
(78, 218, 249)

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

Accessibility — WCAG contrast

Aa
#f9da4e on white: 1.38:1
AA ✗ fail · AA-large · AAA
Aa
#f9da4e on black: 15.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #EFD53A
deuteranopia · #F7DF56
tritanopia · #FFCABE

Color scale — 50 to 950

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

#FDFBF2
#FBF7E4
#F9EFC2
#FBE893
#f9da4e
#F8D226
#EDC308
#C5A307
#9E8205
#725F09
#473B05
Base = 400Lightest = 50 · #FDFBF2Darkest = 950 · #473B05
:root {
  --brand-50: #FDFBF2;
  --brand-100: #FBF7E4;
  --brand-200: #F9EFC2;
  --brand-300: #FBE893;
  --brand-400: #f9da4e;
  --brand-500: #F8D226;
  --brand-600: #EDC308;
  --brand-700: #C5A307;
  --brand-800: #9E8205;
  --brand-900: #725F09;
  --brand-950: #473B05;
  --brand: #f9da4e;
  --brand-ink: #000000;
}

Colors that work with #f9da4e

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#EDE4C0
Hairlines and dividers
Muted text#9B8C4B
Captions on the surface
Accent#0258CA
Second voice, not a rival
Dark variant#7B6604
Hover, pressed, headers
Light variant#FEFAE6
Selected rows, tints
Dark surface#242114
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 #f9da4e

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
  • 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
  • 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#4E6DF9
Analogous left#F9844E
Analogous right#C3F94E
Split-complement 1#4EC3F9
Split-complement 2#844EF9
Triadic 1#4EF9DA
Triadic 2#DA4EF9
Tetradic#4EF984

RGB percentages

Red97.6%
Green85.5%
Blue30.6%

CMYK percentages

Cyan0.0%
Magenta12.4%
Yellow68.7%
Key (black)2.4%

Color previews

#f9da4e text on a black background

contrast 15.17:1

Card sample

#f9da4e text on a white background

contrast 1.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(249, 218, 78, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(249, 218, 78, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f9da4e;
background: linear-gradient(135deg, #f9da4e, #A6F94E);

Monochromatic scale

Palettes built from #f9da4e

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.

#f9da4e 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
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#f9da4e, answered

What color is #f9da4e?

#f9da4e is a balanced electric yellow, closest to Gold (ΔE2000 4.2). It sits at 49° on the hue wheel with 93% saturation and 64% lightness, which reads as warm.

What is the RGB value of #f9da4e?

rgb(249, 218, 78) — 249 red, 218 green and 78 blue out of 255, or 97.6% / 85.5% / 30.6% by channel.

Is #f9da4e a light or a dark color?

It is a light color. Relative luminance is 0.7083 and perceived brightness is 85%, so black text on it reaches 15.17:1.

Should I use black or white text on #f9da4e?

Black. It scores 15.17:1 against #f9da4e, versus 1.38:1 for white — AAA at any size.

What is the complementary color of #f9da4e?

#4E6DF9 sits directly opposite on the wheel. Softer options are the split-complements #4EC3F9 and #844EF9, which give the same contrast with far less vibration.

What colors go well with #f9da4e?

For interface work: #FAF9F4 as the surface, #EDE4C0 for borders, #9B8C4B for secondary text, #0258CA as an accent and #7B6604 for hover and pressed states. For a palette, the analogous pair #F9844E and #C3F94E stays calm, while #4E6DF9 is the loudest partner.

What is #f9da4e in CMYK for printing?

cmyk(0%, 12%, 69%, 2%). 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 #f9da4e warm or cool?

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

Work with #f9da4e in the Color Lab