RevealTheme logo

Conversor de Cores (HEX/RGB/HSL)

Converta cores entre os formatos HEX, RGB e HSL. Escolha uma cor visualmente ou insira os valores manualmente.

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

Como usar esta ferramenta

  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.

O que é o Conversor de Cores (HEX/RGB/HSL)?

HEX, RGB e HSL são três maneiras de expressar a mesma cor. HEX (#RRGGBB) é o mais comum em CSS e nas ferramentas de design. RGB (rgb(R,G,B)) separa os canais numericamente. HSL (hsl(H,S%,L%)) é mais intuitivo para as pessoas: o matiz (hue) é a cor, a saturação é a intensidade e a luminosidade (lightness) é o brilho. Use HSL ao projetar paletas; converta para HEX para a implementação.

Casos de uso comuns

  • 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.

Perguntas frequentes

Quando devo usar HSL em vez de HEX?
Ao projetar: o HSL permite ajustar a luminosidade ou a saturação de forma independente. Depois converta para HEX para o código.
E o OKLCH e os espaços de cor modernos?
O OKLCH é perceptualmente uniforme e melhor para a acessibilidade. É suportado no CSS Color Level 4 (todos os navegadores modernos).

Ferramentas relacionadas