#2D7828

A color in the Green family

#2d7828 is a color in the Green family: RGB(45, 120, 40), HSL(116°, 50%, 31%), CMYK(62%, 0%, 67%, 53%). Closest named color: green. Contrast is 5.48:1 on white and 3.83:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#2d7828
RGBrgb(45 120 40)
RGB (legacy)rgb(45, 120, 40)
RGB %rgb(18% 47% 16%)
HSLhsl(116 50% 31%)
HSV / HSBhsv(116, 67%, 47%)
HWBhwb(116 16% 53%)
CMYKcmyk(62%, 0%, 67%, 53%)
CIELAB (D50)lab(44.49 -36.62 35.37)
LCHlch(44.49 50.91 135.99)
OKLaboklab(0.5078 -0.1082 0.0837)
OKLCHoklch(0.5078 0.1368 142.28)
Decimal2979880

Properties

Color ToneGreen
Closest named colorgreen ΔE 4.2
Closest web-safe color#336633
Hue116°
Saturation (HSL / HSV)50% / 67%
Lightness (HSL)31%
Brightness or Value (HSV)47%
Luminance (Rec.601 / Rec.709)35% / 39%
Relative luminance (WCAG)0.1414
Red / Green / Blue45 / 120 / 40

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.48:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.83:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 77 / -24.7 · As background with white / black text: Lc -82.4 / 27

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #2d7828;
  --color-brand-oklch: oklch(50.78% 0.1368 142.28);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(45 120 40 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2d7828] text-[#2d7828] border-[#2d7828]">