CSS named color
DarkOliveGreen #556B2F
DarkOliveGreen (CSS keyword darkolivegreen) has the hex code #556B2F and the RGB value rgb(85, 107, 47): a medium-dark, muted yellow-green.
A deep, muted olive green often used for military, outdoor and botanical themes. It is dark enough to pass WCAG AA for normal text on white.
Color codes for DarkOliveGreen
| CSS keyword | darkolivegreen |
|---|---|
| HEX | #556B2F |
| RGB | rgb(85, 107, 47) |
| HSL | hsl(82, 39%, 30%) |
| HWB | hwb(82 18% 58%) |
| OKLCH | oklch(49.6% 0.09 126.2) |
| CMYK (naive, no ICC profile) | cmyk(21%, 0%, 56%, 58%) |
| Decimal | 5,597,999 |
| Hue family | Greens |
Contrast and accessibility
On darkolivegreen, white text has a contrast ratio of 5.94:1 and passes AA for normal text; black text reaches 3.53:1.
WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on darkolivegreen | 3.53:1 | Fail | Pass | Fail | Fail | 24.4 |
| White text on darkolivegreen | 5.94:1 | Pass | Pass | Fail | Pass | −84.9 |
| Darkolivegreen text on white | 5.94:1 | Pass | Pass | Fail | Pass | 79.7 |
| Darkolivegreen text on black | 3.53:1 | Fail | Pass | Fail | Fail | −22.1 |
Tints and shades
Each step mixes darkolivegreen with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, darkolivegreen, white 25%) in CSS.
Tints (mixed with white)
- 5%
#5e7239 - 15%
#6f814e - 25%
#809063 - 35%
#919f78 - 45%
#a2ae8d - 55%
#b3bca1 - 65%
#c4cbb6 - 75%
#d5dacb - 85%
#e6e9e0 - 95%
#f7f8f5
Shades (mixed with black)
- 5%
#51662d - 15%
#485b28 - 25%
#405023 - 35%
#37461f - 45%
#2f3b1a - 55%
#263015 - 65%
#1e2510 - 75%
#151b0c - 85%
#0d1007 - 95%
#040502
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, darkolivegreen's complementary color is #6F548A (close to rebeccapurple), its analogous colors are #71611B and #30714C, and its triadic partners are #326692 and #8C4B5A. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #6f548a |
| Analogous | −30°, +30° | #71611b#30714c |
| Triadic | +120°, +240° | #326692#8c4b5a |
| Split-complementary | +150°, +210° | #545d95#824d75 |
Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.
Warm or cool?
DarkOliveGreen sits on the boundary: its hue of 82° on the HSL wheel is a yellow-green, which reads warm next to blues and cool next to reds and oranges.
Nearest named and Tailwind colors
Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.
Code snippets
.element {
color: darkolivegreen;
background-color: #556b2f;
border-color: rgb(85 107 47);
outline-color: oklch(49.6% 0.09 126.2);
}<div class="bg-[#556b2f] text-white">...</div>
/* or register it once in your CSS (Tailwind v4) */
@theme {
--color-darkolivegreen: #556b2f;
}
/* then use bg-darkolivegreen, text-darkolivegreen, border-darkolivegreen */import SwiftUI
extension Color {
static let darkolivegreen = Color(red: 0.333, green: 0.420, blue: 0.184)
}import androidx.compose.ui.graphics.Color
val Darkolivegreen = Color(0xFF556B2F)import 'package:flutter/material.dart';
const darkolivegreen = Color(0xFF556B2F);<!-- res/values/colors.xml -->
<color name="darkolivegreen">#556B2F</color>Frequently asked questions
- What is the hex code for darkolivegreen?
- The hex code for darkolivegreen is #556B2F. The same color is rgb(85, 107, 47), hsl(82, 39%, 30%) and oklch(49.6% 0.09 126.2), and in CSS you can also write the keyword darkolivegreen directly.
- Is darkolivegreen a warm or cool color?
- DarkOliveGreen sits on the boundary: its hue of 82° on the HSL wheel is a yellow-green, which reads warm next to blues and cool next to reds and oranges.
- What colors go with darkolivegreen?
- Rotating the hue in OKLCH while keeping lightness and chroma, darkolivegreen's complementary color is #6F548A (close to rebeccapurple), its analogous colors are #71611B and #30714C, and its triadic partners are #326692 and #8C4B5A. For text on top, white gives the higher contrast.
- Can you use white text on darkolivegreen?
- White text on darkolivegreen has a contrast ratio of 5.94:1, which passes AA for normal text but not AAA under WCAG 2.2. Black text reaches 3.53:1 and passes AA only for large text (24 px, or 18.66 px bold, and up). In APCA terms that is Lc −84.9 for white and Lc 24.4 for black.
- What is the RGB value of darkolivegreen?
- DarkOliveGreen is rgb(85, 107, 47): red 85, green 107 and blue 47 on the 0 to 255 scale, or 33.3%, 42.0% and 18.4%. As a decimal integer it is 5597999.
Last reviewed by Arielton Oberek.