RevealTheme logo

Conversor de Color (HEX/RGB/HSL)

Convierte colores entre los formatos HEX, RGB y HSL. Elige un color visualmente o introduce los valores manualmente.

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

Cómo usar esta herramienta

  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.

¿Qué es el Conversor de Color (HEX/RGB/HSL)?

HEX, RGB y HSL son tres maneras de expresar el mismo color. HEX (#RRGGBB) es el más común en CSS y en las herramientas de diseño. RGB (rgb(R,G,B)) separa los canales numéricamente. HSL (hsl(H,S%,L%)) es más intuitivo para las personas: el tono (hue) es el color, la saturación es la intensidad y la luminosidad (lightness) es el brillo. Usa HSL al diseñar paletas; conviértelo a HEX para la implementación.

Casos de uso comunes

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

Preguntas frecuentes

¿Cuándo debo usar HSL en lugar de HEX?
Al diseñar: HSL te permite ajustar la luminosidad o la saturación de forma independiente. Luego conviértelo a HEX para el código.
¿Y OKLCH y los espacios de color modernos?
OKLCH es perceptualmente uniforme y mejor para la accesibilidad. Está soportado en CSS Color Level 4 (todos los navegadores modernos).

Herramientas relacionadas