Color Converter

What Is a Color Converter?

A color converter translates color values between different notation systems — HEX, RGB, HSL, HSB, and more. Designers work in HSB (Figma, Photoshop), developers write HEX and RGB (CSS), and print workflows use CMYK. This tool bridges those worlds with instant, accurate conversion.

When to Use Each Format

HEX — compact CSS notation, ideal for stylesheets and design tokens. RGB — matches how screens physically display color, best for programmatic manipulation. HSL — native CSS format that's intuitive for adjusting lightness and saturation without changing hue. HSB/HSV — what Figma and Photoshop use internally, best for design tool workflows.

How to Use This Color Converter

  1. Enter a colour — Paste a 6-digit hex code, an rgb()/rgba() value or an hsl()/hsla() value (comma-separated, whole numbers), or use the colour picker.
  2. See all conversions instantly — The tool converts your input to HEX, RGB, RGBA, HSL, HSLA, HSB/HSV, and CMYK simultaneously.
  3. Fine-tune with the sliders — Move the R, G and B sliders and every format updates together.
  4. Copy any format — Click the copy button next to any format to grab that specific color representation.

Worked example: what it accepts, and what rounding costs

On October 13, 2026 we typed #FF3366 written many ways (plus a colour name, an out-of-gamut OKLCH colour and a nonsense word) into the tool in Chromium, and compared the HSL it shows with the colour it came from on 6096 colours (a 16-step grid on each channel plus 2,000 random). The parser is now culori 4.0.2, self-hosted, which reads every CSS Color 4 syntax; CMYK has its own reader.

You pasteOld toolTool now
#FF3366, ff3366ConvertedConverted
rgb(255, 51, 102), rgba(255,51,102,0.5), hsl(345, 100%, 60%)Converted (alpha dropped silently)Converted; a note says the alpha is not kept
#F36, #FF336680 (3- and 8-digit hex)IgnoredConverted
rgb(255 51 102), hsl(345 100% 60%) (space syntax)IgnoredConverted
rgb(100% 20% 40%), hsl(345deg …), hsl(0.9583turn …)IgnoredConverted
rebeccapurple, hwb(345 20% 0%)IgnoredConverted
cmyk(0%, 80%, 60%, 0%), cmyk(0 0.8 0.6 0)IgnoredConverted, with a note that it is the simple formula
oklch(0.6 0.4 30) (outside sRGB)Ignored#F70000, mapped into sRGB (same as coloraide's CSS method) with a note
bananaNothing happened, no message"Couldn't read…" message with examples

Related tools

Frequently Asked Questions

How do I convert HEX to RGB?
Split the 6-digit hex string into three pairs (RR, GG, BB) and convert each from hexadecimal to decimal: #FF6B6B becomes R 255, G 107, B 107. A 3-digit hex doubles each digit (#F36 = #FF3366). Paste either into this tool and it shows RGB, HSL, HSB and CMYK at once.
What is HSL vs HSB?
HSL (Hue, Saturation, Lightness) and HSB (Hue, Saturation, Brightness) share the same hue wheel but differ in how they handle brightness. HSL is used in CSS, while HSB (also called HSV) is common in design tools like Photoshop and Figma.
Why are there so many color formats?
Different formats serve different purposes. HEX is compact for stylesheets, RGB maps to screen hardware, HSL is intuitive for human selection, and CMYK is for print. Each represents the same colors differently.

📖 Learn More

Related Article HTML Color Codes Explained →
What is the difference between HEX and RGB?+
They represent the same thing — a color's red, green, and blue channel values. Hex uses base-16 notation (#FF6B6B), while RGB uses decimal notation (rgb(255, 107, 107)). They are functionally identical in CSS; choose based on preference. Hex is more compact; RGB is more readable.
What is HSL and when should I use it?+
HSL stands for Hue (0-360°), Saturation (0-100%), and Lightness (0-100%). It's more intuitive than RGB for color manipulation — to make a color lighter, just increase lightness; to make it more muted, decrease saturation. HSL is ideal for generating color variants and building palettes programmatically.
How do I convert colors between web and print?+
Web uses RGB color space; print uses CMYK. Converting between them is imprecise because RGB has a wider gamut than CMYK — some bright screen colors can't be reproduced in print. For accurate print colors, work in a color-managed application (like Adobe InDesign) with the correct ICC profile for your printer.

📖 Learn More

Related Article How to Convert HEX to RGB Color Values →

Built by Derek Giordano · Part of Ultimate Design Tools

Privacy Policy · Terms of Service