Convertisseur de Codes Couleur
Convertissez entre HEX, RGB et HSL
Convertissez entre HEX, RGB et HSL
Features of the Color Code Converter
Cas d'utilisation : quand cet outil vous aide
-
Harmoniser les couleurs de marque
Convertissez un HEX de charte graphique en RVB pour PowerPoint ou en CMJN pour l'impression.
Lire le guide (en anglais) → -
Transmettre un design aux développeurs
Traduisez les couleurs de Figma ou Photoshop dans le format CSS de l'équipe.
-
Préparer des fichiers à imprimer
Obtenez les valeurs CMJN de cartes de visite, flyers et emballages.
-
Créer variantes de survol et thèmes
Passez en HSL pour éclaircir ou foncer une couleur pour boutons et mode sombre.
-
Corriger des écarts de couleur
Comprenez pourquoi une couleur diffère entre un site et une appli en comparant les formats.
-
Comprendre les modèles de couleur
Voyez comment une même couleur s'écrit en HEX, RVB, HSL et CMJN.
How to Use the Color Code Converter
- Select your input color format (HEX, RGB, HSL, or CMYK).
- Enter your color value in the input field.
- All equivalent color formats are displayed instantly.
- Click any output value to copy it for use in your CSS or design tool.
Questions fréquentes
What is the difference between HEX and RGB?▾
HEX is a base-16 representation of an RGB color (e.g., #FF5733 = rgb(255, 87, 51)). Both represent the same color — HEX is compact and common in CSS.
When should I use HSL instead of HEX?▾
HSL is easier to manipulate programmatically. Adjusting lightness or saturation is intuitive with HSL, making it great for theming and dynamic color calculations.
Does this converter support alpha transparency?▾
Yes, you can convert RGBA and HSLA colors that include an alpha channel for transparency.
What is CMYK used for?▾
CMYK (Cyan, Magenta, Yellow, Key/Black) is the color model used in professional printing, not screens. Converting to CMYK helps bridge web design and print production.
Color Tips for Web Developers
- CSS supports HEX, RGB, RGBA, HSL, HSLA, and named colors — use whichever is clearest in context.
- HSL is ideal for generating color palettes: change only the hue to get related colors.
- Use opacity in HSL/RGB (rgba or hsla) rather than transparency filters for better performance.
- Color contrast ratio of 4.5:1 is required for WCAG AA accessibility compliance.
- CSS custom properties (--color-primary: #3498db) make global color changes one-line updates.