Free Accessible CSS Gradient Generator

← All Colors
#556B2F Dark Olive Green

Dark Olive Green Hex Code #556B2F

Dark Olive Green is a medium, moderate green with the hex code #556B2F. In RGB it is 85, 107, 47, and in HSL it is 82°, 39%, 30%. It is one of the 148 named colors in CSS, so you can write “darkolivegreen” instead of the hex code.

HEX
#556B2F
RGB
rgb(85, 107, 47)
HSL
hsl(82, 39%, 30%)
HSV
hsv(82°, 56%, 42%)
CMYK
cmyk(21%, 0%, 56%, 58%)
CSS name
darkolivegreen

CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.

About Dark Olive Green

On a white background Dark Olive Green has a contrast ratio of 5.95:1 (AA), and on black 3.53:1 (AA Large). White 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 Dark Olive Green

Tints mix Dark Olive Green with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.

Color harmonies for Dark Olive Green

These schemes are calculated from Dark Olive Green on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.

Analogous

Open in the color wheel

Triadic

Open in the color wheel

Tetradic

Open in the color wheel

Square

Open in the color wheel

On the artist’s RYB wheel, the complement of Dark Olive Green is #6B2F65, close to the named color Dark Slate Blue.

Dark Olive 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 Dark Olive Green scores against white and black.

Contrast of Dark Olive Green with white and black
AgainstRatioAA normalAA largeAAA normalAAA large
White (#ffffff) 5.95:1 ✓ Pass ✓ Pass ✕ Fail ✓ Pass
Black (#000000) 3.53:1 ✕ Fail ✓ Pass ✕ Fail ✕ Fail
Aa White text on Dark Olive Green5.95:1
Aa Black text on Dark Olive Green3.53:1

Dark Olive Green and color blindness

These are approximate previews of how Dark Olive Green can look with the main types of color vision deficiency.

Protanopia #706529

Dark Olive Green shifts slightly.

Deuteranopia #6D6333

Dark Olive Green shifts slightly.

Tritanopia #58665E

Dark Olive Green changes noticeably.

Achromatopsia #646464

Dark Olive Green changes noticeably.

Gradients with Dark Olive Green

Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.

Dark Olive Green to a lighter tint

background: linear-gradient(135deg, #556b2f 0%, #bbc4ac 100%);

Dark Olive Green to its analogous neighbour

background: linear-gradient(135deg, #556b2f 0%, #376b2f 100%);

Dark Olive Green to its complement

background: linear-gradient(135deg, #556b2f 0%, #452f6b 100%);

Colors similar to Dark Olive Green

How each close match differs from Dark Olive Green.

More green colors →

Use Dark Olive Green in code

CSS
.element {
  color: #556b2f;
  background-color: #556b2f;
  border-color: darkolivegreen;   /* darkolivegreen is a valid CSS color name */
}
CSS variable
:root {
  --color-dark-olive-green: #556b2f;
}
Tailwind
<!-- Tailwind arbitrary values -->
<div class="bg-[#556b2f] text-[#556b2f] border-[#556b2f]"></div>

/* Tailwind v4 theme color */
@theme {
  --color-dark-olive-green: #556b2f;
}

Dark Olive Green questions

What is the hex code for Dark Olive Green?

The hex code for Dark Olive Green is #556B2F. In RGB that is rgb(85, 107, 47), and in HSL it is hsl(82, 39%, 30%).

What is the complementary color of Dark Olive Green?

On the RGB (screen) color wheel, the complement of Dark Olive Green is #452F6B, which is close to Dark Slate Blue. On the artist’s RYB wheel it is #6B2F65, close to Dark Slate Blue.

Should I use white or black text on Dark Olive Green?

White text. It has a contrast ratio of 5.95:1 against Dark Olive Green, which is WCAG AA. The other option scores 3.53:1.

Is Dark Olive Green accessible as a text color on white?

Yes. Dark Olive Green on white scores 5.95:1, which passes WCAG AA for normal text (4.5:1).

What are darker and lighter shades of Dark Olive Green?

Mixing Dark Olive Green with black gives #445626, #33401C, #222B13, #111509 (20% to 80% black). Mixing it with white gives #778959, #99A682, #BBC4AC, #DDE1D5 (20% to 80% white).

More color tools