HEX in HSL: #4D7C0F
Auch bekannt als: Tailwind v3 lime-700
Ergebnis
#4D7C0F → hsl(86 78% 27%)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #4d7c0f. Die gerundete Form fügst du üblicherweise in CSS ein.
Rechenweg Schritt für Schritt
Jede Zahl wird aus der Eingabe berechnet, nichts ist nachgeschlagen.
1. RGB ÷ 255
R = 0.3020 G = 0.4863 B = 0.0588
2. max, min, Δ
max = 0.4863 min = 0.0588 Δ = max − min = 0.4275
3. L
L = (max + min) / 2 = 0.2725 = 27.25%
4. S
S = Δ / (1 − |2L − 1|) = 0.7842 = 78.42%
5. H
max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.0588 − 0.3020) / 0.4275 + 2) = 85.87°
6. HSL
hsl(85.87 78.42% 27.25%)
Alle Formate
- HEX
- #4d7c0f
- RGB
- rgb(77 124 15)
- RGB (legacy)
- rgb(77, 124, 15)
- HSL
- hsl(85.87 78.42% 27.25%) → hsl(86 78% 27%)
- HWB
- hwb(86 6% 51%)
- OKLCH
- oklch(0.532 0.141 131.6) · oklch(53.2% 0.141 131.6)
- OKLab
- oklab(0.532 -0.093 0.105)
- Lab (D50)
- lab(47.14 -29.18 47.35)
- LCH (D50)
- lch(47.14 55.62 121.65)
- Display P3
- color(display-p3 0.3438 0.4815 0.1526)
- Linear sRGB
- color(srgb-linear 0.0742 0.2016 0.0048)
Gamut: sRGB und Display P3
#4D7C0F ist eine Hex-Farbe und liegt damit in sRGB und folglich in Display P3. Bei dieser Helligkeit und diesem Farbton erreicht sRGB eine Chroma von 0.147, Display P3 von 0.172; diese Farbe nutzt 96 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #4d7c0f;
color: rgb(77 124 15);
color: hsl(86 78% 27%);
color: oklch(0.532 0.141 131.6);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.532 0.141 131.6);
}
/* arbitrary values */
class="text-[#4d7c0f] bg-[oklch(0.532_0.141_131.6)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.3438 0.4815 0.1526); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #4d7c0f calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- lime-700#497D00
- green-700#008236
- v3 green-700#15803D
- forestgreen#228B22
- green#008000
- darkolivegreen#556B2F
- seagreen#2E8B57
- olivedrab#6B8E23
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #5E8E29 · oklch(0.592 0.141 131.6) · ΔL +0.06
- #3C6A00 · oklch(0.472 0.141 131.6) · ΔL −0.06