Forest green color (#228B22)
#228B22 (Forest green) is a dark green colour. It is rgb(34, 139, 34) in RGB and hsl(120, 61%, 34%) in HSL. Text in black reads better on it: the contrast is 4.78:1 against black and 4.39:1 against white.
How to work it out
- 1
A hex code is three pairs of base-16 digits: red, green and blue, from 00 (none) to FF (full).
\mathrm{#228B22}:\quad R=\mathrm{22}_{16}=34,\ G=\mathrm{8B}_{16}=139,\ B=\mathrm{22}_{16}=34 - 2
HSL describes the same colour as a hue angle on the colour wheel (0° red, 120° green, 240° blue), a saturation and a lightness.
- 3
The complementary colour sits opposite on the wheel: add 180° to the hue.
120^\circ + 180^\circ = 300^\circ ;\Rightarrow; \mathrm{#8B228B} - 4
Contrast is the ratio of the lighter to the darker relative luminance, each plus 0.05. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text (AA).
LaTeX source of the formulas on this page
\[ \mathrm{#228B22} = \mathrm{rgb}(34, 139, 34) \]
\[ \mathrm{#228B22}:\quad R=\mathrm{22}_{16}=34,\ G=\mathrm{8B}_{16}=139,\ B=\mathrm{22}_{16}=34 \]
\[ H=120^\circ,\quad S=61\%,\quad L=34\% \]
\[ 120^\circ + 180^\circ = 300^\circ ;\Rightarrow; \mathrm{#8B228B} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 4.39:1\ \text{(on white)} \]Forest green in every colour format
| Format | Value |
|---|---|
| HEX | #228B22 |
| RGB | rgb(34, 139, 34) |
| RGB (percent) | rgb(13.3%, 54.5%, 13.3%) |
| HSL | hsl(120, 61%, 34%) |
| HSV / HSB | hsv(120, 76%, 55%) |
| CMYK | cmyk(76%, 0%, 76%, 45%) |
| Decimal | 2263842 |
| Description | dark green |
| CSS name | forestgreen |
Text contrast (WCAG)
| Background of this colour with… | Contrast | AA normal (4.5) | AA large (3) | AAA normal (7) | AAA large (4.5) |
|---|---|---|---|---|---|
| White text | 4.39:1 | fail | pass | fail | fail |
| Black text | 4.78:1 | pass | pass | fail | pass |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #061706 #0B2E0B #114611 #175D17 #1C741C |
| This colour | #228B22 |
| Tints (mixed with white) | #479E47 #6CB26C #91C591 #B5D8B5 #DAECDA |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #8E7D0E | 46 |
| Deuteranopia | #82752D | 46 |
| Tritanopia | #008777 | 47 |
| Grayscale | #787878 | - |
Nearest named colours
| Name | Hex |
|---|---|
| Green | #008000 |
| Dark green | #006400 |
| Olive drab | #6B8E23 |
| Medium sea green | #3CB371 |
Questions
What is the RGB value of #228B22?
rgb(34, 139, 34): red 34, green 139, blue 34.
What is the HSL value of #228B22?
hsl(120, 61%, 34%): a hue of 120°, 61% saturation and 34% lightness.
What is the complementary colour of #228B22?
#8B228B, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #DD74DD.
Should I use white or black text on #228B22?
Black. White gives 4.39:1 and black 4.78:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #228B22?
cmyk(76%, 0%, 76%, 45%). This is a simple formula conversion; printed colours depend on the printer profile.
Is #228B22 a named colour?
Yes: it is the CSS colour name "forestgreen".