#228E21

A color in the Green family

#228e21 is a color in the Green family: RGB(34, 142, 33), HSL(119°, 62%, 34%), CMYK(76%, 0%, 77%, 44%). Closest named color: forestgreen. Contrast is 4.23:1 on white and 4.96:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#228e21
RGBrgb(34 142 33)
RGB (legacy)rgb(34, 142, 33)
RGB %rgb(13% 56% 13%)
HSLhsl(119 62% 34%)
HSV / HSBhsv(119, 77%, 56%)
HWBhwb(119 13% 44%)
CMYKcmyk(76%, 0%, 77%, 44%)
CIELAB (D50)lab(51.66 -46.7 45.37)
LCHlch(51.66 65.11 135.83)
OKLaboklab(0.5662 -0.1376 0.1046)
OKLCHoklch(0.5662 0.1728 142.77)
Decimal2264609

Properties

Color ToneGreen
Closest named colorforestgreen ΔE 0.9
Closest web-safe color#339933
Hue119°
Saturation (HSL / HSV)62% / 77%
Lightness (HSL)34%
Brightness or Value (HSV)56%
Luminance (Rec.601 / Rec.709)38% / 44%
Relative luminance (WCAG)0.198
Red / Green / Blue34 / 142 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.23:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.96: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 68.7 / -32.9 · As background with white / black text: Lc -74.2 / 35.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: #228e21;
  --color-brand-oklch: oklch(56.62% 0.1728 142.77);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(34 142 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#228e21] text-[#228e21] border-[#228e21]">