HEX to RGB: #166534

Also known as: Tailwind v3 green-800

Result

#166534 → rgb(22 101 52)

Values are shown at full precision, so converting back gives exactly #166534. 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. HEX → pairs

    #166534 → 16 | 65 | 34
  2. 2. base 16 → base 10

    R = 16₁₆ = 1×16 + 6 = 22
    G = 65₁₆ = 6×16 + 5 = 101
    B = 34₁₆ = 3×16 + 4 = 52
  3. 3. RGB

    rgb(22 101 52)

All formats

HEX
#166534
RGB
rgb(22 101 52)
RGB (legacy)
rgb(22, 101, 52)
HSL
hsl(142.78 64.23% 24.12%) → hsl(143 64% 24%)
HWB
hwb(143 9% 60%)
OKLCH
oklch(0.448 0.108 151.3) · oklch(44.8% 0.108 151.3)
OKLab
oklab(0.448 -0.095 0.052)
Lab (D50)
lab(37.33 -33.36 20.72)
LCH (D50)
lch(37.33 39.27 148.16)
Display P3
color(display-p3 0.1887 0.3902 0.2233)
Linear sRGB
color(srgb-linear 0.0080 0.1301 0.0343)

Gamut: sRGB and Display P3

#166534 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.120 and Display P3 reaches 0.167; this color uses 91% of the sRGB chroma available.

CSS snippets

.element {
  color: #166534;
  color: rgb(22 101 52);
  color: hsl(143 64% 24%);
  color: oklch(0.448 0.108 151.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.448 0.108 151.3);
}
/* arbitrary values */
class="text-[#166534] bg-[oklch(0.448_0.108_151.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1887 0.3902 0.2233); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #166534 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

  • #2C7744 · oklch(0.508 0.108 151.3) · ΔL +0.06
  • #005424 · oklch(0.388 0.108 151.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?