CSS-Farben und -Einheiten verstehen
HEX-, RGB- und HSL-Farbformate
CSS unterstützt mehrere Farbformate. <strong>HEX-Farben</strong> verwenden eine sechsstellige hexadezimale Notation (z.B. <code>#22c55e</code>).
<strong>RGB (Rot, Grün, Blau)</strong> verwendet Dezimalwerte von 0 bis 255 für jeden Kanal.
<strong>HSL (Farbton, Sättigung, Helligkeit)</strong> ist für Designer am intuitivsten.
CSS Named Colors
CSS provides 147 named colors like coral, steelblue, and rebeccapurple. While convenient for prototyping, named colors offer limited precision. Converting a CSS color name to HEX or RGB gives you exact values you can fine-tune for production use.
CMYK für Druckdesign
<strong>CMYK</strong> ist das Standard-Farbmodell für den Druck. Die Umrechnung von Web-Farben in CMYK hilft bei der Druckvorbereitung.
HSV in Design-Tools
<strong>HSV</strong> ist das native Farbmodell in Tools wie Photoshop, Figma und Sketch.
PX vs REM: CSS-Einheiten erklärt
<strong>Pixel (PX)</strong> sind absolute Einheiten. <strong>REM</strong> ist relativ zur Schriftgröße des Root-Elements.
Die Umrechnung ist einfach: Teilen Sie Pixel durch 16, um REM-Werte zu erhalten.
<strong>EM-Einheiten</strong> sind relativ zur Schriftgröße des Elternelements, im Gegensatz zu REM, das sich auf das Root-Element bezieht.
- 1rem = 16px (default browser setting)
- 1em = parent font-size (context-dependent)
- 0.75rem = 12px — common for small/caption text
- 1.25rem = 20px — common for subheadings
- 2rem = 32px — common for section headings
Warum CSS-Konverter verwenden?
Das manuelle Konvertieren zwischen Farbformaten ist mühsam und fehleranfällig.
- Instant results — paste a value and get the converted output immediately, no formulas needed.
- Copy-ready output — every result includes a one-click copy button with properly formatted CSS syntax.
- Color preview — see a live swatch of the converted color to visually confirm accuracy.
- No installation — works in any browser, on any device. No extensions, downloads, or signups.
- Developer-friendly — shareable URLs with pre-filled values for easy team collaboration.
Common CSS Conversion Workflows
- Design handoff: Figma and Sketch export colors as HEX. Convert to RGB or HSL if your codebase uses those formats.
- Dark mode generation: Take your light-mode HSL palette, adjust lightness values, and convert back to HEX.
- Accessibility checks: Convert colors to RGB to calculate contrast ratios using the WCAG luminance formula.
- Legacy migration: Convert pixel-based layouts to rem-based responsive systems during refactors.
- Cross-browser debugging: Quickly convert colors to match your source code format.
Supported Conversions
| From |
To |
Category |
| HEX | RGB, HSL, RGBA, CSS Name | Color |
| RGB | HEX, HSL | Color |
| HSL | HEX, RGB | Color |
| RGBA | HEX | Color |
| CSS Name | HEX, RGB, HSL | Color |
| PX | REM | Unit |
| REM | PX | Unit |