Forest Green Code: What You Need to Know

Donna Jul 28, 2026

Ever found yourself admiring the lush, verdant hues of a dense forest, wondering how to replicate that exact shade in your digital designs or coding projects? The color forest green, a rich, dark green reminiscent of the heart of a forest, is a popular choice in various fields, from web design to graphic art. But what exactly is the code for forest green?

Forest Green Color Palette
Forest Green Color Palette

In the world of digital colors, forest green is represented by a combination of red, green, and blue (RGB) values. But before we dive into the code, let's explore the origins and uses of this captivating color.

Colors That Go With Forest Green (Great Color Scheme Ideas)
Colors That Go With Forest Green (Great Color Scheme Ideas)

Understanding Forest Green

Forest green is a dark, muted green shade that evokes images of dense foliage and tranquil woods. It's a color deeply rooted in nature, symbolizing growth, harmony, and balance. In the digital sphere, it's often used to convey trust, stability, and sustainability.

Forest Green & Earthy Tones Color Palette for Natural Designs | Canva Friendly
Forest Green & Earthy Tones Color Palette for Natural Designs | Canva Friendly

In the RGB color model, which is the standard for digital displays, colors are created by combining red, green, and blue light at various intensities. The RGB values for forest green typically range between 0 and 255, with 0 being no light and 255 being full light.

RGB Values for Forest Green

the forest is full of trees, plants and other things to see in this poster
the forest is full of trees, plants and other things to see in this poster

Now, let's get to the heart of the matter. The most common RGB value for forest green is (0, 64, 32). Here's how you can use it in different coding languages:

  • HTML/CSS: color: rgb(0, 64, 32);
  • JavaScript: var color = 'rgb(0, 64, 32)';
  • Python (with Pillow library): color = (0, 64, 32)

Hexadecimal Equivalent

an image of the ocean with different colors and names on it's side, including green
an image of the ocean with different colors and names on it's side, including green

Another way to represent colors in digital platforms is using hexadecimal (hex) codes. The hex code for forest green (RGB value of 0, 64, 32) is #004020. Here's how you can use it:

  • HTML/CSS: color: #004020;
  • JavaScript: var color = '#004020';

Forest Green in Other Color Models

Forest Green Paint Palette with Hex Codes | Earthy Home Decor Colors 2026
Forest Green Paint Palette with Hex Codes | Earthy Home Decor Colors 2026

While RGB is the most common, other color models exist. Let's briefly explore how forest green is represented in these:

CMYK

an image of some type of webpage with different colors and font options on it
an image of some type of webpage with different colors and font options on it
some green plants with water droplets on them and the words dark moss in different languages
some green plants with water droplets on them and the words dark moss in different languages
35+ Best Green Color Palettes with Names and Hex Codes
35+ Best Green Color Palettes with Names and Hex Codes
Dark Green Aesthetic Palette for Witchy & Slytherin Brands
Dark Green Aesthetic Palette for Witchy & Slytherin Brands
#011d14 · Color Palette
#011d14 · Color Palette
the deep forest poster is shown in green and white
the deep forest poster is shown in green and white
Forest Greens
Forest Greens
there are four different colors on the waterlily with lily pads in the foreground
there are four different colors on the waterlily with lily pads in the foreground
Dark Green Shades 🌿 | Deep Green Color Palette with Hex Codes
Dark Green Shades 🌿 | Deep Green Color Palette with Hex Codes
Colour Palette #02
Colour Palette #02
pantone's deep forest green color is shown in the background with white lettering
pantone's deep forest green color is shown in the background with white lettering
four different types of font and numbers on the same color scheme, each with their own name
four different types of font and numbers on the same color scheme, each with their own name
the color palette is green, yellow, brown and white with some flowers on it
the color palette is green, yellow, brown and white with some flowers on it
Minimal Green Color Palette for Creators
Minimal Green Color Palette for Creators
5 Colour Pallet Covers "Green" Aesthetic Themed 💚
5 Colour Pallet Covers "Green" Aesthetic Themed 💚
Deep Forest Green Color
Deep Forest Green Color
an iphone screen showing the time and date for each phone, with different numbers on it
an iphone screen showing the time and date for each phone, with different numbers on it
a bunch of flowers that are on top of each other in different colors and sizes
a bunch of flowers that are on top of each other in different colors and sizes
#006a59 · Color Palette
#006a59 · Color Palette
Fresh Green Color Palette #011  Vibrant Nature HEX Color Inspiration
Fresh Green Color Palette #011 Vibrant Nature HEX Color Inspiration

CMYK is a subtractive color model used in printing. The CMYK values for forest green (0, 64, 32 in RGB) are approximately (100, 0, 50, 50).

HSL/HSV

HSL (Hue, Saturation, Lightness) and HSV (Hue, Saturation, Value) are color models based on human perception of color. The HSL and HSV values for forest green (0, 64, 32 in RGB) are approximately (120°, 50%, 30%) and (120°, 67%, 50%) respectively.

In conclusion, the code for forest green in its most common representation, RGB, is (0, 64, 32). Whether you're a web developer, graphic designer, or just someone who appreciates the beauty of forest green, understanding this code can help you harness the power of this captivating color in your digital projects. Happy coding!