Color Converter HEX/RGB/HSL

Convert colors between HEX, RGB, HSL, and CMYK with live preview

🔒 Files never leave your browser

RGB

R
G
B

HSL

H
S
L

CMYK

C 59%
M 58%
Y 0%
K 5%

Copy Formats

HEX #6366f1
RGB rgb(99, 102, 241)
HSL hsl(239, 84%, 67%)
CMYK cmyk(59%, 58%, 0%, 5%)
CSS rgb() rgb(99 102 241)
CSS hsl() hsl(239 84% 67%)

Contrast Ratio

Sample Text
On white (#fff) 2.95:1
AA Large
Sample Text
On black (#000) 7.12:1
AAA

How to Use Color Converter HEX/RGB/HSL

Pick a color

Use the color picker, enter a HEX code, or type RGB/HSL values.

See all formats

All color formats update in sync: HEX, RGB, HSL, CMYK, and CSS code.

Copy values

Click copy next to any format to copy it to your clipboard.

Why Choose AllTools Color Converter HEX/RGB/HSL?

  • 100% free, no account needed
  • Data never leaves your browser
  • HEX ↔ RGB ↔ HSL ↔ CMYK conversion
  • Native color picker integration
  • Live preview swatch
  • CSS rgb() and hsl() output
  • Contrast ratio against white/black
  • Copy any format to clipboard
  • Bidirectional sync between all inputs

Understanding Color Formats and Conversions

Digital colors are represented in multiple format systems, each optimized for different contexts. HEX (#FF5733) is the most common web format — a compact hexadecimal representation of RGB values widely used in CSS, design tools, and brand guidelines. RGB (rgb(255, 87, 51)) represents colors as red, green, and blue channel intensities from 0-255, matching how screens physically produce colors. HSL (hsl(14, 100%, 60%)) represents colors as hue (0-360 degree color wheel position), saturation (0-100% intensity), and lightness (0-100% brightness) — intuitive for selecting color variations because changing lightness creates tints and shades while hue rotation creates harmonious colors. HSV/HSB uses hue, saturation, and value/brightness — similar to HSL but used in Adobe tools and some design software. CMYK (cyan, magenta, yellow, key/black) is the print color model — conversion from RGB to CMYK is approximate because the color gamuts don't overlap perfectly. The AllTools Color Converter handles all these formats with real-time conversion as you adjust values. All calculations happen in the browser — important when converting brand colors or proprietary design tokens.

Color Conversion in Design and Development

Color format conversion is a daily task in design-to-development workflows. Designers specify colors in HSL or HSV in tools like Figma, Sketch, and Adobe XD, while developers implement them as HEX or RGB in CSS. Brand guidelines often specify colors in multiple formats — Pantone for print, CMYK for packaging, HEX for web, and RGB for screen applications. The conversion between these formats ensures visual consistency across media. CSS has expanded its color capabilities with modern features: oklch() and oklab() provide perceptually uniform color spaces where equal numerical changes produce equal visual changes, hsl() with alpha channel transparency (hsla()), and relative color syntax for computing color variations. Creating color palettes from a base color uses HSL manipulation: keep the hue constant while varying lightness for tints (lighter) and shades (darker), or varying saturation for muted and vivid variants. The AllTools Color Converter provides instant bi-directional conversion between all common formats, with a visual preview showing the exact color. For accessibility work, converting colors to their luminance values helps calculate contrast ratios against backgrounds.

Related Resources

Frequently Asked Questions

Is this color converter free?
Yes, completely free with no limits.
What formats does it support?
HEX (#RRGGBB), RGB (0-255), HSL (degrees, percent), and CMYK (percent).
Does my data get uploaded?
No. All conversion happens in your browser.
Can I check contrast ratios?
Yes. The tool shows contrast ratio against white and black backgrounds for accessibility checking.
Does this work on mobile?
Yes, all AllTools tools are mobile-optimized.
Is there a file size limit?
No strict limit. Processing happens in your browser, so capacity depends on your device memory. Most files work smoothly.

Related Tools

CSS

Color Picker

Pick and convert colors with alpha and history

CSS

CSS Gradient Generator

Create CSS gradients with live preview and presets

CSS

Color Palette Generator

Generate harmonious color palettes from any base color

CSS

Tailwind Color Reference

Tailwind CSS color palette — click to copy HEX

CSS

Contrast Checker WCAG

Check WCAG color contrast — AA and AAA compliance

CSS

CSS Color Converter

Convert CSS colors — HEX, RGB, HSL, HWB formats