ToolHorizon

🎨 Color Code Converter

HEX: -
RGB: -
HSL: -
🔢 All Supported Color Formats
Enter any one — get all others instantly
FormatExample (Purple)Used In
HEX#7C3AEDCSS, HTML, Figma, Sketch, Canva
HEX 8-digit (HEXA)#7C3AED80 (50% opacity)CSS, modern design tools
RGBrgb(124, 58, 237)CSS, JavaScript, design apps
RGBArgba(124, 58, 237, 0.5)CSS transparency effects
HSLhsl(262, 84%, 58%)CSS, theme design systems
HSLAhsla(262, 84%, 58%, 0.5)CSS with opacity
HSV / HSBhsv(262, 75%, 93%)Photoshop, Illustrator color picker
CMYKC:48 M:76 Y:0 K:7Print design, offset printing
CSS Named ColorbluevioletCSS (limited 140-color set)
🚀 How to Use
Convert any color code in seconds
1

Paste Any Color Code

Type or paste any color value you have — a HEX code, RGB values, HSL string, or even a CSS named color like "tomato" or "steelblue".

2

Auto-Detection

The tool automatically detects what format you've entered. No need to select the input format manually — it recognizes HEX, rgb(), hsl(), cmyk() patterns instantly.

3

See All Formats

All equivalent color values appear immediately — HEX, HEXA, RGB, RGBA, HSL, HSLA, HSV, and CMYK — with a live color swatch preview.

4

Copy the Format You Need

Click the copy icon next to any format to copy just that value to your clipboard — ready to paste into CSS, Figma, Photoshop, or print software.

✨ Pro Tips
🖥️

Screen = RGB / HEX

Always use HEX or RGB for digital design — websites, apps, presentations. These formats are meaningless in print and must be converted to CMYK first.

🖨️

Print = CMYK

When sending designs to a printer, always specify CMYK values. RGB colors that look vivid on screen may appear dull in print because the CMYK gamut is smaller.

🎨

Use HSL in CSS Themes

HSL is the best format for building CSS design systems and dark mode themes. Adjusting just the L (lightness) value creates tints and shades of the same color systematically.

🔤

RGBA for Opacity

When you need a semi-transparent color in CSS, use rgba() — e.g. rgba(124, 58, 237, 0.3) gives 30% opacity purple. You can also use hsla() for the same effect.

❓ Frequently Asked Questions
Why doesn't HEX converted to CMYK look the same when printed? +
RGB (used by screens) and CMYK (used by printers) have different color gamuts — the range of colors they can produce. Some vivid RGB colors simply cannot be reproduced in CMYK ink. When converting, the closest printable equivalent is used, which may look slightly duller or different than the screen color.
What is the difference between HSL and HSV? +
Both use Hue and Saturation. The difference is the third channel: HSL uses Lightness (0% = black, 50% = pure color, 100% = white) while HSV uses Value/Brightness (0% = black, 100% = pure color or white). Photoshop uses HSB (same as HSV). CSS uses HSL.
Can I convert a Pantone color to HEX or RGB? +
Pantone colors are proprietary ink standards not directly convertible by formula — each Pantone color has an approximate RGB/HEX equivalent published by Pantone. This tool converts between digital color formats (HEX, RGB, HSL, CMYK). For Pantone conversion, consult Pantone's official color bridge guides or their website.
What does the 8-digit HEX (HEXA) code mean? +
Standard HEX codes have 6 digits (#RRGGBB). 8-digit HEXA adds two more digits for the alpha (opacity) channel (#RRGGBBAA). For example #7C3AED80 means the same purple color at ~50% opacity (80 in hex = 128 in decimal, which is ~50% of 255).
Are there only 140 CSS named colors? +
Yes — CSS defines exactly 140 named colors like "red", "tomato", "steelblue", and "rebeccapurple". These names map to specific RGB values. For any color outside this set, you must use HEX, RGB, or HSL notation.
🔗 Related Tools