Short answer
Green goes with ivory, gold, navy, and maroon when the greens are CSS named colors and the text pair clears WCAG. CSS Color Level 4 sets green to #008000, olive to #808000, and darkgreen to #006400. Sage is not a CSS keyword. The sage HEX below is a computed mix of darkseagreen and gray. White on #008000 is about 5.14:1.
Last verified against the sources listed below.
Key takeaways
- CSS Color Level 4 sets green to #008000, lime to #00ff00, and olive to #808000.
- darkgreen is #006400. forestgreen is #228b22. darkolivegreen is #556b2f.
- Sage is not a CSS named color. One computed mix of darkseagreen and gray is #889e88.
- WCAG 2.2 asks for 4.5:1 on normal text and 3:1 on large text.
- White on CSS green is about 5.14:1. White on the computed sage is about 2.88:1.
- Olive on whitesmoke is about 3.85:1, short of 4.5:1 for normal text.
What color goes with green starts with the CSS keyword green, which is #008000, and a partner that is either much lighter or a clearly different hue. Check the contrast before you set body text in the green itself.
The hex values below come from the named-color table in CSS Color Module Level 4, a Candidate Recommendation Draft dated 1 December 2026. MDN’s named-color page lists the same basic greens: green #008000, lime #00ff00, and olive #808000.
How those greens are mixed from other hues is covered in what colors make green.
Which greens does CSS name?
Sixteen original names include green, lime, and olive. The rest of the greens in this guide are extended keywords from the same table. Sage is not among them.
The module says named colors resolve to sRGB. Keywords are ASCII case-insensitive, so Green and green are the same color. darkgreen has no space.
| Keyword | Hex | Decimal RGB |
|---|---|---|
| lime | #00ff00 | 0 255 0 |
| lawngreen | #7cfc00 | 124 252 0 |
| green | #008000 | 0 128 0 |
| forestgreen | #228b22 | 34 139 34 |
| darkgreen | #006400 | 0 100 0 |
| olive | #808000 | 128 128 0 |
| olivedrab | #6b8e23 | 107 142 35 |
| darkolivegreen | #556b2f | 85 107 47 |
| darkseagreen | #8fbc8f | 143 188 143 |
| seagreen | #2e8b57 | 46 139 87 |
Lime is the bright primary. The keyword green is darker. The editor’s draft is the copy the color module’s text points at for the same named colors.
What color goes with green?
Pair CSS green with a light paper color, and keep the green for headings, rules, or large type if the ratio is tight. White #ffffff on #008000 is about 5.14:1. Ivory #fffff0 on the same green is about 5.09:1.
Leaf and paper. green #008000, ivory #fffff0, white #ffffff, gold #ffd700. Gold is the accent, not the paragraph color. Black on gold is about 14.97:1 if the gold is a large button with black type.
Lime signal: lime #00ff00, navy #000080, white #ffffff, and black #000000. Black on lime is about 15.30 to 1. White on navy is about 16.01 to 1. Do not put white type on lime.
Sea and sand. seagreen #2e8b57, tan #d2b48c, seashell #fff5ee, white #ffffff. White on seagreen is about 4.25:1, under 4.5:1, so use it for large text or for a non-text shape.
A color palette generator can hold the anchor while you try the next swatch. It does not replace the named-color table.
What color goes with olive green?
CSS olive is #808000. It is one of the original 16 names, and it reads as a dark yellow-green, not as a gray leaf. Olivedrab and darkolivegreen are the nearby keywords.
Olive linen. olive #808000, linen #faf0e6, maroon #800000, whitesmoke #f5f5f5. Maroon on linen is about 9.74:1. Olive on whitesmoke is about 3.85:1, which clears the large-text minimum and misses normal text.
Drab field. olivedrab #6b8e23, wheat #f5deb3, cornsilk #fff8dc, sienna #a0522d. Sienna on cornsilk is about 5.27:1. Black on olivedrab is about 5.52:1. White on olivedrab is about 3.81:1.
Dark olive study. darkolivegreen #556b2f, beige #f5f5dc, antiquewhite #faebd7, white #ffffff. White on darkolivegreen is about 5.95:1, so this is the olive-family green that can hold white body text.
Use olive for borders and headings when the background is linen or whitesmoke. Move the paragraph ink to maroon, sienna, or black.
What color goes with sage green?
There is no CSS keyword sage. Do not label a hex as official sage.
The sage in this palette is computed, not a named color. Each 8-bit channel is the arithmetic mean of darkseagreen #8fbc8f (143, 188, 143) and gray #808080 (128, 128, 128). A half is rounded up. That is 136, 158, 136, written #889e88.
Computed sage room. #889e88, floralwhite #fffaf0, burlywood #deb887, navy #000080. Navy on the computed sage is about 5.56:1. Black on it is about 7.29:1. White on it is about 2.88:1.
Keep the computed sage as a fill behind black or navy text, or as a large panel with no small type. Floralwhite is the page color. Burlywood is the warm trim.
If you need a named green that is merely grayish, darkseagreen #8fbc8f is the keyword to open instead. It is lighter than this mix, and it is in the table.
What color goes with dark green?
CSS darkgreen is #006400. Forestgreen is the lighter named green people often mean by a deep leaf.
Dark green and gold. darkgreen #006400, gold #ffd700, ivory #fffff0, black #000000. White on darkgreen is about 7.44:1. Ivory on darkgreen is about 7.37:1. Gold on darkgreen is about 5.30:1.
Forest and rose. forestgreen #228b22, mistyrose #ffe4e1, snow #fffafa, chocolate #d2691e. White on forestgreen is about 4.39:1. Chocolate on snow is about 3.51:1, so chocolate works as large type or as an icon, not as body text on snow.
Green color meaning is a separate question from these hex pairs. Meaning does not change the contrast math.
Do this, and skip this
WCAG 2.2, a W3C Recommendation dated 12 December 2024, asks for at least 4.5:1 for normal text and 3:1 for large-scale text. Large-scale text is at least 18 point, or 14 point bold. Logos and inactive text are excepted. The enhanced criterion asks for 7:1, or 4.5:1 for large text.
The ratios above use that formula on sRGB channels. The color module says the named colors are sRGB. The HTML standard is the document the color module cites for the web platform those keywords sit in.
- Do take green, olive, and darkgreen from the named-color table when you need a stable hex.
- Do label any sage you mix as computed, and write the two source colors.
- Do put black or navy on the computed sage
#889e88, not white. - Do use white on darkgreen
#006400when you need a dark green field with text. - Do not put body text in CSS olive on whitesmoke. The ratio is about 3.85:1.
- Do not treat lime
#00ff00as a background for white type. - Do not invent a CSS keyword for sage. The table does not have one.
- Do not read the word “dark” in a name as a scale. Compare the hex.
Frequently asked questions
What color goes with olive green?
CSS olive is #808000, a dark yellow-green, and it pairs with linen #faf0e6, whitesmoke #f5f5f5, and maroon #800000. Olivedrab #6b8e23 pairs with wheat #f5deb3 and sienna #a0522d. Darkolivegreen #556b2f pairs with beige #f5f5dc and antiquewhite #faebd7. Maroon on linen is about 9.74:1. Olive on whitesmoke is about 3.85:1, so that pair fits a large heading better than body text. These HEX values are the named-color table, not paint-store names.
What color goes with sage green?
Sage is not a keyword in the CSS named-color table. The sage used here is computed: each channel is the mean of darkseagreen #8fbc8f and gray #808080, with a half rounded up, which is #889e88. Put it next to floralwhite #fffaf0 and burlywood #deb887. Navy on that sage is about 5.56:1. Black on it is about 7.29:1. White on it is about 2.88:1, so white text fails both the normal-text and the large-text minimums.
What color goes with dark green?
CSS darkgreen is #006400. It pairs with ivory #fffff0, gold #ffd700, and black #000000. White on darkgreen is about 7.44:1, which clears the WCAG 2.2 normal-text minimum and the 7:1 enhanced figure by a small margin. Gold on darkgreen is about 5.30:1, enough for normal text. Forestgreen #228b22 is a lighter dark green in the same table. White on forestgreen is about 4.39:1, which misses 4.5:1 and still clears the 3:1 large-text minimum.
Are these contrast ratios from a browser tool?
No. They are computed from the WCAG 2.2 relative luminance formula on the 8-bit sRGB channels, then rounded to two decimals. Divide each channel by 255. If that is at or below 0.04045, divide by 12.92. Otherwise add 0.055, divide by 1.055, and raise to 2.4. Luminance is 0.2126 R plus 0.7152 G plus 0.0722 B. The ratio is the lighter luminance plus 0.05, divided by the darker plus 0.05.
Why is CSS green darker than the word suggests?
CSS Color Level 4 says 16 names came from the VGA palette and then HTML, including green, lime, and olive. MDN lists green as #008000 and lime as #00ff00. Lime is the bright sRGB green. The keyword green is half of that in the green channel and zero in red and blue. The specification also notes that the names are not a designed scale. Read the hex. Do not treat the adjective in the keyword as a lightness ranking.
Sources
- CSS Color Module Level 4, named colors · W3C, 2026
- named-color · MDN, 2026
- WCAG 2.2, Contrast (Minimum) · W3C, 2024
- CSS Color Module Level 4, editor's draft · CSS Working Group, 2026
- HTML Living Standard · WHATWG, 2026