CSS-kleuren en -eenheden begrijpen
HEX-, RGB- en HSL-kleurformaten
CSS ondersteunt meerdere kleurformaten.
<strong>RGB</strong> gebruikt decimale waarden van 0 tot 255.
<strong>HSL</strong> is het meest intuïtief voor designers.
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 voor drukwerk
<strong>CMYK</strong> is het standaard kleurmodel voor drukwerk.
HSV in ontwerpsoftware
<strong>HSV</strong> is het native kleurmodel in tools als Photoshop, Figma en Sketch.
PX vs REM: CSS-eenheden uitgelegd
<strong>Pixels (PX)</strong> zijn absolute eenheden.
Deel pixels door 16 voor REM-waarden.
<strong>EM-eenheden</strong> zijn relatief aan de lettergrootte van het ouderelement.
- 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
Waarom CSS-converters gebruiken?
Handmatig converteren is tijdrovend en foutgevoelig.
- 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 |