HEX to OKLCH: #016630

Also known as: Tailwind green-800

Result

#016630 → oklch(0.447 0.119 151.4)

Values are shown at full precision, so converting back gives exactly #016630. 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. sRGB → linear

    R: 1/255 = 0.00392 → 0.000304  (÷ 12.92)
    G: 102/255 = 0.40000 → 0.132868  (((x + 0.055) / 1.055)^2.4)
    B: 48/255 = 0.18824 → 0.029557  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.072907
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.093682
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.056078
  3. 3. cube root

    l′ = ∛0.072907 = 0.417757
    m′ = ∛0.093682 = 0.454170
    s′ = ∛0.056078 = 0.382765
  4. 4. LMS′ → Oklab

    L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.44680
    a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.10420
    b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.05680
  5. 5. Oklab → OKLCH

    C = √(a² + b²) = 0.11868
    H = atan2(b, a) = 151.405°
    L = 0.44680
  6. 6. OKLCH

    oklch(0.44680 0.11868 151.405)
    rounded: oklch(0.447 0.119 151.4)

All formats

HEX
#016630
RGB
rgb(1 102 48)
RGB (legacy)
rgb(1, 102, 48)
HSL
hsl(147.92 98.06% 20.20%) → hsl(148 98% 20%)
HWB
hwb(148 0% 60%)
OKLCH
oklch(0.447 0.119 151.4) · oklch(44.7% 0.119 151.4)
OKLab
oklab(0.447 -0.104 0.057)
Lab (D50)
lab(37.32 -36.73 22.84)
LCH (D50)
lch(37.32 43.26 148.13)
Display P3
color(display-p3 0.1674 0.3937 0.2107)
Linear sRGB
color(srgb-linear 0.0003 0.1329 0.0296)

Gamut: sRGB and Display P3

#016630 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.119 and Display P3 reaches 0.166; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #016630;
  color: rgb(1 102 48);
  color: hsl(148 98% 20%);
  color: oklch(0.447 0.119 151.4);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.447 0.119 151.4);
}
/* arbitrary values */
class="text-[#016630] bg-[oklch(0.447_0.119_151.4)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1674 0.3937 0.2107); }
}

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

  • #217841 · oklch(0.507 0.119 151.4) · ΔL +0.06
  • #005520 · oklch(0.387 0.119 151.4) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?