Colour Converter
The Colour Converter turns a colour code or common colour name into HEX, RGB, HSL, HSV and CMYK as you type. Preview the colour and copy the value you need for CSS or design work; CMYK is an estimate for screens, not a print match.
Type a colour in any format, or pick one.
What is the Colour Converter?
The Colour Converter is a free browser tool for changing how a colour is written, without choosing a different colour. Enter a supported code in the Colour field or use Pick, then read the preview swatch and copy a result. It accepts HEX, RGB, RGBA, HSL, HSLA and about 30 common colour names. Developers use it for CSS, while designers and students use it to compare colour formats. Results update as you type and are rounded to whole numbers. This color converter runs locally, so nothing you enter is uploaded.
Who it is for: Web developers, UI designers, graphic designers, students and digital marketers can use it to move colour values between websites, CSS and design apps.
How to use the Colour Converter
- Tap the Colour field and enter a code such as #5B2EFF, or try a common colour name.
- To choose a colour visually instead, tap Pick and use the colour picker.
- Check the preview swatch and the HEX, RGB, HSL, HSV and CMYK results, which update as you type.
- Tap Copy beside the result you want, then paste it into your CSS or design app.
Why use it
- Five output formatsRead HEX, RGB, HSL, HSV and CMYK results together instead of converting each format separately.
- Preview as you typeCheck the preview swatch while you edit the Colour field or choose a colour with Pick.
- Keep transparencyTransparent inputs retain their alpha in the HEX, RGB and HSL results.
- Copy the value you needEach result row has its own Copy button for taking that value into your code or design app.
At a glance
- What you put in
- HEX, RGB, RGBA, HSL, HSLA, about 30 common colour names, or a picker selection
- What you get
- HEX, RGB, HSL, HSV and CMYK; alpha retained in HEX, RGB and HSL
- Limits
- Whole-number rounding; estimated CMYK; no LAB, LCH or OKLCH input
- Privacy
- Runs in your browser. Nothing you enter is uploaded or stored.
- Price
- Free for everyone. No subscriptions, no payments, no watermark.
- Works offline
- Yes, once the page has loaded
- Last checked
- by AK Shine
Worked example
#5B2EFF
HEX: #5B2EFF RGB: rgb(91, 46, 255) HSL: hsl(253, 100%, 59%) HSV: hsv(253, 82%, 100%) CMYK: cmyk(64%, 82%, 0%, 0%)
The HEX pairs 5B, 2E and FF give red 91, green 46 and blue 255; the other results are rounded to whole numbers.
When to use something else
- For production printing or a Pantone match, use your printer's colour-managed workflow: this CMYK result uses a simple screen formula, not a print profile.
- For LAB, LCH, OKLCH or colour names outside the supported common names, use a converter that explicitly supports those inputs.
- For text accessibility, use a contrast checker with both foreground and background colours; converting a colour does not check readability.
Questions people ask
How do I convert HEX to RGB or HSL?
Enter the HEX code in the Colour field, with or without #. For #5B2EFF, the RGB row shows rgb(91, 46, 255) and the HSL row shows hsl(253, 100%, 59%); tap Copy beside the value you need.
How do I convert RGB or HSL to HEX?
Enter rgb(91, 46, 255), or just 91, 46, 255, in the Colour field and read the HEX row. HSL input works too, such as hsl(0, 100%, 50%), which gives #FF0000.
What is the difference between HEX and RGB?
Both describe red, green and blue channel values for a screen colour. HEX writes each channel in base 16, while familiar RGB notation uses numbers from 0 to 255; #FF0000 and rgb(255, 0, 0) both describe red.
Can I enter a colour name or choose one visually?
Yes, the Colour field accepts about 30 common colour names, but not every CSS colour name. You can also tap Pick to choose a colour visually, then check the preview swatch and copy a result.
Can I convert a colour with transparency?
Yes, enter an eight-digit HEX code, RGBA or HSLA value in the Colour field. The tool shows how solid the colour is and keeps alpha in eight-digit HEX and the RGB and HSL results; its visible appearance still depends on the background.
Why do my HSL values change after converting back and forth?
The displayed values are rounded to whole numbers. Copying a rounded HSL result back into the Colour field can therefore produce a small difference from the original colour.
Can I use the CMYK result for printing?
Treat it as an estimate, not a print-ready colour specification. The converter uses a simple screen formula; exact printed colour depends on the printer, paper and colour profile, so ask your printer for production values.
Is the Colour Converter free, private and available offline?
It is free, with no subscriptions, and the conversion runs in your browser without uploading your input. It also works offline once the tool has loaded.