OKLCH to HEX: #192E03

Also known as: Tailwind lime-950

Result

oklch(0.27312 0.07160 132.268) → #192E03

Values are shown at full precision, so converting back gives exactly #192e03. 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.27312 0.07160 132.268)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.04816
    b = C·sin H = 0.05298
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.265467
    m′ = L − 0.1056·a − 0.0639·b = 0.274820
    s′ = L − 0.0895·a − 1.2915·b = 0.209001
  4. 4. cube

    l = 0.265467³ = 0.018708
    m = 0.274820³ = 0.020756
    s = 0.209001³ = 0.009129
  5. 5. LMS → linear sRGB

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

    R = 0.09804 × 255 = 25.00 → 25
    G = 0.18040 × 255 = 46.00 → 46
    B = 0.01177 × 255 = 3.00 → 3
  7. 7. RGB → HEX

    #192E03

All formats

HEX
#192e03
RGB
rgb(25 46 3)
RGB (legacy)
rgb(25, 46, 3)
HSL
hsl(89.30 87.76% 9.61%) → hsl(89 88% 10%)
HWB
hwb(89 1% 82%)
OKLCH
oklch(0.273 0.072 132.3) · oklch(27.3% 0.072 132.3)
OKLab
oklab(0.273 -0.048 0.053)
Lab (D50)
lab(16.41 -15.17 21.80)
LCH (D50)
lch(16.41 26.56 124.84)
Display P3
color(display-p3 0.1169 0.1783 0.0384)
Linear sRGB
color(srgb-linear 0.0097 0.0273 0.0009)

Gamut: sRGB and Display P3

#192E03 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 94% of the sRGB chroma available.

CSS snippets

.element {
  color: #192e03;
  color: rgb(25 46 3);
  color: hsl(89 88% 10%);
  color: oklch(0.273 0.072 132.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.273 0.072 132.3);
}
/* arbitrary values */
class="text-[#192e03] bg-[oklch(0.273_0.072_132.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1169 0.1783 0.0384); }
}

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

  • #283E13 · oklch(0.333 0.072 132.3) · ΔL +0.06
  • #0B1F00 · oklch(0.213 0.072 132.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?