Skip to content

#f9ef1a

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

RGB
249, 239, 26
HSL
57°, 95%, 54%
CMYK
0, 4, 90, 2
Luminance
0.8195

At a glance

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

Hex
#f9ef1a
Hue
57°
yellow
Saturation
95%
electric
Lightness
54%
balanced
Brightness
98%
HSV value
Perceived
90%
weighted brightness
Luminance
0.8195
WCAG relative
Temperature
Warm
23/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
17.39:1
Closest name
Yellow
ΔE2000 3.7
Where it sits
Hue57° of 360°
Saturation95%
Lightness54%
Temperature
Warm ← → Cool23% 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#f9ef1a
RGBrgb(249, 239, 26)
HSLhsl(57, 95%, 54%)
CMYKcmyk(0%, 4%, 90%, 2%)
LABlab(92.5 -16.1 88.4)
LCHlch(92.5 89.9 100.3)
OKLCHoklch(0.930 0.195 106.5)
Decimal16379674
Display P3color(display-p3 0.976 0.937 0.102)

Copy-ready code

/* CSS */
color: #f9ef1a;
background-color: #f9ef1a;
/* Tailwind (arbitrary) */
class="text-[#f9ef1a] bg-[#f9ef1a]"
/* SCSS */
$brand: #f9ef1a;
/* SwiftUI */
Color(red: 0.976, green: 0.937, blue: 0.102)
/* Android */
Color.parseColor("#f9ef1a")
/* Flutter */
Color(0xFFF9EF1A)
/* Python / OpenCV (BGR) */
(26, 239, 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 #f9ef1a · 17.39:1
Use #000000AAA at every size.
Aa
White text · 1.21:1
AA fail · AA large fail · AAA fail
Aa
Black text · 17.39:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #f9ef1a as text scores 1.21:1 on white and 17.39:1 on black.

Accessibility — WCAG contrast

Aa
#f9ef1a on white: 1.21:1
AA ✗ fail · AA-large · AAA
Aa
#f9ef1a on black: 17.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFE600
deuteranopia · #FFED35
tritanopia · #FFDECC

Color scale — 50 to 950

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

#FDFDF1
#FBFAE4
#FAF7C2
#FCF792
#FBF45B
#f9ef1a
#EFE406
#C7BE05
#9F9804
#736E08
#484505
Base = 500Lightest = 50 · #FDFDF1Darkest = 950 · #484505
:root {
  --brand-50: #FDFDF1;
  --brand-100: #FBFAE4;
  --brand-200: #FAF7C2;
  --brand-300: #FCF792;
  --brand-400: #FBF45B;
  --brand-500: #f9ef1a;
  --brand-600: #EFE406;
  --brand-700: #C7BE05;
  --brand-800: #9F9804;
  --brand-900: #736E08;
  --brand-950: #484505;
  --brand: #f9ef1a;
  --brand-ink: #000000;
}

Colors that work with #f9ef1a

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#FAFAF4
Tinted page background
Border#EDEBC0
Hairlines and dividers
Muted text#9B974B
Captions on the surface
Accent#155AFE
Second voice, not a rival
Dark variant#7C7703
Hover, pressed, headers
Light variant#FEFDE6
Selected rows, tints
Dark surface#242414
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 #f9ef1a

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#1A24F9
Analogous left#F97F1A
Analogous right#93F91A
Split-complement 1#1A93F9
Split-complement 2#7F1AF9
Triadic 1#1AF9EF
Triadic 2#EF1AF9
Tetradic#1AF97F

RGB percentages

Red97.6%
Green93.7%
Blue10.2%

CMYK percentages

Cyan0.0%
Magenta4.0%
Yellow89.6%
Key (black)2.4%

Color previews

#f9ef1a text on a black background

contrast 17.39:1

Card sample

#f9ef1a text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(249, 239, 26, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(249, 239, 26, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f9ef1a;
background: linear-gradient(135deg, #f9ef1a, #6EF91A);

Monochromatic scale

Palettes built from #f9ef1a

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.

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

#f9ef1a, answered

What color is #f9ef1a?

#f9ef1a is a balanced electric yellow, closest to Yellow (ΔE2000 3.7). It sits at 57° on the hue wheel with 95% saturation and 54% lightness, which reads as warm.

What is the RGB value of #f9ef1a?

rgb(249, 239, 26) — 249 red, 239 green and 26 blue out of 255, or 97.6% / 93.7% / 10.2% by channel.

Is #f9ef1a a light or a dark color?

It is a light color. Relative luminance is 0.8195 and perceived brightness is 90%, so black text on it reaches 17.39:1.

Should I use black or white text on #f9ef1a?

Black. It scores 17.39:1 against #f9ef1a, versus 1.21:1 for white — AAA at any size.

What is the complementary color of #f9ef1a?

#1A24F9 sits directly opposite on the wheel. Softer options are the split-complements #1A93F9 and #7F1AF9, which give the same contrast with far less vibration.

What colors go well with #f9ef1a?

For interface work: #FAFAF4 as the surface, #EDEBC0 for borders, #9B974B for secondary text, #155AFE as an accent and #7C7703 for hover and pressed states. For a palette, the analogous pair #F97F1A and #93F91A stays calm, while #1A24F9 is the loudest partner.

What is #f9ef1a in CMYK for printing?

cmyk(0%, 4%, 90%, 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 #f9ef1a warm or cool?

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

Work with #f9ef1a in the Color Lab