Skip to content
SmallEasyTools

Color Converter

Convert any colour between HEX, RGB, HSL and CMYK in one step. Use the colour picker or paste a value, get a palette of shades and check whether text will be readable on it.

  • Free
  • Runs in your browser
  • No sign-up needed

White text ·
Black text ·

Shades

Free and unlimited · runs entirely in your browser

Rate this tool:
Share: Facebook X LinkedIn WhatsApp Email

Quick answer

To convert a colour, type or paste any value — HEX (#f97316 or #f73), RGB (rgb(249, 115, 22)) or HSL (hsl(25, 95%, 53%)) — or choose it with the colour picker. The tool instantly shows the colour in HEX, RGB, HSL and CMYK, a row of lighter and darker shades, and the contrast ratio against white and black text with WCAG AA results. Click any value to copy it.

Input:
HEX, short HEX, RGB, HSL or colour picker
Output:
HEX, RGB, HSL, CMYK
Palette:
Lighter and darker shades
Accessibility:
Contrast ratio with white and black (WCAG)
Copy:
One-click CSS-ready values
Speed:
Instant
Upload needed:
No – runs in your browser
Price:
Free

Colours are written in different ways depending on where they are used. Web designers write HEX codes like #1e40af in CSS. Developers and design tools often use RGB values. Designers adjusting tints prefer HSL, because hue, saturation and lightness are intuitive to change. Printers work in CMYK. Moving a brand colour from a logo file to a website, from Canva to code or from a screen design to a printed flyer means converting between these formats — and mistakes make brand colours drift.

Our colour converter converts instantly in every direction. Paste a value in any supported format or pick a colour visually, and you get all four formats at once, ready to copy into CSS, design software or a print brief. A row of shades — lighter and darker variations of the same hue — helps you build hover states, backgrounds and borders that match.

Readability matters as much as beauty. The tool calculates the contrast ratio of your colour with white and black text using the WCAG formula and shows whether it passes the AA standard, so you know immediately whether white text on your brand colour button will be readable for everyone.

How to convert colours – step by step

  1. 1 Enter a colourPaste a HEX, RGB or HSL value, or click the colour picker and choose visually.
  2. 2 Read the conversionsHEX, RGB, HSL and CMYK values appear instantly.
  3. 3 Explore shadesUse the lighter and darker shades for backgrounds, borders and hover states.
  4. 4 Check contrastSee the contrast ratio with white and black text and whether it passes WCAG AA.
  5. 5 Copy the valuesClick a value to copy it into your CSS, design tool or print brief.

Why use this colour converter?

All major formats

HEX, RGB, HSL and CMYK in one view.

Flexible input

Short HEX, full HEX, RGB, HSL or a visual picker.

Matching shades

Build consistent palettes from one colour.

Accessibility check

WCAG contrast ratio with white and black text.

CSS-ready values

Copy exactly what you need.

Instant and private

Runs in your browser, no sign-up.

Colour formats explained

FormatExampleWhere it is used
HEX#F97316CSS, HTML, design tools, brand guidelines
RGBrgb(249, 115, 22)CSS, screens, image editors, programming
HSLhsl(25, 95%, 53%)CSS, creating tints and shades, theming
CMYK0, 54, 91, 2Printing: flyers, business cards, packaging
HEX is simply RGB written in hexadecimal: each pair of characters (00–FF) is the amount of red, green and blue. HSL describes the hue as an angle on the colour wheel (0–360°), saturation as intensity and lightness from black to white. CMYK gives percentages of cyan, magenta, yellow and black ink.

Screen vs. print colours

Screens create colour by adding light (RGB); printers create colour by absorbing light with ink (CMYK). Some bright screen colours — vivid oranges, electric blues, neon greens — cannot be reproduced exactly with standard inks and will look duller in print. The CMYK values here are a mathematical conversion, useful as a starting point. For important print jobs, ask your printer for a proof, and use the ICC colour profile they recommend; brands with strict colour requirements often specify Pantone spot colours for print.

Colour contrast and accessibility

About one in twelve men and one in two hundred women have some form of colour vision deficiency, and many more people read screens in bright sunlight or with low vision. The Web Content Accessibility Guidelines (WCAG) require a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (18pt, or 14pt bold) at level AA; level AAA asks for 7:1 and 4.5:1. The contrast check here tells you whether white or black text works better on your colour. If neither passes, darken or lighten the colour using the shades row until it does.

Building a palette from one brand colour

Start with your main brand colour and use its shades: a very light tint for page backgrounds and highlights, a light tint for cards and hover states, the main colour for buttons and links, and a darker shade for hover and active states and for text on light backgrounds. Add a neutral grey scale for text and borders and one accent colour for warnings or highlights. Keeping all variations in the same hue makes designs look consistent and professional. Record the final HEX values in your brand guidelines.

Using colours in CSS

Modern CSS accepts all the formats shown: color: #f97316;, background: rgb(249 115 22); or border-color: hsl(25 95% 53%);. HSL is especially convenient with CSS variables — store the hue once and vary lightness for a whole theme. Add transparency with an alpha value, such as rgb(249 115 22 / 0.2) or an 8-digit HEX like #f9731633. Minify your finished stylesheet with the CSS Minifier.

Colour and branding tips

  • Use one primary brand colour consistently across logo, website, social posts and print.
  • Pick colours with enough contrast for text, or reserve bright colours for large elements.
  • Test your palette in dark mode if your site supports it.
  • Consider cultural meanings in your market — red, green and white carry different associations in different countries.
  • Use your brand colour in your favicon, email signature and QR codes for recognition.

The psychology of colour in design

Colours carry associations that influence how people feel about a brand or a page, although culture and context matter a lot. Blue is widely linked with trust and calm, which is why banks, tech companies and healthcare brands use it so often. Green suggests nature, health and growth, and in many markets money. Orange and yellow feel energetic and friendly and draw attention to buttons and offers. Red signals urgency, excitement or danger and is common in sales and food brands. Purple suggests creativity or luxury, while black and white communicate elegance and simplicity. Rather than following these rules blindly, choose colours that suit your audience and stand out from competitors in your market — then use contrast and consistency to make every page easy to read and navigate.

Finding a colour from an image or website

To get the exact colour of a logo or a website element, use your browser's developer tools (right-click → Inspect, then click the colour swatch in the Styles panel, which includes an eyedropper), or the eyedropper in an image editor. Many operating systems also include colour picker utilities. Paste the resulting value here to convert it to every format.

Troubleshooting

  • "Invalid colour". Check the format: HEX needs 3 or 6 digits after #; RGB values range 0–255; HSL needs percentages for saturation and lightness.
  • CMYK looks different in print. Screen-to-print conversion depends on the printer's profile; request a proof.
  • Colours look different on another screen. Displays vary in calibration and colour space.
  • Short HEX confusion. #f73 expands to #ff7733, not #f70300.

Frequently asked questions

How do I convert HEX to RGB?

Paste the HEX code and the RGB value appears instantly.

How do I convert RGB to HEX?

Enter the RGB value, for example rgb(249, 115, 22), and copy the HEX result.

What is HSL?

Hue, saturation and lightness — an intuitive way to describe and adjust colours.

Can I convert colours to CMYK for printing?

Yes. The CMYK values are a good starting point; confirm with your printer's proof.

What contrast ratio do I need?

At least 4.5:1 for normal text and 3:1 for large text to meet WCAG AA.

Should I use white or black text on my colour?

The contrast check shows which has the higher ratio and whether it passes AA.

What is a short HEX code?

A 3-digit form where each digit is doubled, so #f73 means #ff7733.

Can I pick a colour visually?

Yes. Use the colour picker to choose any colour.

Is the colour converter free?

Yes. No sign-up required.

Does it work offline?

Once the page has loaded, conversions run in your browser.

How do I create shades of a colour?

Use the shades row, which shows lighter and darker versions of your colour.

What is the difference between RGB and HEX?

They describe the same colour. HEX writes the red, green and blue values in hexadecimal; RGB writes them as numbers from 0 to 255.

Can I add transparency?

Yes, in CSS. Add an alpha value to RGB or HSL, or use an 8-digit HEX code.

Which format is best for websites?

Any of them works in CSS. HEX is the most common; HSL is easiest for building themes.

Last updated November 21, 2026 · Written and tested by the SmallEasyTools team.