Skip to content

#ecda4f

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

RGB
236, 218, 79
HSL
53°, 81%, 62%
CMYK
0, 8, 67, 8
Luminance
0.6854

At a glance

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

Hex
#ecda4f
Hue
53°
yellow
Saturation
81%
electric
Lightness
62%
balanced
Brightness
93%
HSV value
Perceived
83%
weighted brightness
Luminance
0.6854
WCAG relative
Temperature
Warm
19/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
14.71:1
Closest name
Gold
ΔE2000 6.6
Where it sits
Hue53° of 360°
Saturation81%
Lightness62%
Temperature
Warm ← → Cool19% 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#ecda4f
RGBrgb(236, 218, 79)
HSLhsl(53, 81%, 62%)
CMYKcmyk(0%, 8%, 67%, 8%)
LABlab(86.3 -9.4 67.8)
LCHlch(86.3 68.4 97.9)
OKLCHoklch(0.878 0.156 101.9)
Decimal15522383
Display P3color(display-p3 0.925 0.855 0.310)

Copy-ready code

/* CSS */
color: #ecda4f;
background-color: #ecda4f;
/* Tailwind (arbitrary) */
class="text-[#ecda4f] bg-[#ecda4f]"
/* SCSS */
$brand: #ecda4f;
/* SwiftUI */
Color(red: 0.925, green: 0.855, blue: 0.310)
/* Android */
Color.parseColor("#ecda4f")
/* Flutter */
Color(0xFFECDA4F)
/* Python / OpenCV (BGR) */
(79, 218, 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 #ecda4f · 14.71:1
Use #000000AAA at every size.
Aa
White text · 1.43:1
AA fail · AA large fail · AAA fail
Aa
Black text · 14.71:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #ecda4f as text scores 1.43:1 on white and 14.71:1 on black.

Accessibility — WCAG contrast

Aa
#ecda4f on white: 1.43:1
AA ✗ fail · AA-large · AAA
Aa
#ecda4f on black: 14.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #EDD43C
deuteranopia · #F3DB57
tritanopia · #FDCBBE

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ecda4f 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.

#FCFBF3
#F9F7E6
#F5F0C6
#F4EA9A
#ecda4f
#E9D434
#DDC618
#B8A514
#938410
#6B6010
#433C0A
Base = 400Lightest = 50 · #FCFBF3Darkest = 950 · #433C0A
:root {
  --brand-50: #FCFBF3;
  --brand-100: #F9F7E6;
  --brand-200: #F5F0C6;
  --brand-300: #F4EA9A;
  --brand-400: #ecda4f;
  --brand-500: #E9D434;
  --brand-600: #DDC618;
  --brand-700: #B8A514;
  --brand-800: #938410;
  --brand-900: #6B6010;
  --brand-950: #433C0A;
  --brand: #ecda4f;
  --brand-ink: #000000;
}

Colors that work with #ecda4f

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#EDE7C0
Hairlines and dividers
Muted text#9B924B
Captions on the surface
Accent#4B87F0
Second voice, not a rival
Dark variant#73670C
Hover, pressed, headers
Light variant#FDFAE8
Selected rows, tints
Dark surface#242314
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 #ecda4f

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#4F61EC
Analogous left#EC8C4F
Analogous right#B0EC4F
Split-complement 1#4FB0EC
Split-complement 2#8C4FEC
Triadic 1#4FECDA
Triadic 2#DA4FEC
Tetradic#4FEC8C

RGB percentages

Red92.5%
Green85.5%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta7.6%
Yellow66.5%
Key (black)7.5%

Color previews

#ecda4f text on a black background

contrast 14.71:1

Card sample

#ecda4f text on a white background

contrast 1.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(236, 218, 79, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 218, 79, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ecda4f;
background: linear-gradient(135deg, #ecda4f, #95EC4F);

Monochromatic scale

Palettes built from #ecda4f

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.

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

#ecda4f, answered

What color is #ecda4f?

#ecda4f is a balanced electric yellow, closest to Gold (ΔE2000 6.6). It sits at 53° on the hue wheel with 81% saturation and 62% lightness, which reads as warm.

What is the RGB value of #ecda4f?

rgb(236, 218, 79) — 236 red, 218 green and 79 blue out of 255, or 92.5% / 85.5% / 31% by channel.

Is #ecda4f a light or a dark color?

It is a light color. Relative luminance is 0.6854 and perceived brightness is 83%, so black text on it reaches 14.71:1.

Should I use black or white text on #ecda4f?

Black. It scores 14.71:1 against #ecda4f, versus 1.43:1 for white — AAA at any size.

What is the complementary color of #ecda4f?

#4F61EC sits directly opposite on the wheel. Softer options are the split-complements #4FB0EC and #8C4FEC, which give the same contrast with far less vibration.

What colors go well with #ecda4f?

For interface work: #FAFAF4 as the surface, #EDE7C0 for borders, #9B924B for secondary text, #4B87F0 as an accent and #73670C for hover and pressed states. For a palette, the analogous pair #EC8C4F and #B0EC4F stays calm, while #4F61EC is the loudest partner.

What is #ecda4f in CMYK for printing?

cmyk(0%, 8%, 67%, 8%). 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 #ecda4f warm or cool?

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

Work with #ecda4f in the Color Lab