Color Converter

Convert a single color between HEX, RGB, HSL, HSV, and CMYK formats with a live swatch and copy-ready output.

All color conversions run locally in your browser. No color values are sent to our servers.

Color format converter

Paste a web color and copy the formats you need.

Detected
hex
HEX
#3366FF

Supports HEX, RGB, HSL, HSV, and simple sRGB-based CMYK.

Converted formats

CMYK is an sRGB approximation, not ICC print color management.

HEX
#3366FF
RGB
rgb(51, 102, 255)
HSL
hsl(225, 100%, 60%)
HSV
hsv(225, 80%, 100%)
CMYK
cmyk(80%, 60%, 0%, 0%)

Quick examples

What is a color converter?

A color converter translates one color value into the formats commonly used in web design, CSS, design systems, and handoff notes. A single brand color may be stored as HEX in a style guide, RGB in a design token, HSL in a theme editor, and CMYK in print-oriented notes. This tool keeps those representations together so you can copy the right version without recalculating by hand.

The converter is intentionally compact. It focuses on practical sRGB web colors: HEX, RGB, HSL, HSV, and a simple CMYK approximation. It does not try to replace professional color-management software or ICC-profile workflows.

Supported color formats

Format Example Best used for
HEX #3366FF CSS, design tokens, quick visual handoff
RGB rgb(51, 102, 255) CSS values, canvas work, programmatic color channels
HSL hsl(225, 100%, 60%) Theme adjustments by hue, saturation, and lightness
HSV hsv(225, 80%, 100%) Color picker style workflows and visual tuning
CMYK cmyk(80%, 60%, 0%, 0%) Approximate print notes, not final press color management

Important limitations

  • CMYK output is calculated from sRGB values and is only an approximation.
  • CSS named colors, gradients, Lab, LCH, OKLCH, and Display-P3 are outside this compact v1 scope.
  • Alpha values can be parsed for common HEX/RGB/HSL forms, but the native swatch preview shows the opaque base color.
  • Different design tools may round HSL, HSV, or CMYK values slightly differently.

Common workflows

CSS cleanup

Paste a HEX color from a style guide and copy RGB or HSL for a component state, chart palette, or theme variable.

Design handoff

Keep multiple color notations together when a developer, designer, or content editor uses different tooling.

Token review

Check whether a color token maps to the expected hue and saturation before using it in a public UI.

Print notes

Generate approximate CMYK values for discussion, while leaving final print output to profile-aware tools.

Frequently Asked Questions

Is CMYK output exact?

No. The CMYK value is a simple conversion from sRGB, useful for rough notes. Final print work depends on paper, ink, press settings, and ICC profiles.

Can I paste CSS color functions?

Yes for common RGB, HSL, HSV, and CMYK-style function syntax. Newer color spaces such as Lab, LCH, OKLCH, and Display-P3 are intentionally out of scope for this compact tool.

Does the tool support alpha transparency?

It can parse common alpha forms such as RGBA, HSLA, and eight-digit HEX, but the main swatch and copy output focus on practical opaque web colors.

Why do values sometimes differ from another design tool?

Small differences usually come from rounding rules or color-management assumptions. For web sRGB colors, those differences are normally tiny.

When should I use the contrast checker instead?

Use the contrast checker when you need to compare two colors for text readability. This converter only changes one color between formats.