Color Code Converter
Convert color values between HEX, RGB, HSL, HSV, and CMYK formats. Edit any format and see all others update in real-time with a live color preview.
All conversions run entirely in your browser. No data is sent anywhere.
Color is the most expressive element in design, but every platform speaks a different color language — CSS uses HEX and RGB, design tools like Figma and Sketch prefer HSL, video editors work in HSV, and print designers rely on CMYK. Our free Color Code Converter bridges all five formats simultaneously. Enter a color using the built-in color picker, type RGB values, or paste any HEX code — every other format updates instantly. Copy any format with one click, and see a live color preview that makes it easy to verify your selection. Whether you're translating brand guidelines into CSS variables, preparing print assets, or building a design system, this converter eliminates manual color math.
How to Use the Color Converter
- Pick a color — Use the color picker or type RGB values (0–255) directly. The large preview swatch updates as you adjust.
- Read all formats — See the color expressed in HEX, RGB, HSL, HSV, and CMYK simultaneously with copy buttons for each.
- Copy any format — Click the copy icon next to any format to grab the exact string you need for CSS, design tools, or print specifications.
Key Features
- 5 Formats Simultaneously
HEX, RGB, HSL, HSV, and CMYK all derived from the same color in real-time.
- Color Picker + RGB Input
Native color picker for visual selection, plus precise numeric RGB controls (0–255 per channel).
- Live Preview
Large color swatch and small inline swatch update on every change for immediate visual feedback.
- Mathematically Accurate
Conversions follow standard color science formulas — RGB↔HSL↔HSV↔CMYK using proper gamut mapping.
- One-Click Copy
Copy any format to clipboard with a single click — ready to paste into CSS, design specs, or code.
- 100% Client-Side
All color math happens in your browser — no server round-trips, no tracking.
Understanding Color Formats
- HEX — The web standard. A 6-digit hexadecimal code prefixed with #. Each pair represents red, green, and blue (00–FF). Used everywhere in CSS, HTML, and graphic design. Example:
#3B82F6. - RGB — Red, Green, Blue values from 0–255. The native color model of digital screens. Used in CSS as
rgb(59, 130, 246). Modern CSS also supportsrgba()with alpha transparency. - HSL — Hue (0–360°), Saturation (0–100%), Lightness (0–100%). More intuitive for humans — adjusting lightness makes colors darker or lighter while preserving hue. Used in modern CSS, Figma, and design systems.
- HSV/HSB — Hue, Saturation, Value/Brightness. Similar to HSL but uses "value" instead of "lightness." Preferred in video editing software, image processing, and color picker UIs because it more closely matches how humans perceive color brightness.
- CMYK — Cyan, Magenta, Yellow, Key (Black). The color model for print. Values from 0–100% representing ink coverage. Essential when preparing designs for physical printing to ensure color accuracy between screen and paper.