OKLCH to HEX: #1A2E05

Also known as: Tailwind v3 lime-950

Result

oklch(0.27406 0.06880 132.109) → #1A2E05

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. input

    oklch(0.27406 0.06880 132.109)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.04613
    b = C·sin H = 0.05104
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.266790
    m′ = L − 0.1056·a − 0.0639·b = 0.275671
    s′ = L − 0.0895·a − 1.2915·b = 0.212270
  4. 4. cube

    l = 0.266790³ = 0.018989
    m = 0.275671³ = 0.020949
    s = 0.212270³ = 0.009565
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.010329
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.027321
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.001517
  6. 6. linear → sRGB, × 255

    R = 0.10196 × 255 = 26.00 → 26
    G = 0.18039 × 255 = 46.00 → 46
    B = 0.01960 × 255 = 5.00 → 5
  7. 7. RGB → HEX

    #1A2E05

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?