On this page
The strip under the title gives you copyable HEX, RGB and HSL values for each color. Below, I explain where those numbers come from, why other sites list slightly different ones, and how to use the colors in web, print and interior work without surprises.
Mexico flag color codes: HEX, RGB, HSL and CMYK
The table adds CMYK, which many references skip, plus the eagle’s brown from the coat of arms. I calculated every value from the hex code, so the formats agree with each other.
| Color | HEX | RGB | HSL | CMYK |
|---|---|---|---|---|
| Green | 0, 104, 71 | 161°, 100%, 20% | 100, 0, 32, 59 | |
| White | 255, 255, 255 | 0°, 0%, 100% | 0, 0, 0, 0 | |
| Red | 206, 17, 38 | 353°, 85%, 44% | 0, 92, 82, 19 | |
| Brown | 140, 74, 47 | 17°, 50%, 37% | 0, 47, 66, 45 |
Treat the CMYK numbers as a starting point only. A mathematical conversion knows nothing about your printer’s inks or paper, so ask for a proof or specify Pantone, as covered further down.
What the green, white and red stripes mean
Ask people in Mexico today and the common answer is green for hope, white for unity and red for the blood of the national heroes. That is the later, widely taught reading. The original meaning from 1821 was different.
The first official tricolor was adopted by the Army of the Three Guarantees, led by Agustín de Iturbide. Its colors were tied to those three guarantees. The flag law describes the layout rather than what each color must mean, so both readings sit side by side.
- Green: independence in 1821, hope in the modern reading.
- White: religion in 1821, unity in the modern reading.
- Red: union in 1821, the blood of the heroes in the modern reading.
A short history of the flag and its eagle
Independence from Spain in 1821 brought the tricolor into use. The emblem at the center recalls the Aztec legend of an eagle standing on a cactus and holding a serpent, the sign for where to found the city now known as Mexico City.
The eagle has been redrawn more than once. The version used today adapts a design approved in 1916 under President Venustiano Carranza, which changed the eagle from a front view to a left profile. It was redesigned again ahead of the 1968 Olympic Games in Mexico City. The stripes stayed simple while the emblem became more detailed.
What Mexican law says about the exact shades
The 1984 Ley sobre el Escudo, la Bandera y el Himno Nacionales describes a rectangle of three equal vertical stripes: green, white and red from the hoist. The coat of arms sits in the white stripe at three quarters of its width, and the proportion is four to seven.
Which Pantone references does the Mexican government recommend for the flag?
The Secretaría de Gobernación recommends Pantone 3425 C for the green and 186 C for the red, though the law itself does not name shades.
What the law does not do is name exact shades. The Secretaría de Gobernación, which handles national symbols, recommends Pantone 3425 C for the green and Pantone 186 C for the red. White is plain white. So any hex code you see for Mexico is a screen conversion of those references, and different converters give slightly different answers.
Why two sets of green and red hex codes exist
Two pairs circulate online. The flag artwork on Wikimedia Commons translates the Pantone references to RGB 0, 104, 71 for the green and RGB 206, 17, 38 for the red, which is and . Other lists give and , which are RGB 0, 99, 65 and 200, 16, 46.

The gap is a few steps per channel. You would struggle to spot it side by side on a phone. I use and for screens because they match the widely shared flag artwork. Whichever pair you choose, use it everywhere in a project so the stripes never drift.
- Screens and social graphics: and .
- Print: specify Pantone 3425 C and 186 C, not hex.
- Textiles and signage: ask for a physical swatch and sign it off.
I once approved a dark green from a screen proof and the uncoated stock came back visibly duller. Deep, saturated greens like this one are where screen and press disagree most, so a printed proof is worth the wait.
The eagle’s brown and the coat of arms colors
The coat of arms is not a flat symbol. The eagle is drawn in natural browns, and oak and laurel branches meet in a ribbon whose three stripes match the flag’s colors. That is why designers often add a brown to a Mexican flag palette.
(RGB 140, 74, 47) is a warm, rust-leaning brown with a hue near 17°. It is redder than chocolate and less orange than terracotta, so it sits beside the red stripe without competing with it. It is not a legal flag color. Think of it as a practical stand-in for the eagle, and note that white text on it reaches 6.70 to 1.
Using the Mexican flag colors on screens and in UI
Because the green is dark and the red is saturated, they behave well as brand colors and need a little care as text colors. Here is a setup I would hand to a developer.
Which text color is safest on the red stripe color #CE1126?
White reaches 5.63 to 1 on that red, while black manages only 3.73 to 1 and green about 1.22 to 1.
Starter CSS
Define the colors once as variables and let components reference them.
:root {
--mx-green: #006847;
--mx-white: #FFFFFF;
--mx-red: #CE1126;
--mx-brown: #8C4A2F;
}
.tricolor {
background: linear-gradient(90deg,
var(--mx-green) 0 33.33%,
var(--mx-white) 33.33% 66.66%,
var(--mx-red) 66.66% 100%);
}
For soft section backgrounds, a pastel green tint keeps the identity without the weight. For hero banners, a red gradient built from can add depth.
Contrast ratios that pass WCAG
I computed these from the hex codes with the WCAG formula. Green on white is 6.84 to 1, which passes AA for body text and AAA for large text. Red on white is 5.63 to 1, a pass for AA body text. Brown on white is 6.70 to 1.
The pair to avoid is red against green, at only 1.22 to 1. Their lightness is so close that people with red-green color blindness may see the stripes as similar dark tones. I once fixed a dashboard where red and green status chips relied on hue alone, and adding an icon and a text label solved it. Pure black is no rescue on the red either: it reaches only 3.73 to 1, below the 4.5 needed for body text, so use white.
Try this: Build one button with as the background and a white 16px label, then rebuild it with . Now swap the label to black on the red and compare how readable each version feels.
Mexican flag colors in print, interiors and fashion
For print, the cleanest route is spot color: Pantone 3425 C for the green and 186 C for the red. If you must use CMYK, start from 100, 0, 32, 59 for the green and 0, 92, 82, 19 for the red, then judge a physical proof. The red is forgiving, while the dark green shifts most between coated and uncoated paper.
Pure white beside deep green can feel cold. Use the paper's own white, or a cream like , for backgrounds, and keep true white for the flag stripe itself.
In rooms, let white do the heavy lifting, bring the green in as a deep accent such as a painted door or a velvet chair, and keep red to small touches. The brown suits wood, leather and clay. In fashion and sport the three colors are instantly recognizable: the national football team is nicknamed El Tri for them. In art and festivities, cut-paper banners for Independence Day often repeat the tricolor in bold blocks.
Palettes inspired by the Mexican flag
The four palettes below are built around the flag green and extended with neutrals and one or two accents. Tricolor Classic swaps pure white for a warm off-white, Fiesta Table adds a marigold gold, Nopal Greens stays in one hue family, and Eagle and Earth leans on the brown.
Websites and brand kits that want the flag feel with a softer white.

Event invitations, menus and festive social posts with a marigold accent.
Calm UI themes and packaging built on tints and shades of the flag green.
Interiors and fashion mixing warm brown and clay tones with flag green.
A rule I use with flag palettes: let one color lead (usually the green), give the white the most space, and keep the red to roughly a tenth of the layout so it still reads as an accent.
How Mexico’s colors differ from Italy and other flags
Italy’s flag also uses green, white and red in vertical stripes, which causes plenty of mix-ups. Italy’s greens and reds are lighter, commonly listed as and , its proportion is 2:3 and it has no emblem. Mexico has the darker green, the 4:7 proportion and the coat of arms.
Other flags share parts of the palette. India’s flag colors combine green and white with saffron in horizontal bands. Brazil’s flag colors pair a brighter green with yellow and blue, and Jamaica’s flag colors set green beside black and gold. Hungary and Iran use the same three colors as Mexico, but in horizontal stripes.
The official colors and what they stand for
Mexico Flag Colors: questions people ask
What are the colors of the Mexican flag?
The Mexican flag has three vertical stripes: green (#006847), white (#FFFFFF) and red (#CE1126), from the hoist side to the fly. The national coat of arms sits in the center of the white stripe.
What is the hex code for the green in the Mexican flag?
The most widely used screen value is #006847 (RGB 0, 104, 71). Some sources list #006341, which is a slightly different conversion of the same Pantone 3425 C reference.
What do the colors of the Mexican flag mean?
The common modern reading is green for hope, white for unity and red for the blood of national heroes. In 1821 the colors stood for independence, religion and union, the three guarantees of the independence army.
What Pantone colors are used for the Mexican flag?
The Secretaría de Gobernación recommends Pantone 3425 C for the green and Pantone 186 C for the red, with plain white for the center stripe. The flag law itself does not define exact shades.
Is the Mexican flag the same as the Italian flag?
No. Both use green, white and red in vertical stripes, but Mexico has a darker green, a 4:7 proportion and a coat of arms in the center. Italy's flag has no emblem and a 2:3 proportion.
Keep exploring
- New York Knicks Colors: Hex Codes, RGB and Team Palette
- Trans Flag Colors: Hex Codes, RGB and Meaning of the Pride Flag
- New England Patriots Colors: Hex Codes, RGB and Team Palette
- Bisexual Flag Colors: Hex Codes and RGB Values
- Philadelphia Eagles Colors: Hex Codes, RGB and Team Palette
- Green Bay Packers Colors: Hex Codes, RGB and Team Palette
- Honey Blonde Color: Hex Code, RGB and Palettes
- Light Green Color: Hex Code, RGB and Palettes