#4C7E21

A color in the Green family

#4c7e21 is a color in the Green family: RGB(76, 126, 33), HSL(92°, 58%, 31%), CMYK(40%, 0%, 74%, 51%). Closest named color: forestgreen. Contrast is 4.87:1 on white and 4.31:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#4c7e21
RGBrgb(76 126 33)
RGB (legacy)rgb(76, 126, 33)
RGB %rgb(30% 49% 13%)
HSLhsl(92 58% 31%)
HSV / HSBhsv(92, 74%, 49%)
HWBhwb(92 13% 51%)
CMYKcmyk(40%, 0%, 74%, 51%)
CIELAB (D50)lab(47.83 -29.68 42.26)
LCHlch(47.83 51.64 125.08)
OKLaboklab(0.5381 -0.0927 0.0969)
OKLCHoklch(0.5381 0.1341 133.73)
Decimal5013025

Properties

Color ToneGreen
Closest named colorforestgreen ΔE 4.7
Closest web-safe color#336633
Hue92°
Saturation (HSL / HSV)58% / 74%
Lightness (HSL)31%
Brightness or Value (HSV)49%
Luminance (Rec.601 / Rec.709)39% / 43%
Relative luminance (WCAG)0.1657
Red / Green / Blue76 / 126 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.87:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.31: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 73.5 / -28.2 · As background with white / black text: Lc -79 / 30.5

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: #4c7e21;
  --color-brand-oklch: oklch(53.81% 0.1341 133.73);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(76 126 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#4c7e21] text-[#4c7e21] border-[#4c7e21]">