#178C21

A color in the Green family

#178c21 is a color in the Green family: RGB(23, 140, 33), HSL(125°, 72%, 32%), CMYK(84%, 0%, 76%, 45%). Closest named color: forestgreen. Contrast is 4.37:1 on white and 4.81:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#178c21
RGBrgb(23 140 33)
RGB (legacy)rgb(23, 140, 33)
RGB %rgb(9% 55% 13%)
HSLhsl(125 72% 32%)
HSV / HSBhsv(125, 84%, 55%)
HWBhwb(125 9% 45%)
CMYKcmyk(84%, 0%, 76%, 45%)
CIELAB (D50)lab(50.78 -47.66 44.45)
LCHlch(50.78 65.17 136.99)
OKLaboklab(0.5585 -0.1396 0.1027)
OKLCHoklch(0.5585 0.1733 143.66)
Decimal1543201

Properties

Color ToneGreen
Closest named colorforestgreen ΔE 0.5
Closest web-safe color#009933
Hue125°
Saturation (HSL / HSV)72% / 84%
Lightness (HSL)32%
Brightness or Value (HSV)55%
Luminance (Rec.601 / Rec.709)36% / 42%
Relative luminance (WCAG)0.1905
Red / Green / Blue23 / 140 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.37:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.81: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.7 / -32 · As background with white / black text: Lc -75.2 / 34.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: #178c21;
  --color-brand-oklch: oklch(55.85% 0.1733 143.66);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(23 140 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#178c21] text-[#178c21] border-[#178c21]">