HEX in HSL: #1A2E05
Noto anche come: Tailwind v3 lime-950
Risultato
#1A2E05 → hsl(89 80% 10%)
I valori sono mostrati a piena precisione, quindi riconvertendo si ottiene esattamente #1a2e05. La forma arrotondata è quella che di solito incolli nel CSS.
Calcolo passo passo
Ogni numero è calcolato dall’input, nulla viene cercato in tabelle.
1. RGB ÷ 255
R = 0.1020 G = 0.1804 B = 0.0196
2. max, min, Δ
max = 0.1804 min = 0.0196 Δ = max − min = 0.1608
3. L
L = (max + min) / 2 = 0.1000 = 10.00%
4. S
S = Δ / (1 − |2L − 1|) = 0.8039 = 80.39%
5. H
max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.0196 − 0.1020) / 0.1608 + 2) = 89.27°
6. HSL
hsl(89.27 80.39% 10.00%)
Tutti i formati
- 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 e Display P3
#1A2E05 è un colore esadecimale, quindi sta dentro sRGB e di conseguenza dentro Display P3. A questa luminosità e tonalità sRGB arriva a una croma di 0.076 e Display P3 a 0.089; questo colore usa il 90% della croma sRGB disponibile.
Snippet CSS
.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); }Colori vicini
I colori più vicini nelle palette Tailwind e CSS (distanza OKLab).
- lime-950#192E03
- v3 green-950#052E16
- green-950#032E15
- v3 emerald-950#022C22
- emerald-950#002C22
- olive-800#2B2B22
- v3 teal-950#042F2E
- teal-950#022F2E
Più chiaro e più scuro, stessa tonalità e croma
- #293E15 · oklch(0.334 0.069 132.1) · ΔL +0.06
- #0C1F00 · oklch(0.214 0.069 132.1) · ΔL −0.06