There is no single Excel green color code: a commonly used Excel/Office green is RGB (0, 176, 80), or hex #00B050. If you mean the standard web color named green, that is RGB (0, 128, 0), or #008000; a workbook’s theme can also supply different greens.
That distinction matters when you need an exact match. The color shown in a cell may come from a theme, a custom choice, a conditional-formatting rule, or a copied style—not from one universal Excel setting. Here are the useful codes and ways to apply, identify, and choose a shade.
Quick reference: common Excel green codes
Use the code that matches what you mean by green. RGB describes a color as three numeric channels, each from 0 to 255. Hex writes those same channel values in base 16, with two characters per channel.
- Frequently used Office green: RGB (0, 176, 80), hex
#00B050. This vivid green is common in Excel examples and Office-related designs, but it is not guaranteed to be the default green in every workbook. - Standard web green: RGB (0, 128, 0), hex
#008000. It is darker than #00B050. The word green in a website’s CSS or a design reference often means this exact value. - Legacy Office theme green: RGB (112, 173, 71), hex
#70AD47. It appears in older Office theme palettes and is a softer, more muted shade.
These are distinct colors, not alternative spellings of the same color. If a report specifies a brand color or an exact hex value, use that specification rather than assuming that any green swatch will match.
Why Excel does not have one universal green
Excel lets a workbook use theme colors, standard palette colors, and custom colors. A theme contains coordinated colors for text, backgrounds, accents, and links. The theme’s accent colors can be used by charts, shapes, tables, and cell formatting, and theme shades may be offered alongside the main colors. A different workbook theme can therefore make the same theme-color selection appear as a different green.
Custom colors work differently: they specify a particular color value rather than a theme position. A custom RGB green stays that color when the workbook theme changes. However, opening a workbook on a screen with different display settings, or printing it on a different device, can still make it look different to a person.
Excel’s interface also uses color for different purposes. A green cell fill is not the same as green text, a green chart series, or the green used to indicate a selected cell or an application status. If someone asks for an Excel green code, it is worth confirming which object and which shade they mean.
How to set an exact green fill or font color
In Excel for Microsoft 365 on Windows, use a custom color when you need a precise RGB value rather than a close visual match from the palette.
- Select the cell or range to format.
- For a fill, open Home > Fill Color using the arrow beside the paint-bucket icon. For text, open Home > Font Color using the arrow beside the font-color icon.
- Choose More Colors, then open the Custom tab in the color dialog.
- Enter the red, green, and blue values. For
#00B050, enter Red 0, Green 176, and Blue 80. For#008000, enter Red 0, Green 128, and Blue 0. - Confirm the dialog. The selected cells now use that custom color for the chosen formatting property.
The fill and font controls are separate. Choosing a green font color does not change the cell background, and choosing a green fill does not recolor its text. If you need both, apply each formatting choice separately. To remove a fill, use Home > Fill Color > No Fill; this does not remove the cell’s value or other formatting.
On Excel for Mac, the Home tab also provides fill and font color controls, but the color dialog’s layout and labels can differ by release. In Excel for the web, use the Home-tab color controls; available custom-color entry options can depend on the browser version and interface. If you cannot enter a hex value directly, convert it to RGB and enter the three channels where the custom-color dialog allows it.
RGB, hex, and theme colors explained
RGB and hex are two ways to describe the same color. For #00B050, the pairs are 00 for red, B0 for green, and 50 for blue. Converting each pair from hexadecimal gives 0, 176, and 80. The leading hash mark is customary in web design, but it is not part of the RGB values entered into Excel’s numeric fields.
A theme color is not simply another notation for a fixed RGB number. It identifies a position in the workbook’s theme palette, such as an accent color. Excel can generate lighter or darker variations of a theme color. If the workbook theme changes, those theme-linked colors can update with it, while manually specified custom RGB colors are intended to remain fixed.
This is why two cells that look similar may behave differently after a theme change. One may be set to a theme accent with a tint, while the other uses a custom RGB value. If you are matching a color across workbooks, use a specified RGB or hex code when exact consistency is more important than having the color respond to theme changes.
Using green in conditional formatting
Conditional formatting applies a format when a value or other condition meets a rule. To create a simple rule in Excel for Microsoft 365 on Windows, select the cells and choose Home > Conditional Formatting. Select a suitable rule type, set its condition, and choose a formatting style. For a specific custom green, open the rule’s formatting options and set the fill or font color using the available color dialog.
For example, a sales table might use green fill to flag values at or above a target, while values below target use a different format. Green then communicates a rule result, not a property of the number itself. If the target changes, the cells that appear green can change even though the rule’s chosen shade has not.
When a cell looks green unexpectedly, check Home > Conditional Formatting > Manage Rules. A rule may be applying the color and taking precedence over the fill chosen manually. Rule order and the rule’s scope can affect what appears. If the format should be constant regardless of cell contents, remove or edit the relevant conditional-formatting rule rather than repeatedly changing the manual fill.
How to identify a green already in a workbook
Start by selecting the cell and checking the relevant color control on the Home tab. The palette may mark a theme color or show the current selection, but a visual match alone does not always reveal whether the color is theme-based or custom. Also check conditional formatting if the displayed color changes when values change or does not respond to manual formatting.
For a workbook-wide match, inspect a representative cell that is not affected by conditional formatting and open the fill or font color menu. If the exact RGB value is not obvious in the interface, compare it with the original style or ask for the source color specification. Copying a cell can preserve its formatting, but it may also bring along borders, number formats, and conditional formatting, so copying the whole cell is not always the best way to transfer only a color.
When matching colors between Excel and another application, compare numeric values rather than judging by eye. For instance, #00B050 and #70AD47 both read as green, but the former is brighter and more saturated while the latter is more muted. A small difference can be conspicuous in a chart legend, dashboard, or company-branded report.
Choosing a green that works in a spreadsheet
The best shade depends on what the green is meant to communicate and how the workbook will be read. A strong fill can draw attention to a key result, but large areas of saturated color may make text harder to read. A pale green can be more suitable for broad table highlighting, while dark green text may be clearer on a light background.
- For an exact match: use the supplied RGB or hex specification and apply it as a custom color.
- For a theme-based workbook: choose a theme accent or shade so the color remains coordinated with the workbook palette.
- For a dashboard: reserve vivid green for a small number of important states, such as meeting a target.
- For readability: check the contrast between text and fill, and avoid relying on color alone to convey meaning.
Color is not equally distinguishable for every reader, and the same shade can appear differently on different displays or in print. Pair green status indicators with text such as On target or Complete, an icon, or another clear cue. This makes the information more usable without requiring readers to identify a color precisely.
Frequently Asked Questions
What is the RGB code for Excel green?
A commonly used Excel/Office green is RGB (0, 176, 80), equivalent to hex #00B050. Excel does not have one mandatory green, so a particular workbook may use a different theme or custom shade.
What is the hex code for standard green?
The standard web color named green is #008000, or RGB (0, 128, 0). It is darker than the often-used Office green #00B050.
How do I enter a hex color in Excel?
Use the fill or font color menu, choose More Colors, and enter the corresponding red, green, and blue channel values in the Custom color dialog. Some interfaces may offer a direct hex field; if yours does not, convert the hex pairs to decimal RGB values.
Why did my Excel green change when I changed the theme?
The cell may use a theme color rather than a fixed custom RGB color. Theme-linked colors follow the workbook’s palette. Apply the exact color as a custom RGB value if it must remain independent of theme changes.
Why is a cell green even after I change its fill?
A conditional-formatting rule may be setting the visible color. Check Home > Conditional Formatting > Manage Rules and review rules that apply to the selected cell, then edit or remove the relevant rule if appropriate.
Related
- Excel File Too Large to Email? Practical Fixes
- Excel File Size Too Large? How to Reduce It
- Excel File Too Big? How to Reduce Workbook File Size Safely
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel Text to Columns Using Enter: Split Line BreaksTo split a cell at an embedded line break with Excel Text to Columns, choose Data > Text…
- Excel Protect Sheet: Can Users Clear Filters?Yes. In Excel for Microsoft 365 on Windows, you can protect a worksheet and still let users clear…
- Excel Sum Minus: How to Add and Subtract Numbers in ExcelTo subtract a value from a total in Excel, combine SUM with the minus sign: with numbers in…
- Excel Power Query: Import Multiple CSV FilesTo import and combine multiple CSV files in Excel for Microsoft 365 on Windows, put the files in…
- Excel Keyboard Shortcut to Highlight a Cell with ColorIn Excel for Microsoft 365 on Windows, select the cell or range and press Alt, H, H to…
- Excel Shortcut Keys Cheat Sheet: Essential Windows KeysFor Excel for Microsoft 365 on Windows, the most useful shortcut keys are Ctrl+C to copy, Ctrl+V to…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.