CSS named color

Dark Olive Green #556B2F

The CSS keyword darkolivegreen is #556B2F. It is a muted green in the green family. In OKLCH it sits at lightness 0.496, chroma 0.090 and hue 126.2°.

Relative luminance
0.1265
OKLCH L · C · h
0.496 · 0.090 · 126.2
Best text
White 5.94:1
Hue family
Green

#556B2F color codes

HEX
#556B2F
RGB
rgb(85, 107, 47)
HSL
hsl(82, 39%, 30%)
OKLCH
oklch(0.496 0.090 126.2)
OKLab
oklab(0.496 -0.053 0.072)
CIELAB (D65)
L* 42.23, a* -18.83, b* 30.60
XYZ (D65)
X 9.52, Y 12.65, Z 4.63
CMYK (naive)
cmyk(21%, 0%, 56%, 58%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

Legibility

Contrast: is #556B2F accessible?

White text on it reaches 5.94:1, passing AA. Black text manages only 3.53:1, enough for large text only.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    3.53:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc +24
  • White text on it

    5.94:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc −84
  • As text on black

    3.53:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc −22
  • As text on white

    5.94:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc +79

Nearest versions that pass 4.5:1

  • For text on white

    #556B2F 5.94:1

    It already reaches 5.94:1 on white, so no change is needed.

  • For text on black

    #667D40 4.57:1

    Lightening its OKLCH lightness from 0.50 to 0.56 reaches 4.57:1 on black, keeping the hue.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #556B2F live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #556B2F

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #556B2F sits at step 700.

  1. 50#E9FFCB
    White
    1.06
    Black
    19.63
  2. 100#DFF5BF
    White
    1.16
    Black
    17.95
  3. 200#CAE2A9
    White
    1.40
    Black
    14.96
  4. 300#B0C88D
    White
    1.82
    Black
    11.49
  5. 400#94AC6F
    White
    2.50
    Black
    8.38
  6. 500#789053
    White
    3.55
    Black
    5.91
  7. 600#61783C
    White
    4.92
    Black
    4.26
  8. 700This color#556B2F
    White
    5.94
    Black
    3.53
  9. 800#35470F
    White
    10.19
    Black
    2.05
  10. 900#202F00
    White
    14.30
    Black
    1.46
  11. 950#101A00
    White
    17.95
    Black
    1.16

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #556B2F can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.127; #556B2F uses 71% of it. Display P3, which many recent phones and laptops show, reaches 0.148 there: 17% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.090
sRGB edge
0.127
Display P3 edge
0.148
Rec. 2020 edge
0.153
Dominant wavelength
563 nm
Excitation purity
52%
Chromaticity
x 0.3551, y 0.4721
  • This color#556B2F
  • Most vivid in sRGB#506E00
  • Most vivid in Display P3oklch(0.496 0.148 126.2)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #556b2f;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.3296 0.4328 0); }
}

Mixing

Mixing #556B2F

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#AAB597
  • OKLab50%#A6B394
  • OKLCH50%#A6B394

Black #000000

  • sRGB50%#2B3618
  • OKLab50%#1C250C
  • OKLCH50%#1C250C

Its complement #6F548A

  • sRGB50%#62605D
  • OKLab50%#626262
  • OKLCH50%#8D4E3D
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #556b2f, white);
color: color-mix(in oklch, #556b2f 50%, white);

In use

#556B2F in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:15.94:1 Passes
  • Link and body-size textText, 4.5:15.94:1 Passes
  • Large headingLarge text, 3:15.94:1 Passes
  • Icons, borders and focus ringsNon-text, 3:15.94:1 Passes

Dark page

  • Button labelText, 4.5:15.94:1 Passes
  • Link and body-size textText, 4.5:13.14:1 Fails
  • Large headingLarge text, 3:13.14:1 Passes
  • Icons, borders and focus ringsNon-text, 3:13.14:1 Passes

For text on this page, the nearest shade that passes is #6E8649 4.61:1

Color vision

How #556B2F looks with color blindness

Achromatopsia changes it most, ΔE2000 21.0; deuteranopia changes it least, 10.7.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #706529 ΔE2000 10.9

    Distinct

    Reads as muted brown

  • Deuteranopia

    No working green (medium-wavelength) cones

    #6D6333 ΔE2000 10.7

    Distinct

    Reads as muted brown

  • Tritanopia

    No working blue (short-wavelength) cones

    #58665E ΔE2000 16.1

    Distinct

    Reads as grayish green

  • Achromatopsia

    No cone color vision; lightness only

    #646464 ΔE2000 21.0

    Distinct

    Reads as gray

Pairing check

Checked against its complement, #6F548A. Their lightness contrast is only 1.06:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#556B2F · #6F548A50.7Stays distinct
Protanopia#706529 · #485E8C40.7Stays distinct
Deuteranopia#6D6333 · #4E608836.4Stays distinct
Tritanopia#58665E · #6B5C6819.5Stays distinct
Achromatopsia#646464 · #5F5F5F1.8Easily confused

Harmony

Color harmonies for #556B2F

Its complement is #6F548A, a muted violet.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#556B2F
  • Complement#6F548A

Complementary

Open in Harmony Studio
  • −30°#71611B
  • Base#556B2F
  • +30°#30714C
  • Base#556B2F
  • +120°#326692
  • +240°#8C4B5A
  • Base#556B2F
  • +150°#545D95
  • +210°#824D75

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-darkolivegreen: #556b2f;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        darkolivegreen: '#556b2f',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-darkolivegreen: oklch(0.496 0.090 126.2);
}

Design token (W3C DTCG)

{
  "color": {
    "darkolivegreen": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.3333, 0.4196, 0.1843],
        "hex": "#556b2f"
      },
      "$description": "CSS named color darkolivegreen"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let darkolivegreen = Color(.sRGB, red: 0.333, green: 0.420, blue: 0.184, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Darkolivegreen = Color(0xFF556B2F)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #556B2F in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.