I have matched these colors for sports, travel and campaign projects, and the green is the one that trips people up. Below you get the full code set, why the numbers differ between sources, what each color means, contrast ratios I calculated myself, and palettes you can paste straight into a design.
Brazil flag hex, RGB, HSL and CMYK codes
The strip above gives you copy-ready HEX, RGB and HSL for every color. The table adds CMYK, which is a plain mathematical conversion from RGB. Treat it as a starting point for print, not as a press recipe.
| Color | HEX | RGB | HSL | CMYK |
|---|---|---|---|---|
| Green | 0, 156, 59 | 143°, 100%, 31% | 100, 0, 62, 39 | |
| Yellow | 255, 223, 0 | 52°, 100%, 50% | 0, 13, 100, 0 | |
| Blue | 0, 39, 118 | 220°, 100%, 23% | 100, 67, 0, 54 | |
| White | 255, 255, 255 | 0°, 0%, 100% | 0, 0, 0, 0 |
All three colored shades are fully saturated, so what separates them is lightness: yellow sits at 50%, green at 31% and blue at 23%. That spread is why the flag reads as bright and still keeps firm contrast between the diamond, the globe and the field.
Why Brazil’s flag colors vary from site to site
Brazilian Law No. 5,700 of 1971 governs how the flag is built and displayed, but the specific shades of colors used in the flag are not specified in any legal document. That is why every reference picks its own numbers. Green appears as , or , yellow as or , and blue as or .
You find three different hex codes for Brazil's green. What is the most likely reason?
Brazilian law defines the flag's layout and proportions, but no legal document specifies exact color values, so sources pick their own.
Most of these differ by a few points and look identical on screen. Two stand out: is a visibly warmer, more orange yellow, and leans purple next to the navy of .
For screens, use , , and . Several independent references agree on them, and they keep the yellow lemon-leaning and the blue a true navy.
Pick one set per project, store it as variables and never mix sets on the same page. If a client hands you a brand manual from a federation or ministry, that document wins over any website, mine included.
What the green, yellow, blue and white stand for
The popular reading today is simple. Green represents Brazil’s forests, yellow its mineral wealth, blue the sky, and white the desire for peace.
- Green : forests and farmland, from the Amazon to the Pantanal
- Yellow : gold, minerals and sunlight
- Blue : the sky, drawn as a celestial globe
- White : peace, carried by the stars and the motto band
Treat that as the symbolic reading, not the original one. The first meanings were dynastic, and the next section explains how they changed.
From empire to republic: where the colors came from
Under the Empire, the flag was a green field with a yellow diamond holding the imperial arms. Green represented the House of Braganza of Pedro I, and yellow the House of Habsburg of his wife, Empress Maria Leopoldina.
After the republic was proclaimed on 15 November 1889, a new flag was adopted on 19 November, four days later. It was designed by Raimundo Teixeira Mendes with colors similar to the imperial flag, and a blue circle with white five-pointed stars replaced the imperial arms.
So the colors outlived the monarchy and only their meaning was rewritten. The stars changed more. The 1889 flag had 21 stars, and the current form with 27 stars dates from 1992, as new states were created.
Diamond, globe and 27 stars: how the design uses color
The flag is a green rectangle with a large yellow rhombus, a blue disk of 27 white five-pointed stars and a white band reading Ordem e Progresso. The standard proportion is 7:10.
Each star stands for a state or the Federal District, and the arrangement reflects the sky over Rio de Janeiro on 15 November 1889. From a color point of view, the design nests three contrasts: yellow against green, blue against yellow and white against blue.
When you redraw it small, for an icon or a favicon, drop the individual stars and keep a white arc across the blue disk. The motto stops being legible long before the color relationships stop working.
Brazil flag color palettes you can use right away
The official four are loud together, so in layouts I treat them as a ranking: one dominant color, one accent and one anchor. The palettes below follow that rule and add neutrals the flag itself does not have.
Sports pages, event posters and any layout built straight from the flag.

Dark mode interfaces and night-sky hero sections with a warm yellow accent.
Eco brands, travel guides and packaging that lean on the green.
Festival flyers, merchandise and social graphics that need warmth and energy.
The same one-dominant, two-accent logic runs through patriotic schemes in general, as you can see in our Memorial Day colors.
Contrast and accessibility: which pairs pass WCAG
I calculated these ratios from the exact hex codes with the WCAG formula. The targets are 4.5:1 for body text and 3:1 for large text and interface components.
- White on blue : about 13.5:1, passes easily
- Yellow on blue: about 10.2:1, passes easily
- Black on green : about 5.8:1, passes AA
- White on green: about 3.6:1, large text only
- Yellow on green: about 2.7:1, fails
- Yellow on white: about 1.3:1, fails
The surprise is white on the green. On a fan app I worked on, white labels on buttons failed AA until I darkened the button green to , which gives about 5.6:1 with white. You can also keep the flag green and switch the label to black.
Which text color gives body-size text on the flag green #009C3B a pass at WCAG AA?
Black on #009C3B is about 5.8:1, while white is about 3.6:1 and yellow is about 2.7:1.
Using the Brazil flag colors in web and UI design
Define the four colors once as variables and build everything from them.

:root {
--br-green: #009C3B;
--br-yellow: #FFDF00;
--br-blue: #002776;
--br-white: #FFFFFF;
}
.badge { background: var(--br-yellow); color: var(--br-blue); }
.nav { background: var(--br-blue); color: var(--br-white); }
Use blue for text, navigation and dark surfaces, green for primary actions and yellow for badges, highlights and focus rings. Keep yellow away from white backgrounds as a text color. HSL helps for states: lowering the lightness of hsl(143, 100%, 31%) by five points gives a clean hover color in the same hue.
Gradients need care. Green to yellow is smooth, but green to blue passes through teal, which has no place in the flag, so add a mid stop or keep the transition short.
Try this: Build two buttons, one with background and text, one with background and white text. Run both through a contrast checker and see which one clears 4.5:1.
Print, fashion and interiors: keeping the colors true
The CMYK values in the table come from a direct conversion, and real presses differ. On coated stock the yellow and green land close to the screen version, while the blue is the likeliest to shift. I once approved a banner proof where the navy printed almost black on uncoated paper, so now I ask for a printed swatch of before any run.
For paint, textiles and signage, designers usually match against Pantone references. One reference pairs the green with Pantone 355 C, the yellow with Pantone Yellow C and the blue with Pantone 2147 C, while another lists Pantone 280 for a deeper blue. Those are approximations, so confirm against a physical chip.
In fashion, the full four-color set reads as sportswear or festival wear, so for everyday pieces use one color as the base and the others in small doses. The national football team’s yellow shirt with green trim and blue shorts draws on the same colors, but kit makers choose their own shades each season, so do not treat flag codes as a kit spec. At home, use green or blue as the main wall color and bring yellow in through a lamp, cushions or a door.
Colors that pair well and flags that look similar
Green and yellow turn up on many flags, but the companions change the mood. The Jamaica flag colors pair green and gold with black, which feels earthier, and the Kenya flag colors put green beside red, black and white for a more graphic result. In sport, the Green Bay Packers colors use green and gold in a deeper, field-ready way than Brazil’s brighter pairing.
The yellow deserves a closer look. is a lemon-leaning gold at a hue of 52°, so compare it with our golden yellow page, and note that amber sits warmer and more orange. If you want to see another national blue and white handled differently, the French flag colors show a different blue entirely.
For neutrals, near-black navy such as and a warm off-white such as calm the palette without breaking the flag’s character. Pure black tends to fight the blue, so I avoid it for large areas.
The official colors and what they stand for
Brazil Flag Colors: questions people ask
What are the official colors of the Brazil flag?
The flag uses green, yellow, blue and white. The most widely used digital values are #009C3B, #FFDF00, #002776 and #FFFFFF, though no legal document fixes exact shades.
What is the hex code for the green on the Brazil flag?
The most common value is #009C3B, which is RGB 0, 156, 59. You will also see #009739 and #009440 on other sites, which look almost the same on screen.
What do the colors of the Brazilian flag mean?
Today green is read as the forests, yellow as mineral wealth, blue as the sky and white as peace. Originally, green stood for the House of Braganza and yellow for the House of Habsburg.
Why does the Brazil flag have 27 stars?
Each star stands for one of the 26 states or the Federal District. The count grew from 21 in 1889 to 27 in 1992 as new states were created.
Are the flag colors the same as the Brazil football kit colors?
They come from the same family, but kit makers choose their own shades each season. Use the flag codes for flag artwork and check the kit maker's specs if you need a shirt match.
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
- Miami Dolphins Colors: Hex Codes, RGB and Team Palette
- Honey Blonde Color: Hex Code, RGB and Palettes
- Light Green Color: Hex Code, RGB and Palettes