Handiwork
  • Home
  • Tools
  • Guides
  • Categories
  • About
Browse Tools
Handiwork
  • Home
  • Tools
  • Guides
  • Categories
  • About
Browse Tools

Popular tools

  • Online Excel Viewer
  • Passphrase Generator
  • GPA & CGPA Calculator
  • Keyboard Tester
  • Decision Wheel
  • QR Code Generator

Categories

  • Text
  • Image
  • Design & Color
  • PDF & Documents
  • Developer
  • Security
  • Calculators
  • Converters & Encoders
  • Productivity
  • Random & Decision

Resources

  • All Tools
  • Guides
  • Editorial Standards
  • Changelog
  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Use
Browse all tools>
English

© 2026 Handiwork. Built and maintained by Handiwork.

All toolsAll converters & encoders tools

Converters & Encoders tool

Color Converter

Convert between HEX, RGB, and HSL with sliders and CSS-ready copy.

#635BFF

rgb(99, 91, 255) · hsl(243, 100%, 68%)

HEX

Six-digit hex code used in CSS and design tools.

RGB

Red, green, and blue channels from 0 to 255.

rgb(99, 91, 255)

HSL

Hue, saturation, and lightness — easy to tweak tints and shades.

hsl(243, 100%, 68%)

About the Handiwork Color Converter

The Color Converter translates colors between HEX, RGB, and HSL with a large live preview. Pick a color, adjust channels with sliders or type exact values in any format, and copy CSS-ready strings — all formats stay synced in real time.

How to use the Handiwork Color Converter

  1. Pick a color with the swatch preview or color picker.
  2. Fine-tune using HEX, RGB sliders, or HSL sliders — every format updates together.
  3. Copy the HEX, rgb(), or hsl() value you need for your project.

HEX, RGB, and HSL explained

HEX (e.g. #3B82F6) is a compact six-digit notation common in CSS. RGB describes a color by its red, green, and blue channels from 0 to 255. HSL describes it by hue (0–360°), saturation, and lightness, which makes it intuitive for creating tints, shades, and color variations by adjusting a single slider.

Why convert between formats?

Different tools prefer different formats: design apps often show HEX, accessibility checks use RGB, and theming systems lean on HSL because adjusting lightness is straightforward. Sliders make it easy to explore variations, and dedicated copy buttons give you ready-to-paste CSS values without manual formatting.

Accepted input formats

HEX input accepts both three-digit shorthand (#FFF) and full six-digit values (#FFFFFF) — shorthand is expanded by doubling each digit, the same rule browsers use. RGB channels accept 0–255 and HSL accepts hue in degrees with saturation and lightness as percentages; out-of-range values are clamped rather than rejected.

Rounding across formats

RGB channels and HSL degrees/percentages are whole numbers, so converting HEX → HSL → HEX can occasionally land one shade off due to rounding rather than returning the exact original value. This is a property of representing color in integer channels, not specific to this tool.

Continue this workflow

Use the adjacent tool when the next step calls for a different input, output, or method.

  • Color Palette GeneratorTurn a single converted color into a full complementary, analogous, or triadic palette.
  • Color Contrast CheckerCheck whether two of these colors meet WCAG contrast requirements before using them together.

Assumptions and limitations

  • Alpha (transparency) is not supported — there is no 4/8-digit hex, rgba(), or hsla() input or output, only fully opaque colors.
  • Converting between formats involves rounding to whole numbers, so a round trip through HSL can shift a HEX value by one unit per channel.
  • Color names (like "rebeccapurple") and other CSS color syntaxes such as lab() or oklch() are not recognized — only HEX, RGB, and HSL.

Sources and standards

These authoritative references were used to verify the method and guidance on this page.

  • CSS Color Module Level 4 — RGB and HSL — World Wide Web Consortium (W3C)

Frequently asked questions

What is the difference between RGB and HSL?

+

RGB mixes red, green, and blue light to make a color, while HSL describes the same color by hue, saturation, and lightness — which is easier to tweak when you want a lighter or more muted version. Use the sliders to adjust either format and see the others update instantly.

Can I convert a HEX code to RGB?

+

Yes. Type a HEX value like #635BFF and the RGB and HSL fields update automatically. Invalid hex codes show an error message until corrected.

Can I copy CSS-ready color values?

+

Yes. Each format panel has its own copy button — copy the raw HEX code, or a formatted rgb() or hsl() string ready to paste into your stylesheet.

Does it support transparency or alpha values?

+

Not currently. The converter works with fully opaque HEX, RGB, and HSL values only — there is no rgba(), hsla(), or 8-digit hex support.

Method and guidance reviewed August 23, 2026 by Handiwork.

How we review tools

Go deeper

Understand the method and trade-offs

Accessibility · 9 minA practical guide to WCAG color contrastContrast is a ratio, not a design opinion—but passing one ratio is only part of accessible color use. This guide turns WCAG thresholds into a practical testing workflow.Read guideQR & visual delivery · 9 minHow to test a QR code before you print itA QR preview can look polished and still fail on paper. Verify the payload first, preserve the code’s geometry, and test the final material under realistic conditions before a large print run.Read guide

Related converters & encoders tools

All converters & encoders tools
  • Unit ConverterConvert length, weight, volume, area, speed, temperature, and data with live results.
  • Base ConverterConvert numbers between binary, octal, decimal, hex, and any base 2–36.
  • CSV ⇄ JSON ConverterConvert CSV to JSON and JSON to CSV, with custom delimiters.
  • Time Zone ConverterConvert date and time between time zones with presets, live results, and offset differences.
  • Roman Numeral ConverterConvert Arabic numbers and Roman numerals from 1 to 3999 with live results and a symbol reference.
  • Timestamp ConverterConvert Unix timestamps to dates and back. Supports ISO and local time.