Skip to content

#ecf404

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

RGB
236, 244, 4
HSL
62°, 97%, 49%
CMYK
3, 0, 98, 4
Luminance
0.8254

At a glance

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

Hex
#ecf404
Hue
62°
yellow
Saturation
97%
electric
Lightness
49%
balanced
Brightness
96%
HSV value
Perceived
89%
weighted brightness
Luminance
0.8254
WCAG relative
Temperature
Warm
27/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
17.51:1
Closest name
Yellow
ΔE2000 3.1
Where it sits
Hue62° of 360°
Saturation97%
Lightness49%
Temperature
Warm ← → Cool27% 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#ecf404
RGBrgb(236, 244, 4)
HSLhsl(62, 97%, 49%)
CMYKcmyk(3%, 0%, 98%, 4%)
LABlab(92.8 -24.1 90.4)
LCHlch(92.8 93.5 104.9)
OKLCHoklch(0.930 0.206 112.2)
Decimal15528964
Display P3color(display-p3 0.925 0.957 0.016)

Copy-ready code

/* CSS */
color: #ecf404;
background-color: #ecf404;
/* Tailwind (arbitrary) */
class="text-[#ecf404] bg-[#ecf404]"
/* SCSS */
$brand: #ecf404;
/* SwiftUI */
Color(red: 0.925, green: 0.957, blue: 0.016)
/* Android */
Color.parseColor("#ecf404")
/* Flutter */
Color(0xFFECF404)
/* Python / OpenCV (BGR) */
(4, 244, 236)

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

Accessibility — WCAG contrast

Aa
#ecf404 on white: 1.20:1
AA ✗ fail · AA-large · AAA
Aa
#ecf404 on black: 17.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #FFE800
deuteranopia · #FFED30
tritanopia · #FDE4D0

Color scale — 50 to 950

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

#FDFDF1
#FBFCE4
#F9FBC1
#FAFD91
#F7FC59
#F4FB22
#ecf404
#C2C903
#9BA103
#707407
#464804
Base = 600Lightest = 50 · #FDFDF1Darkest = 950 · #464804
:root {
  --brand-50: #FDFDF1;
  --brand-100: #FBFCE4;
  --brand-200: #F9FBC1;
  --brand-300: #FAFD91;
  --brand-400: #F7FC59;
  --brand-500: #F4FB22;
  --brand-600: #ecf404;
  --brand-700: #C2C903;
  --brand-800: #9BA103;
  --brand-900: #707407;
  --brand-950: #464804;
  --brand: #ecf404;
  --brand-ink: #000000;
}

Colors that work with #ecf404

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#EBEDC0
Hairlines and dividers
Muted text#989B4B
Captions on the surface
Accent#0036F8
Second voice, not a rival
Dark variant#797D02
Hover, pressed, headers
Light variant#FEFFE6
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 #ecf404

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#0C04F4
Analogous left#F48404
Analogous right#74F404
Split-complement 1#0474F4
Split-complement 2#8404F4
Triadic 1#04ECF4
Triadic 2#F404EC
Tetradic#04F484

RGB percentages

Red92.5%
Green95.7%
Blue1.6%

CMYK percentages

Cyan3.3%
Magenta0.0%
Yellow98.4%
Key (black)4.3%

Color previews

#ecf404 text on a black background

contrast 17.51:1

Card sample

#ecf404 text on a white background

contrast 1.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(236, 244, 4, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 244, 4, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ecf404;
background: linear-gradient(135deg, #ecf404, #4CF404);

Monochromatic scale

Palettes built from #ecf404

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.

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

#ecf404, answered

What color is #ecf404?

#ecf404 is a balanced electric yellow, closest to Yellow (ΔE2000 3.1). It sits at 62° on the hue wheel with 97% saturation and 49% lightness, which reads as warm.

What is the RGB value of #ecf404?

rgb(236, 244, 4) — 236 red, 244 green and 4 blue out of 255, or 92.5% / 95.7% / 1.6% by channel.

Is #ecf404 a light or a dark color?

It is a light color. Relative luminance is 0.8254 and perceived brightness is 89%, so black text on it reaches 17.51:1.

Should I use black or white text on #ecf404?

Black. It scores 17.51:1 against #ecf404, versus 1.20:1 for white — AAA at any size.

What is the complementary color of #ecf404?

#0C04F4 sits directly opposite on the wheel. Softer options are the split-complements #0474F4 and #8404F4, which give the same contrast with far less vibration.

What colors go well with #ecf404?

For interface work: #FAFAF4 as the surface, #EBEDC0 for borders, #989B4B for secondary text, #0036F8 as an accent and #797D02 for hover and pressed states. For a palette, the analogous pair #F48404 and #74F404 stays calm, while #0C04F4 is the loudest partner.

What is #ecf404 in CMYK for printing?

cmyk(3%, 0%, 98%, 4%). 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 #ecf404 warm or cool?

Warm — it scores 27 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F4B304; nudged cooler, #94F601.

Work with #ecf404 in the Color Lab