Color Converter
Tool guideConvert between HEX, RGB, HSL, HSV, CMYK color formats
Input: This tool processes input in your browser. Check in Network (opens in a new tab)
Color Converter
No color
Enter a color value to see conversions
Tool guide
Back to workspaceConvert colors between HEX, RGB, HSL, HSV, and CMYK formats with a live preview swatch. Supports CSS named colors (148 entries), hex shorthand, and rgba/hsla with alpha. Auto-detects input format. Copy any format with one click. All processing runs in your browser — zero backend.
How to use it
- Paste the shorthand paint color below into the Color field. The rows refresh as you type.
- Inspect HEX and RGB before choosing Copy on either row. Both preserve the transparency of the background paint.
- To increase the paint opacity, type rgba(51, 102, 153, 0.8) into Color. The HEX row changes to #336699cc; the first six digits stay the same.
Worked example
- Example input
#3696- Example output
HEX: #33669966 RGB: rgba(51, 102, 153, 0.4)
Each shorthand digit doubles. The last byte, 66 in hex, is 102 out of 255, or 40% opacity. It is not an element-wide opacity setting.
What to watch for
If modern CSS syntax such as rgb(51 102 153 / 40%) does not parse, enter the comma-separated rgba form from the example. The converter is not a CSS stylesheet parser.
Frequently asked question
- Which row can I copy if I must keep alpha?
- Use HEX, RGB, or HSL. The HSV and CMYK rows do not carry the alpha channel. Compare the actual background and foreground together before drawing conclusions about legibility.