HEX to RGB: #1A2E05

Also known as: Tailwind v3 lime-950

Result

#1A2E05 → rgb(26 46 5)

Values are shown at full precision, so converting back gives exactly #1a2e05. 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

    #1A2E05 → 1A | 2E | 05
  2. 2. base 16 → base 10

    R = 1A₁₆ = 1×16 + 10 = 26
    G = 2E₁₆ = 2×16 + 14 = 46
    B = 05₁₆ = 0×16 + 5 = 5
  3. 3. RGB

    rgb(26 46 5)

All formats

HEX
#1a2e05
RGB
rgb(26 46 5)
RGB (legacy)
rgb(26, 46, 5)
HSL
hsl(89.27 80.39% 10.00%) → hsl(89 80% 10%)
HWB
hwb(89 2% 82%)
OKLCH
oklch(0.274 0.069 132.1) · oklch(27.4% 0.069 132.1)
OKLab
oklab(0.274 -0.046 0.051)
Lab (D50)
lab(16.49 -14.56 21.11)
LCH (D50)
lch(16.49 25.65 124.60)
Display P3
color(display-p3 0.1196 0.1784 0.0454)
Linear sRGB
color(srgb-linear 0.0103 0.0273 0.0015)

Gamut: sRGB and Display P3

#1A2E05 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.076 and Display P3 reaches 0.089; this color uses 90% of the sRGB chroma available.

CSS snippets

.element {
  color: #1a2e05;
  color: rgb(26 46 5);
  color: hsl(89 80% 10%);
  color: oklch(0.274 0.069 132.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.274 0.069 132.1);
}
/* arbitrary values */
class="text-[#1a2e05] bg-[oklch(0.274_0.069_132.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1196 0.1784 0.0454); }
}

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

  • #293E15 · oklch(0.334 0.069 132.1) · ΔL +0.06
  • #0C1F00 · oklch(0.214 0.069 132.1) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?