Skip to content

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.

DarkOliveGreen#556B2F

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

Color codes for DarkOliveGreen
CSS keyworddarkolivegreen
HEX#556B2F
RGBrgb(85, 107, 47)
HSLhsl(82, 39%, 30%)
HWBhwb(82 18% 58%)
OKLCHoklch(49.6% 0.09 126.2)
CMYK (naive, no ICC profile)cmyk(21%, 0%, 56%, 58%)
Decimal5,597,999
Hue familyGreens

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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on darkolivegreen3.53:1FailPassFailFail24.4
White text on darkolivegreen5.94:1PassPassFailPass−84.9
Darkolivegreen text on white5.94:1PassPassFailPass79.7
Darkolivegreen text on black3.53:1FailPassFailFail−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)

  1. 5%
    #5e7239
  2. 15%
    #6f814e
  3. 25%
    #809063
  4. 35%
    #919f78
  5. 45%
    #a2ae8d
  6. 55%
    #b3bca1
  7. 65%
    #c4cbb6
  8. 75%
    #d5dacb
  9. 85%
    #e6e9e0
  10. 95%
    #f7f8f5

Shades (mixed with black)

  1. 5%
    #51662d
  2. 15%
    #485b28
  3. 25%
    #405023
  4. 35%
    #37461f
  5. 45%
    #2f3b1a
  6. 55%
    #263015
  7. 65%
    #1e2510
  8. 75%
    #151b0c
  9. 85%
    #0d1007
  10. 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.

Color harmonies
HarmonyRotationColor
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.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
darkgreen#0064009.0
dimgray#6969699.3
seagreen#2e8b579.4

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
lime-800#3c63005.5
green-800#0166307.2
olive-600#5b5b4b7.3

Code snippets

CSS
.element {
  color: darkolivegreen;
  background-color: #556b2f;
  border-color: rgb(85 107 47);
  outline-color: oklch(49.6% 0.09 126.2);
}
Tailwind CSS
<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 */
SwiftUI
import SwiftUI

extension Color {
  static let darkolivegreen = Color(red: 0.333, green: 0.420, blue: 0.184)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Darkolivegreen = Color(0xFF556B2F)
Flutter
import 'package:flutter/material.dart';

const darkolivegreen = Color(0xFF556B2F);
Android XML
<!-- 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.