#2D7B21

A color in the Green family

#2d7b21 is a color in the Green family: RGB(45, 123, 33), HSL(112°, 58%, 31%), CMYK(63%, 0%, 73%, 52%). Closest named color: green. Contrast is 5.29:1 on white and 3.97:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#2d7b21
RGBrgb(45 123 33)
RGB (legacy)rgb(45, 123, 33)
RGB %rgb(18% 48% 13%)
HSLhsl(112 58% 31%)
HSV / HSBhsv(112, 73%, 48%)
HWBhwb(112 13% 52%)
CMYKcmyk(63%, 0%, 73%, 52%)
CIELAB (D50)lab(45.46 -38.2 39.38)
LCHlch(45.46 54.87 134.13)
OKLaboklab(0.5156 -0.1137 0.0915)
OKLCHoklch(0.5156 0.146 141.17)
Decimal2980641

Properties

Color ToneGreen
Closest named colorgreen ΔE 3.1
Closest web-safe color#336633
Hue112°
Saturation (HSL / HSV)58% / 73%
Lightness (HSL)31%
Brightness or Value (HSV)48%
Luminance (Rec.601 / Rec.709)35% / 39%
Relative luminance (WCAG)0.1483
Red / Green / Blue45 / 123 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.29:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.97: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 76 / -25.8 · As background with white / black text: Lc -81.3 / 28.1

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: #2d7b21;
  --color-brand-oklch: oklch(51.56% 0.146 141.17);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(45 123 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2d7b21] text-[#2d7b21] border-[#2d7b21]">