Entrada y opciones
Convierte entre HEX, RGB y HSL. Acepta #hex, rgb(), hsl() y los nombres de color CSS habituales.
HEX
#4F5BD5
RGB
rgb(79, 91, 213)
HSL
hsl(235, 61%, 57%)
Canales
79, 91, 213
Todo el cálculo y la conversión se ejecutan en local en el navegador mediante el motor V8 o WebAssembly. Los archivos y el texto nunca salen de tu dispositivo.
Acerca de
Design handoffs rarely stay in one colour format. Enter a HEX, RGB or HSL value, or a common CSS colour name, and see all three representations together with a swatch so you can confirm it is the colour you meant.
Cómo usar
Formatos y especificaciones
Preguntas frecuentes
Are alpha values supported?
rgba() and hsla() values are accepted, but the alpha channel is ignored: all outputs describe the opaque colour, and HEX is always the six-digit form.
Are 3-digit HEX codes allowed?
Yes. #abc is expanded to #aabbcc before conversion.
Why does my HSL value look different after a round trip?
HSL and RGB are different models of the same colour; rounding to whole degrees and percentages can shift a channel by one.
Is anything sent to a server?
No. All parsing and conversion happens in the browser.
Can I convert CSS colour names?
Yes — common CSS colour names such as tomato or rebeccapurple are accepted input alongside HEX, RGB and HSL values.
Limitaciones
- Modern colour spaces such as OKLCH and lab() are not accepted; common CSS colour names are.
- Alpha is ignored; HEX output is always the opaque six-digit form.
- HSL values are rounded to whole numbers, so round trips can shift a channel slightly.