Skip to content

#ecce4f

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

RGB
236, 206, 79
HSL
49°, 81%, 62%
CMYK
0, 13, 67, 8
Luminance
0.6254

At a glance

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

Hex
#ecce4f
Hue
49°
yellow
Saturation
81%
electric
Lightness
62%
balanced
Brightness
93%
HSV value
Perceived
81%
weighted brightness
Luminance
0.6254
WCAG relative
Temperature
Warm
15/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
13.51:1
Closest name
Gold
ΔE2000 5.8
Where it sits
Hue49° of 360°
Saturation81%
Lightness62%
Temperature
Warm ← → Cool15% 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#ecce4f
RGBrgb(236, 206, 79)
HSLhsl(49, 81%, 62%)
CMYKcmyk(0%, 13%, 67%, 8%)
LABlab(83.2 -3.3 64.6)
LCHlch(83.2 64.7 92.9)
OKLCHoklch(0.854 0.146 95.8)
Decimal15519311
Display P3color(display-p3 0.925 0.808 0.310)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecce4f on white: 1.55:1
AA ✗ fail · AA-large · AAA
Aa
#ecce4f on black: 13.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E2CA3F
deuteranopia · #EAD356
tritanopia · #FEBFB4

Color scale — 50 to 950

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

#FCFAF3
#F9F6E6
#F5ECC6
#F4E39A
#ecce4f
#E9C634
#DDB718
#B89914
#937A10
#6B5910
#43380A
Base = 400Lightest = 50 · #FCFAF3Darkest = 950 · #43380A
:root {
  --brand-50: #FCFAF3;
  --brand-100: #F9F6E6;
  --brand-200: #F5ECC6;
  --brand-300: #F4E39A;
  --brand-400: #ecce4f;
  --brand-500: #E9C634;
  --brand-600: #DDB718;
  --brand-700: #B89914;
  --brand-800: #937A10;
  --brand-900: #6B5910;
  --brand-950: #43380A;
  --brand: #ecce4f;
  --brand-ink: #000000;
}

Colors that work with #ecce4f

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#105CBC
Second voice, not a rival
Dark variant#735F0C
Hover, pressed, headers
Light variant#FDF9E8
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 #ecce4f

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#4F6DEC
Analogous left#EC804F
Analogous right#BCEC4F
Split-complement 1#4FBCEC
Split-complement 2#804FEC
Triadic 1#4FECCE
Triadic 2#CE4FEC
Tetradic#4FEC80

RGB percentages

Red92.5%
Green80.8%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta12.7%
Yellow66.5%
Key (black)7.5%

Color previews

#ecce4f text on a black background

contrast 13.51:1

Card sample

#ecce4f text on a white background

contrast 1.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecce4f

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.

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

#ecce4f, answered

What color is #ecce4f?

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

What is the RGB value of #ecce4f?

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

Is #ecce4f a light or a dark color?

It is a light color. Relative luminance is 0.6254 and perceived brightness is 81%, so black text on it reaches 13.51:1.

Should I use black or white text on #ecce4f?

Black. It scores 13.51:1 against #ecce4f, versus 1.55:1 for white — AAA at any size.

What is the complementary color of #ecce4f?

#4F6DEC sits directly opposite on the wheel. Softer options are the split-complements #4FBCEC and #804FEC, which give the same contrast with far less vibration.

What colors go well with #ecce4f?

For interface work: #FAF9F4 as the surface, #EDE4C0 for borders, #9B8C4B for secondary text, #105CBC as an accent and #735F0C for hover and pressed states. For a palette, the analogous pair #EC804F and #BCEC4F stays calm, while #4F6DEC is the loudest partner.

What is #ecce4f in CMYK for printing?

cmyk(0%, 13%, 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 #ecce4f warm or cool?

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

Work with #ecce4f in the Color Lab