#028C21

A color in the Green family

#028c21 is a color in the Green family: RGB(2, 140, 33), HSL(133°, 97%, 28%), CMYK(99%, 0%, 76%, 45%). Closest named color: forestgreen. Contrast is 4.4:1 on white and 4.78:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#028c21
RGBrgb(2 140 33)
RGB (legacy)rgb(2, 140, 33)
RGB %rgb(1% 55% 13%)
HSLhsl(133 97% 28%)
HSV / HSBhsv(133, 99%, 55%)
HWBhwb(133 1% 45%)
CMYKcmyk(99%, 0%, 76%, 45%)
CIELAB (D50)lab(50.58 -49.39 44.17)
LCHlch(50.58 66.26 138.2)
OKLaboklab(0.5563 -0.1438 0.1022)
OKLCHoklch(0.5563 0.1764 144.59)
Decimal166945

Properties

Color ToneGreen
Closest named colorforestgreen ΔE 0.9
Closest web-safe color#009933
Hue133°
Saturation (HSL / HSV)97% / 99%
Lightness (HSL)28%
Brightness or Value (HSV)55%
Luminance (Rec.601 / Rec.709)34% / 40%
Relative luminance (WCAG)0.1888
Red / Green / Blue2 / 140 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.40:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.78: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 69.8 / -31.9 · As background with white / black text: Lc -75.2 / 34.3

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: #028c21;
  --color-brand-oklch: oklch(55.63% 0.1764 144.59);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(2 140 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#028c21] text-[#028c21] border-[#028c21]">