Forest Green Hex Code #228B22
Forest Green is a medium, moderate green with the hex code #228B22. In RGB it is 34, 139, 34, and in HSL it is 120°, 61%, 34%. It is one of the 148 named colors in CSS, so you can write “forestgreen” instead of the hex code.
- HEX
- #228B22
- RGB
- rgb(34, 139, 34)
- HSL
- hsl(120, 61%, 34%)
- HSV
- hsv(120°, 76%, 55%)
- CMYK
- cmyk(76%, 0%, 76%, 45%)
- CSS name
- forestgreen
CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.
About Forest Green
On a white background Forest Green has a contrast ratio of 4.39:1 (AA Large), and on black 4.78:1 (AA). Black text is the better choice on top of it.
It sits between the warm and cool halves of the color wheel, so it pairs comfortably with either.
Green suggests growth, health and success, so it is common for confirmations, finance and eco brands. Check text contrast carefully, because many mid-tone greens fall short of the WCAG minimum with white text.
Shades and tints of Forest Green
Tints mix Forest Green with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.
Color harmonies for Forest Green
These schemes are calculated from Forest Green on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.
On the artist’s RYB wheel, the complement of Forest Green is #8B2222, close to the named color Brown.
Forest Green contrast and accessibility
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Forest Green scores against white and black.
| Against | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White (#ffffff) | 4.39:1 | ✕ Fail | ✓ Pass | ✕ Fail | ✕ Fail |
| Black (#000000) | 4.78:1 | ✓ Pass | ✓ Pass | ✕ Fail | ✓ Pass |
Forest Green and color blindness
These are approximate previews of how Forest Green can look with the main types of color vision deficiency.
Forest Green changes noticeably.
Forest Green changes noticeably.
Forest Green changes noticeably.
Forest Green changes noticeably.
Gradients with Forest Green
Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.
Forest Green to a lighter tint
background: linear-gradient(135deg, #228b22 0%, #a7d1a7 100%); Forest Green to its analogous neighbour
background: linear-gradient(135deg, #228b22 0%, #228b56 100%); Forest Green to its complement
background: linear-gradient(135deg, #228b22 0%, #8b228b 100%); Colors similar to Forest Green
How each close match differs from Forest Green.
Use Forest Green in code
.element {
color: #228b22;
background-color: #228b22;
border-color: forestgreen; /* forestgreen is a valid CSS color name */
} :root {
--color-forest-green: #228b22;
} <!-- Tailwind arbitrary values -->
<div class="bg-[#228b22] text-[#228b22] border-[#228b22]"></div>
/* Tailwind v4 theme color */
@theme {
--color-forest-green: #228b22;
} Forest Green questions
What is the hex code for Forest Green?
The hex code for Forest Green is #228B22. In RGB that is rgb(34, 139, 34), and in HSL it is hsl(120, 61%, 34%).
What is the complementary color of Forest Green?
On the RGB (screen) color wheel, the complement of Forest Green is #8B228B, which is close to Purple. On the artist’s RYB wheel it is #8B2222, close to Brown.
Should I use white or black text on Forest Green?
Black text. It has a contrast ratio of 4.78:1 against Forest Green, which is WCAG AA. The other option scores 4.39:1.
Is Forest Green accessible as a text color on white?
Only for large text. Forest Green on white scores 4.39:1, which passes WCAG AA for large text (3:1) but not for normal text (4.5:1).
What are darker and lighter shades of Forest Green?
Mixing Forest Green with black gives #1B6F1B, #145314, #0E380E, #071C07 (20% to 80% black). Mixing it with white gives #4EA24E, #7AB97A, #A7D1A7, #D3E8D3 (20% to 80% white).