Color Converter

A color converter translates one color code into others, for example HEX #FF0000 into rgb(255, 0, 0) and hsl(0, 100%, 50%). This tool converts between HEX, RGB and HSL in both directions, also shows HSV and CMYK, previews the color, accepts shorthand hex like #F00, and reports the WCAG contrast ratio against white and black.

Free, no signup. Runs entirely in your browser; files and text are not uploaded.

How to use the Color Converter

  1. Type a HEX code, edit the RGB or HSL numbers, or use the color picker.
  2. Watch the preview and all other formats update instantly.
  3. Press Copy next to the format you need.
  4. Check the contrast ratio line before using the color for text.

Features

  • Edit HEX, RGB or HSL; all formats stay in sync
  • Outputs HEX, RGB, HSL, HSV/HSB and CMYK
  • Accepts 3- and 6-digit hex with or without #
  • Native color picker and live preview
  • WCAG contrast ratio against white and black
  • Validation messages and a copy button for each format

Frequently asked questions

How do I convert HEX to RGB?

Split the six hex digits into three pairs and convert each from base 16 to decimal. For example, #2563EB is rgb(37, 99, 235).

What is the difference between HSL and HSV?

Both use hue and saturation. HSL uses lightness, where 100% is always white; HSV (also called HSB) uses value or brightness, where 100% is the most intense version of the color.

Are the CMYK values print-accurate?

They are a simple mathematical conversion. Real print colors depend on the printer, paper and ICC color profile, so use them as a starting point.

Related tools

  • Color Picker – Pick colours and get HEX, RGB, HSL and CMYK codes, tints, harmonies, contrast and image colours
  • Number System Converter – Convert binary, decimal, hexadecimal, octal and any base 2–36
  • CSS Formatter – Beautify or minify CSS with safe handling of selectors, strings and url() values
  • Text Converter – Change case, URL encode/decode, Base64 and text-to-binary in one tool

Built and reviewed by Naqash Thaheem, Technical Project Manager. Last reviewed 2026-09-24.