HEX ↔ RGB Färg
Konvertera färger mellan HEX, RGB, HSL och HSV.
#1A2B3C
rgb(26, 43, 60)
hsl(210°, 40%, 17%)
Color Converter kalkylatorn ger omedelbara, exakta beräkningar inom detta område. Ange dina värden och få omedelbart resultat med tydlig förklaring. Detta gratis verktyg fungerar helt i din webbläsare utan att data skickas eller lagras.
Exakta beräkningar inom detta område kräver förståelse av de underliggande formlerna och standarderna. Vår kalkylator tillämpar de mest accepterade metoderna rekommenderade av internationella institutioner och vetenskaplig konsensus. Oavsett om du arbetar med privatekonomi, hälsoövervakning, tekniska projekt eller utbildningsändamål — detta verktyg ger tillförlitliga resultat. Gratis, utan registrering, direkt användbart.
Why does the web use hexadecimal colour codes?
Web colours are expressed as hexadecimal (hex) codes because they provide a compact way to represent RGB colour values. Each colour channel (Red, Green, Blue) has 256 possible values (0–255), which maps exactly to two hexadecimal digits (00–FF). So #FF5733 means R=255 (FF), G=87 (57), B=51 (33). The hex format was chosen for HTML in the early 1990s because it is shorter than writing rgb(255, 87, 51) and easier to parse by browsers. Today CSS supports both formats, plus hsl(), oklch() and named colours like tomato or rebeccapurple.
Why designers prefer HSL for colour reasoning
HSL (Hue, Saturation, Lightness) is often preferred by designers because its components map directly to human colour perception. Hue (0–360°) is the colour wheel position: 0°=red, 120°=green, 240°=blue. Saturation (0–100%) controls intensity: 0% is greyscale, 100% is vivid. Lightness (0–100%) controls brightness: 0% is black, 50% is the "pure" colour, 100% is white. To create a lighter variant of a brand colour, simply increase lightness; for a darker variant, decrease it — without needing to decode RGB values. Our converter shows all three representations simultaneously. Pair with our Binary Converter to understand the mathematical foundations of digital colour.
Vanliga frågor
Related Tools
You Might Also Like