RGB to HEX: #16A34A

Also known as: Tailwind v3 green-600

Result

rgb(22 163 74) → #16A34A

Values are shown at full precision, so converting back gives exactly #16a34a. The rounded form is what you normally paste into CSS.

Step-by-step math

Every number below is computed from the input, nothing is looked up.

  1. 1. base 10 → base 16

    R = 22 = 1×16 + 6 → 16
    G = 163 = 10×16 + 3 → A3
    B = 74 = 4×16 + 10 → 4A
  2. 2. pairs → HEX

    16 A3 4A → #16A34A

All formats

HEX
#16a34a
RGB
rgb(22 163 74)
RGB (legacy)
rgb(22, 163, 74)
HSL
hsl(142.13 76.22% 36.27%) → hsl(142 76% 36%)
HWB
hwb(142 9% 36%)
OKLCH
oklch(0.627 0.170 149.2) · oklch(62.7% 0.170 149.2)
OKLab
oklab(0.627 -0.146 0.087)
Lab (D50)
lab(58.84 -51.08 35.43)
LCH (D50)
lch(58.84 62.16 145.26)
Display P3
color(display-p3 0.2967 0.6297 0.3300)
Linear sRGB
color(srgb-linear 0.0080 0.3663 0.0685)

Gamut: sRGB and Display P3

#16A34A is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.176 and Display P3 reaches 0.246; this color uses 97% of the sRGB chroma available.

CSS snippets

.element {
  color: #16a34a;
  color: rgb(22 163 74);
  color: hsl(142 76% 36%);
  color: oklch(0.627 0.170 149.2);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.627 0.170 149.2);
}
/* arbitrary values */
class="text-[#16a34a] bg-[oklch(0.627_0.170_149.2)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2967 0.6297 0.3300); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #16a34a calc(l - 0.1) c h); }

Nearby colors

Closest colors in the Tailwind and CSS named palettes (OKLab distance).

Lighter and darker, same hue and chroma

  • #36B65C · oklch(0.687 0.170 149.2) · ΔL +0.06
  • #009038 · oklch(0.567 0.170 149.2) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?