RevealTheme logo

Convertitore di colori (HEX/RGB/HSL)

Converte i colori tra i formati HEX, RGB e HSL. Scelga un colore visivamente o inserisca i valori manualmente.

HEX
#535beb
RGB
rgb(83, 91, 235)
HSL
hsl(237, 79%, 62%)

Come usare questo strumento

  1. 1

    Click the color swatch to open your operating system's color picker and choose a color visually.

  2. 2

    Or type a 6-digit HEX value (such as #535beb, with or without the leading #) into the text field.

  3. 3

    Read the matching rgb(R, G, B) and hsl(H, S%, L%) strings in the result cards below.

  4. 4

    Copy whichever format you need straight into your CSS or design file.

Che cos'è il Convertitore di colori (HEX/RGB/HSL)?

HEX, RGB e HSL sono tre modi di esprimere lo stesso colore. HEX (#RRGGBB) è il più comune nel CSS e negli strumenti di design. RGB (rgb(R,G,B)) separa i canali numericamente. HSL (hsl(H,S%,L%)) è più intuitivo per le persone: la tonalità (hue) è il colore, la saturazione è l'intensità e la luminosità (lightness) è la chiarezza. Usi HSL per progettare le palette; lo converta in HEX per l'implementazione.

Casi d'uso comuni

  • Translating a brand HEX code from a style guide into the rgb() values a legacy stylesheet or email template requires.

  • Grabbing the HSL form of a color so you can nudge its lightness or saturation while keeping the same hue for a palette.

  • Checking the exact RGB channels of a color picked from a screenshot or mockup before writing it into CSS.

  • Confirming what a designer's HEX swatch becomes in RGB for a canvas, SVG, or charting library that wants numeric channels.

  • Teaching or learning how hexadecimal color notation maps to decimal RGB and to the HSL model.

  • Quickly sampling a color visually with the picker and reading all three CSS-ready notations at once.

Domande frequenti

Quando dovrei usare HSL invece di HEX?
In fase di progettazione: HSL le consente di regolare la luminosità o la saturazione in modo indipendente. Poi lo converta in HEX per il codice.
E OKLCH e gli spazi colore moderni?
OKLCH è percettivamente uniforme e migliore per l'accessibilità. È supportato in CSS Color Level 4 (tutti i browser moderni).

Strumenti correlati