#4D7F21

A color in the Green family

#4d7f21 is a color in the Green family: RGB(77, 127, 33), HSL(92°, 59%, 31%), CMYK(39%, 0%, 74%, 50%). Closest named color: forestgreen. Contrast is 4.8:1 on white and 4.37:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#4d7f21
RGBrgb(77 127 33)
RGB (legacy)rgb(77, 127, 33)
RGB %rgb(30% 50% 13%)
HSLhsl(92 59% 31%)
HSV / HSBhsv(92, 74%, 50%)
HWBhwb(92 13% 50%)
CMYKcmyk(39%, 0%, 74%, 50%)
CIELAB (D50)lab(48.21 -29.73 42.65)
LCHlch(48.21 52 124.88)
OKLaboklab(0.5414 -0.093 0.0978)
OKLCHoklch(0.5414 0.1349 133.57)
Decimal5078817

Properties

Color ToneGreen
Closest named colorforestgreen ΔE 4.5
Closest web-safe color#666633
Hue92°
Saturation (HSL / HSV)59% / 74%
Lightness (HSL)31%
Brightness or Value (HSV)50%
Luminance (Rec.601 / Rec.709)40% / 43%
Relative luminance (WCAG)0.1687
Red / Green / Blue77 / 127 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.80:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.37: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.1 / -28.6 · As background with white / black text: Lc -78.5 / 31

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: #4d7f21;
  --color-brand-oklch: oklch(54.14% 0.1349 133.57);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(77 127 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#4d7f21] text-[#4d7f21] border-[#4d7f21]">