Hack the Hydra

Color converter: HEX, RGB, HSL

Type or paste colors, one per line, in any common notation: #ff8800, #f80, rgb(255, 136, 0), hsl(32, 100%, 50%) or a CSS name like teal. Each line shows the same color in HEX, RGB and HSL, ready to copy into CSS or a design tool.

🔒 Private by design: the conversion runs in this browser tab. Nothing is uploaded.

Color converter: HEX, RGB, HSL is a free online tool by Hack the Hydra. Convert colors between HEX, RGB and HSL, one or many at once. Accepts #hex, rgb(), hsl() and CSS color names. Free, instant, runs in your browser.

100% freeNo upload: runs in your browserNo sign-up
Color converter: HEX, RGB, HSL: the tool with a sample file converted

Three ways to write one color

HEX writes the red, green and blue channels as three pairs of hexadecimal digits from 00 to ff, so #ff8800 is red 255, green 136, blue 0. The short form #f80 doubles each digit. RGB writes the same three numbers in decimal. HSL describes the color by hue (0 to 360 degrees around the color wheel), saturation and lightness in percent, which is easier to adjust by hand.

Why use HSL

To make a lighter or darker shade of a brand color, keep the hue and saturation and change only the lightness: hsl(32, 100%, 50%) becomes hsl(32, 100%, 70%) for a lighter tint. Rotating the hue by 180 degrees gives the complementary color. Converting to HSL first and back to HEX is the quickest way to build a consistent palette.

Rounding and names

HSL values are rounded to whole numbers, so converting HSL to HEX and back may move a value by one. All 148 CSS color names are understood, such as rebeccapurple or slategray. Transparency (the alpha in rgba or hsla) is ignored and only the solid color is converted.

Example

A HEX color converted to RGB and HSL.

Input

#6d3fd8

Output

#6d3fd8  rgb(109, 63, 216)  hsl(258, 66%, 55%)

How to use

  1. Type or paste one color per line.
  2. Read the HEX, RGB and HSL values on each result line.
  3. Copy the notation you need, or download the whole list.

FAQ

How do I convert HEX to RGB?

Split the six digits into three pairs and convert each pair from hexadecimal to decimal: ff = 255, 88 = 136, 00 = 0. Or paste the code above.

Can I convert several colors at once?

Yes, one color per line. Each line gets its own result.

Does it support CSS color names?

Yes, any name your browser knows, such as navy, coral or rebeccapurple.

What about CMYK?

CMYK depends on the printer profile, so a simple formula would be misleading. Ask your print shop for the profile and convert in your design software.

More free converters

PDF to Markdown converterOCR PDF: scanned PDF to textImage to text (OCR)Word (DOCX) to Markdown converterExcel & CSV to Markdown tablesHTML to Markdown converterPowerPoint (PPTX) to Markdown converterJSON to Markdown tablePDF to text converterExcel to JSON converterMarkdown to HTML converterMerge PDF filesSplit PDF: extract pagesRotate PDFJPG to PDF converterPDF to JPG converterImage converter: PNG, JPG, WebPCompress image: JPG and WebPQR code generatorWord counterCase converterJSON formatter and validatorBase64 encode and decodeURL encoder and decoderUUID v4 generatorStrong password generatorLorem ipsum generatorJSON to CSV converterRemove duplicate linesUnix timestamp converterJSON to YAML converterText diff checkerImage resizerPercentage calculatorAge calculatorHash generator (SHA-256, SHA-1, SHA-512)Days between dates calculatorYAML to JSON converterUnit converterJWT decoderBinary, hex, decimal and octal converterRoman numeral converterRegex testerCron expression explainerPDF to Markdown for ChatGPTPDF to Markdown for ClaudePDF to Markdown for RAG pipelinesPDF to Markdown for ObsidianPDF to Notion (via Markdown)Screenshot to textFrench OCR: image to textCSV to Markdown tableGoogle Docs to MarkdownJPG / JPEG to text (OCR)PNG to text (OCR)CSV to JSON converterPNG to JPG converterJPG to PNG converterWebP to PNG converter