ToolStudio.es
Color & Prepress

Color converter: HEX, RGB, CMYK and HSL

Convert a color into every format and get code ready for CSS, Tailwind or Adobe.

#6366F1
Sample Palettes:

Computed Color Spaces

Active palette (3)

#6366F1
#06B6D4
#10B981

A color converter built for design and development

The same color is written differently depending on where you use it: HEX or RGB on the web, HSL when you want to tweak hue or lightness in CSS, CMYK for print and LAB when you need to compare colors perceptually. Converting by hand is slow and easy to get wrong.

Type a color in any of those formats or pick it in the selector and you instantly see every equivalent. The tool also checks the color’s contrast on white and black against WCAG 2.1, so you know whether text will be readable, and generates code ready to copy for CSS, SCSS, Tailwind or JSON.

If you work with Adobe or Affinity, you can export the colors as an .ASE palette and import it straight into Illustrator, Photoshop or InDesign. It also warns you when an RGB color falls outside what CMYK printing can reproduce and shows total ink coverage.

A note on CMYK: the CMYK values here are calculated with the standard formula, without a color profile. They are a good reference, but to print a document faithfully it is better to convert the PDF to CMYK with an ICC profile such as FOGRA39 or GRACoL.

How to convert a color code

  1. Type the color as HEX, RGB, CMYK, HSL or LAB, or pick it in the selector.
  2. Review its equivalents in every format and its WCAG contrast.
  3. Copy the value or the CSS, SCSS, Tailwind or JSON code.
  4. If you need it, export the palette as .ASE.

Color formats

  • HEX (also with transparency)
  • RGB and RGBA
  • CMYK
  • HSL
  • LAB
  • Export: CSS, SCSS, Tailwind, JSON and .ASE

Frequently Asked Questions

How do I convert HEX to RGB?

Type the HEX code (for example #6366F1) and you will see its RGB value instantly, along with the other formats.

Are the CMYK values good for print?

They are a reference calculated without a color profile. To print faithfully, convert the document to CMYK with an ICC profile and ask your printer which one they use.

What is WCAG contrast?

It is the minimum contrast ratio recommended by web accessibility guidelines for text to be readable. The tool tells you whether your color meets it on white and on black.

What is an .ASE file?

Adobe’s palette format (Adobe Swatch Exchange). You can import it into Illustrator, Photoshop, InDesign and Affinity.

What does out of gamut mean?

It is a screen color that CMYK printing cannot reproduce. It will look duller in print.

Is it free?

Yes, converting colors is free. ASE export costs 1 credit, and your free account comes with 20.

Related tools

Design

Professional PDF RGB to CMYK Converter

Transform RGB PDF documents into print-ready CMYK for commercial offset and digital printing. Applies official ISO ICC profiles with perceptual compensation.

PDFCMYKICC
Try this tool
Design

PDF Preflight Print Checker

Detect critical prepress issues before sending to press: RGB color spaces, low-res images (<150 DPI), missing bleed margins, and unembedded fonts with a Print-Readiness score.

PDFCMYKDPI
Try this tool
Development

SVG Optimizer Pro

Shrink SVG vector assets by stripping editor metadata, reducing coordinate decimals, and removing unused groups and IDs without losing visual quality.

SVGWeb
Try this tool
Images

Universal Image Converter & Compressor

Convert between any input and target format. Apply smart lossy or lossless compression, scaling, and codec optimization to reduce payload up to 85%.

JPGPNGWebPAVIF
Try this tool
Featured on TinyShelfLaunched on StartupBaseFeatured on BuildlistToolStudio — Featured on CLAPSTORMFeatured on TheSaaSDirFeatured on DodoDirectoryFeatured on SumoDirFeatured on SaaSBisonFeatured on ToolcurioFeatured on Gets.ToolsFeatured on DailyPingsLaunching Soon on Uneed