Color Converter (HEX, RGB, HSL, CMYK)

Convert colours between HEX, RGB, HSL, HSV/HSB and CMYK, check WCAG contrast on white and black, and get tints and shades. Free colour code converter.

  1. Upload
  2. Options
  3. Download

How to: Color Converter

  1. Enter a colour in any format or pick one.
  2. See every format instantly.
  3. Copy the code or click a tint or shade.

Designers, developers and marketers juggle colour formats all the time: HEX in CSS, RGB in design apps, HSL for theming, CMYK for print. Type any colour – a hex code, an rgb() or hsl() value, a CMYK value or a CSS colour name such as “tomato” – and get every format at once, plus an accessibility contrast check and a palette of tints and shades.

Common uses

Tips for best results

Colour models in brief

RGB mixes red, green and blue light and is how screens work. HEX is simply RGB written in hexadecimal. HSL and HSV describe colour by hue (0–360°), saturation and lightness or brightness, which is more intuitive for adjusting colours. CMYK describes cyan, magenta, yellow and black inks for print. Conversions between RGB-based models are exact; CMYK is an approximation without a colour profile.

Accessible colour choices

Around 1 in 12 men and 1 in 200 women have some form of colour vision deficiency, and many people read screens in bright sunlight. Good contrast helps everyone. The contrast ratios here follow the WCAG formula based on relative luminance, the same method used by Lighthouse and accessibility checkers, and they are required by laws and standards such as the European Accessibility Act and the ADA.

Why use Fileopia for Color Converter?

FileopiaTypical upload-based sites
What you type is sent to a serverNo – stays in your browserOften
Sign-up requiredNeverOften for bigger jobs
Hourly / daily task limitsNoneCommon on free plans
Works offline after loadingYes, for most toolsNo

Private by design

Everything you type is calculated by JavaScript in this tab. Nothing is sent to Fileopia or anyone else, and there are no accounts or tracking cookies tied to what you enter.

Frequently asked questions

Is the CMYK value print-accurate

It is a simple mathematical conversion. Real print colours depend on the printer, paper and colour profile (such as FOGRA39 in Europe or GRACoL in the US), so ask your printer for a proof for brand-critical work.

What contrast ratio do I need

WCAG 2.2 level AA needs 4.5:1 for normal text and 3:1 for large text; level AAA needs 7:1.

Is Color Converter really free?

Yes. Every tool on Fileopia is 100% free with no file limits, no sign-up and no watermarks. The site is supported by unobtrusive ads.

Are my files uploaded to a server?

No. Fileopia processes your files directly in your browser using JavaScript. Your documents never leave your device, so they stay completely private.

Does it work on mobile?

Yes. Fileopia works in any modern browser on Android, iPhone, iPad, Windows, Mac and Linux.

Other tools

JSON Formatter & ValidatorBase64 Encode & DecodeURL Encode & DecodeHash GeneratorUUID GeneratorRegex TesterHTML, CSS & JS MinifierMerge PDFSplit PDFRotate PDFAdd Page NumbersJPG to PDFPDF to JPGPDF to PowerPoint