HSL in HEX: #00FF00

Auch bekannt als: CSS lime

Ergebnis

hsl(120.00 100.00% 50.00%) → #00FF00

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #00ff00. 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. 1. input

    H = 120.00°, S = 100.00%, L = 50.00%
  2. 2. C

    C = (1 − |2L − 1|) × S = 1.00000
  3. 3. X

    X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.00000   (H / 60° = 2.0000, sector 2)
  4. 4. m

    m = L − C / 2 = 0.00000
  5. 5. (R′, G′, B′) + m

    (R′, G′, B′) = (0.00000, 1.00000, 0.00000)
    R = round((0.00000 + 0.00000) × 255) = 0
    G = round((1.00000 + 0.00000) × 255) = 255
    B = round((0.00000 + 0.00000) × 255) = 0
  6. 6. RGB → HEX

    #00FF00

Alle Formate

HEX
#00ff00
RGB
rgb(0 255 0)
RGB (legacy)
rgb(0, 255, 0)
HSL
hsl(120.00 100.00% 50.00%) → hsl(120 100% 50%)
HWB
hwb(120 0% 0%)
OKLCH
oklch(0.866 0.295 142.5) · oklch(86.6% 0.295 142.5)
OKLab
oklab(0.866 -0.234 0.179)
Lab (D50)
lab(87.82 -79.27 80.99)
LCH (D50)
lch(87.82 113.33 134.38)
Display P3
color(display-p3 0.4584 0.9853 0.2983)
Linear sRGB
color(srgb-linear 0.0000 1.0000 0.0000)

Gamut: sRGB und Display P3

#00FF00 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.295, Display P3 von 0.331; diese Farbe nutzt 100 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #00ff00;
  color: rgb(0 255 0);
  color: hsl(120 100% 50%);
  color: oklch(0.866 0.295 142.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.866 0.295 142.5);
}
/* arbitrary values */
class="text-[#00ff00] bg-[oklch(0.866_0.295_142.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4584 0.9853 0.2983); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #00ff00 calc(l - 0.1) c h); }

Ähnliche Farben

Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).

Heller und dunkler, gleicher Farbton und gleiche Chroma

  • #3EFF38 · oklch(0.926 0.295 142.5) · ΔL +0.06
  • #00EA00 · oklch(0.806 0.295 142.5) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →