#4F7B21

A color in the Green family

#4f7b21 is a color in the Green family: RGB(79, 123, 33), HSL(89°, 58%, 31%), CMYK(36%, 0%, 73%, 52%). Closest named color: darkolivegreen. Contrast is 5.01:1 on white and 4.19:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#4f7b21
RGBrgb(79 123 33)
RGB (legacy)rgb(79, 123, 33)
RGB %rgb(31% 48% 13%)
HSLhsl(89 58% 31%)
HSV / HSBhsv(89, 73%, 48%)
HWBhwb(89 13% 52%)
CMYKcmyk(36%, 0%, 73%, 52%)
CIELAB (D50)lab(47.02 -27.26 41.53)
LCHlch(47.02 49.68 123.28)
OKLaboklab(0.5319 -0.0861 0.0952)
OKLCHoklch(0.5319 0.1284 132.11)
Decimal5208865

Properties

Color ToneGreen
Closest named colordarkolivegreen ΔE 5.4
Closest web-safe color#666633
Hue89°
Saturation (HSL / HSV)58% / 73%
Lightness (HSL)31%
Brightness or Value (HSV)48%
Luminance (Rec.601 / Rec.709)39% / 42%
Relative luminance (WCAG)0.1594
Red / Green / Blue79 / 123 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.01:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.19: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 74.5 / -27.2 · As background with white / black text: Lc -79.9 / 29.6

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: #4f7b21;
  --color-brand-oklch: oklch(53.19% 0.1284 132.11);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(79 123 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#4f7b21] text-[#4f7b21] border-[#4f7b21]">