The short version
- A fire gradient follows the order of a real flame: pale yellow near the base, then orange, then red at the tips, fading into dark smoke.
- The hottest parts of a fire look the palest, so the brightest stop belongs at the source of the heat, not at the edge.
- In CSS,
linear-gradient(0deg, …)starts at the bottom, which is where a flame starts. - Embers and coals suit radial gradients that glow from a hot centre into near black.
- Dark type reads on the yellow part of a fire gradient, and white or cream type reads on the red and dark parts.
On this page
A fire gradient runs from pale yellow, almost white, at the base of the flame, through bright orange, to deep red at the tips, and then into the dark of smoke or night. Follow that order and the gradient reads as heat straight away. Reverse it, with yellow at the top, and it looks like a sunset instead. Below are the flame zones as colours, copyable codes from smouldering embers to a full blaze, and a gentle CSS flicker.
Read a flame from the bottom up
Glowing material changes colour with temperature: the hotter it is, the paler and whiter it looks, and as it cools it slides through yellow and orange to a dull red. In a wood fire that means the palest light sits low, near the fuel, and the red sits at the flickering tips. A gas flame burns cleanly, with almost no glowing soot, so it shows the blue light of the burning gas itself.
Colour
Hex
#38bdf8 to #1d4ed8Colour
Hex
#fff3b0Colour
Hex
#ffd23fHex
#ff8c1aHex
#e8361cColour
Hex
#b3001b to #7f1d1dColour
Hex
#1c0606Flame gradient codes: campfire to blaze
These are vertical, starting at the bottom. In CSS, 0deg points up, so the first stop is the base of the flame. A campfire keeps a soft gold base and a long red fade; a blaze is shorter, louder and more saturated; white heat is what the inside of a furnace looks like.
Ember, coal and lava gradients
Not every fire design needs flames. Embers and coals are fire at rest: mostly dark, with a hot core glowing through. They feel moody and premium, and they leave more calm space for words than a full blaze. Lava sits between the two, a dark crust split by a bright seam. These work best as radial gradients, which glow outwards the way heat does.
If you want warmth without the drama, the separate red gradient, orange gradient and yellow gradient collections each take one part of the flame and go further with it.
Why some fire gradients look wrong
Fire is one of the few gradients people judge instantly, because everyone has stared at a real one. Three mistakes give it away: the order is wrong, the dark end turns brown, or the yellow is so greenish that it reads as acid rather than heat. Muddy gradients explains why red fading into black can turn brown, and how a crimson stop prevents it.
Looks fake
- Yellow at the top, red at the bottom
- Red fading straight into a brownish black
- A cool, lemon yellow with a green cast
- Even colour from edge to edge, no hot spot
- Flame colours on a white background
Looks hot
- Palest colour at the source, red at the tips
- Red into crimson, then into char
- A warm golden yellow such as #ffd23f
- One bright core that everything fades from
- Fire glowing out of darkness
An animated fire gradient in CSS
A slow upward drift sells the idea of flame better than any fast flicker. Make the gradient twice as tall as the element, then move it gently up and down. Respect visitors who have asked for less motion, as described in reduced motion.
.fire {
background: linear-gradient(0deg, #fff3b0 0%, #ffd23f 15%, #ff8c1a 35%, #e8361c 55%, #5c0d0d 80%, #1c0606 100%);
background-size: 100% 200%;
animation: flicker 6s ease-in-out infinite alternate;
}
@keyframes flicker {
from { background-position: 50% 100%; }
to { background-position: 50% 70%; }
}
@media (prefers-reduced-motion: reduce) {
.fire { animation: none; }
}background-position is cheap; for heavier effects, see the performance notes in the animated gradient guide.More loops and their trade offs are in CSS animated gradient.
Words and offers on a fire gradient
Fire says urgency, energy and heat, so it naturally carries flash sales, spicy menus, workout challenges and anything with a deadline. Type colour depends on where the words land: a deep charcoal or ember brown reads on the golden base, and white or warm cream reads on the red and dark parts. Avoid putting words across the orange middle, where neither works especially well.
A portrait sale post. The urgent line sits on the dark, ember end; the warmest light stays clear of the words.
For more on layouts that sell, see sale post design. If you would rather not lay it out by hand, Gradiently's Designer can take a one line brief like "winter clearance ends Sunday", ask what it needs, write the words and set the post in your Mark, then make the story and square versions too.
Questions people ask
What colours are in a fire gradient?
Pale yellow (#fff3b0), golden yellow (#ffd23f), orange (#ff8c1a), flame red (#e8361c) and a deep crimson or char to finish. Use them in that order from the base of the flame.
Which way should a flame gradient go?
From the bottom up, with the palest colour at the base. In CSS, linear-gradient(0deg, …) lists the bottom stop first.
How do I stop a fire gradient turning brown?
Go from red into a deep crimson such as #b3001b before reaching near black, rather than straight from red to black.
What is a blue flame gradient used for?
A blue gas flame usually burns hotter than a yellow wood flame, so it suits tech, science, energy and anything that wants to feel intense but cool. Run it from near white at the base through sky blue to deep navy.
Can I animate a fire gradient without JavaScript?
Yes. Make the background twice as tall with background-size: 100% 200% and animate background-position slowly, and switch it off for prefers-reduced-motion.
Written by Gradiently
The team behind Gradiently, a design tool built around Marks: living gradients that make everything you design look like yours.
See our profile