Skip to content
HEX ↔ RGB ↔ HSL ↔ HSV ↔ CMYKDeveloper tools

Color Converter

Convert colours between HEX, RGB, HSL, HSV, CMYK and CSS names, with transparency, sliders, a contrast check and tints and shades.

About this tool

About Color Converter

Designers, developers and printers describe the same colour in different ways: a website uses HEX like #1E90FF or rgb(30, 144, 255), a design tool shows HSL or HSB, and a print shop asks for CMYK. This converter translates between all of them in one place. Type or paste a colour in any common format and it is recognised automatically: three-, six- or eight-digit HEX, rgb() and rgba(), hsl() and hsla(), hsv() or hsb(), cmyk(), or a CSS colour name such as tomato or rebeccapurple. Every other format appears straight away with its own copy button: HEX, HEX with alpha, RGB or RGBA, HSL or HSLA, HSV/HSB, CMYK, plain RGB numbers, and the 0xAARRGGBB value used in Android and Flutter code. You can also pick a colour from the swatch, or fine-tune it with sliders for red, green, blue, hue, lightness and opacity, each drawn with its own colour gradient so you can see where you are heading. A contrast panel shows how readable text in this colour is on a white and on a black background, using the WCAG ratio and grades (AA, AAA, AA large or fail), which matters for buttons and links. A strip of nine tints and shades from light to dark helps you build hover states and palettes; tap any of them to make it the current colour. Conversions are calculated exactly in your browser. CMYK is a straightforward screen conversion, so for printing ask your print shop for values that match their colour profile.

Color Converter tool

Who converts colour codes

Same colour, every format

Web developers

Turn a design’s HEX into rgba() with transparency for CSS.

Example#1E90FF at 50% becomes rgba(30, 144, 255, 0.5) for an overlay.

Designers

Move between HSL in CSS and HSB in design apps.

ExampleA brand colour in HSB from Figma is converted to HSL for a stylesheet.

Print

Get a starting CMYK value for a logo colour.

ExampleA screen orange is converted to cmyk(0%, 80%, 95%, 0%) to discuss with the printer.

App developers

Get the 0xAARRGGBB value for Android and Flutter.

ExampleA HEX brand colour becomes 0xFF1E90FF for a Flutter theme.

Accessibility checks

Make sure text on buttons is readable.

ExampleGrey text at 3.2:1 on white fails, so a darker shade is chosen from the strip.

Building palettes

Create lighter and darker versions of one colour.

ExampleNine tints and shades become the 100–900 scale of a design system.

Colour tips

Pick the right format for the job

Use HSL for variations

In HSL, changing only the lightness gives lighter and darker versions of the same hue, perfect for hover and active states.

Aim for 4.5:1 for text

WCAG AA needs 4.5:1 for normal text and 3:1 for large text. Check before you ship a new button colour.

CMYK is approximate

Screens and printers reproduce colour differently. Treat screen-to-CMYK as a starting point and ask for a proof.

Eight-digit HEX holds alpha

#RRGGBBAA adds transparency, for example #1E90FF80 is 50% opacity. Most modern browsers support it.

Need a colour from an image?

Pick exact pixel colours from a photo or screenshot with the Image Color Picker.

Open Image Color Picker

Want a whole palette?

Pull the main colours out of any image with the Palette Extractor.

Open Palette Extractor
Built & tested by

HemantInsights

Senior Software Engineer · Developer of Toolyconvert

Hemant developed Color Converter and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.

Last updated 12 November 2026

Answers and guidanceFrequently Asked Questions
How do I convert HEX to RGB?
Type the HEX code, for example #1E90FF. The RGB value, rgb(30, 144, 255), appears with a copy button.
Which formats can I type in?
HEX (3, 4, 6 or 8 digits), rgb(), rgba(), hsl(), hsla(), hsv(), hsb(), cmyk() and CSS colour names.
How do I add transparency?
Use the opacity slider or type an 8-digit HEX or rgba(). HEX with alpha, RGBA and HSLA are then shown.
What is the difference between HSL and HSV?
Both use hue and saturation. HSL uses lightness (50% is the pure colour); HSV, also called HSB, uses value or brightness (100% is the pure colour).
Is the CMYK value exact for printing?
No. It is a mathematical conversion from screen colour. Printers use colour profiles, so ask for a proof or their recommended values.
What do AA and AAA mean?
WCAG accessibility levels. AA needs a contrast of 4.5:1 for normal text; AAA needs 7:1.
What is the Android/Flutter value?
Colours written as 0xAARRGGBB, alpha first, as used by Color() in Flutter and Android code.
Can I use colour names?
Yes. Any CSS name such as tomato, navy or rebeccapurple is converted.
Is anything uploaded?
No. Everything is calculated in your browser.
Is it free?
Yes, free with no sign-up.
More tools for your workflowRelated Tools

Color Picker

Pick any colour and copy it as HEX, RGB, HSL or CMYK. Grab colours from your screen, see tints and shades, and check text contrast against WCAG.

Image Color Picker

Pick any colour from an image and get its HEX, RGB, HSL and CMYK codes. Zoom in with a magnifier, keep a list of picked colours and see the image’s main colours.

Color Palette Extractor

Find the main colours of a photo, logo or screenshot, with their share of the picture. Tap to pick more. HEX, RGB and HSL, text contrast, and code for CSS, SCSS, Tailwind or JSON.

CSS Gradient Generator

Make linear, radial and conic gradients with up to ten colors. Copy CSS, Tailwind or SVG, or download the gradient as a PNG.

1 / 3
Browse all developer tools

Featured on

Toolyconvert is listed on these product directories and launch platforms.