#5F8D21

A color in the Green family

#5f8d21 is a color in the Green family: RGB(95, 141, 33), HSL(86°, 62%, 34%), CMYK(33%, 0%, 77%, 45%). Closest named color: olivedrab. Contrast is 3.95:1 on white and 5.32:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#5f8d21
RGBrgb(95 141 33)
RGB (legacy)rgb(95, 141, 33)
RGB %rgb(37% 55% 13%)
HSLhsl(86 62% 34%)
HSV / HSBhsv(86, 77%, 55%)
HWBhwb(86 13% 45%)
CMYKcmyk(33%, 0%, 77%, 45%)
CIELAB (D50)lab(53.74 -28.95 48.36)
LCHlch(53.74 56.36 120.91)
OKLaboklab(0.5889 -0.0929 0.1095)
OKLCHoklch(0.5889 0.1436 130.33)
Decimal6262049

Properties

Color ToneGreen
Closest named colorolivedrab ΔE 1.6
Closest web-safe color#669933
Hue86°
Saturation (HSL / HSV)62% / 77%
Lightness (HSL)34%
Brightness or Value (HSV)55%
Luminance (Rec.601 / Rec.709)45% / 48%
Relative luminance (WCAG)0.2159
Red / Green / Blue95 / 141 / 33

WCAG 2.2 Contrast Ratio

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

APCA Contrast Lc (reference) — As text on white / black: Lc 66.7 / -35 · As background with white / black text: Lc -72.2 / 37.4

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: #5f8d21;
  --color-brand-oklch: oklch(58.89% 0.1436 130.33);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(95 141 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#5f8d21] text-[#5f8d21] border-[#5f8d21]">