Toollet
Search by task or app nameSearchContact us
Pricing

Color code converter

Enter HEX, RGB, HSL, HSV or CMYK values, or choose a color, to convert it into all five formats. When you need a different notation for a color from design materials, copy individual codes or save all five results as text. Alpha is not supported; CMYK is an estimate without an ICC profile.

The # prefix is optional. Alpha is not supported.

Converted values

HEX#176781
RGBrgb(23, 103, 129)
HSLhsl(194.7, 69.7%, 29.8%)
HSV194.7°, 82.2%, 50.6%
CMYK (%, estimate)82.2, 20.2, 0, 49.4

CMYK is an estimate. It does not account for the printer, paper or ink.

Get all results

5 formats · colors.txt

What you can do

Check five color formats

See HEX, RGB, HSL, HSV and estimated CMYK without an ICC profile in one list.

Copy the values you need

Copy each format separately, or copy and save all five results as text.

How to use

  1. Choose the input model

    Select HEX, RGB, HSL, HSV or CMYK to match the code you have.

  2. Enter the color values

    Enter the code or numeric components. Choosing a color from the swatch switches the input to HEX.

  3. Convert and review

    Select Convert color to see the swatch and each format. Convert again after editing the input.

  4. Get the notation you need

    Copy an individual format, or copy all five and save them as colors.txt.

When this helps

Use colors from design materials

Convert a received RGB value or HEX code into the notation accepted by your design tool.

Organize values for the same color

Review all five representations in one place and keep them in your documentation or work notes.

Color notation and conversion limits

HEX and RGB

RGB represents red, green and blue as values from 0 to 255. HEX writes these channels in hexadecimal. Enter three or six digits; output uses six uppercase digits.

HSL and HSV

Both use hue and saturation, but HSL lightness and HSV brightness are different quantities. Do not treat their values as interchangeable.

CMYK is an estimate

This is a simple calculation without an ICC profile. It does not account for paper, ink or printers, and does not replace print preparation or color proofing.

Precision and conversion

Calculations use opaque 8-bit sRGB. RGB is displayed as integers; HSL, HSV and CMYK are displayed to one decimal place (HSV values include ° and %). Rounding and calculation methods mean values may not match exactly after converting to another format and back.

Questions and answers

Can I use the CMYK values directly for printing?

They are estimates. Check them in your design software against the actual printing conditions and required profile.

Can I convert colors with alpha?

Alpha is not supported. Enter opaque color values rather than four- or eight-digit HEX, RGBA or similar formats.

What happens if I switch models with incomplete input?

A valid input switches using its color. An incomplete input uses the last confirmed color and clears the conversion result.

Can I use HSV directly in CSS?

HSV and estimated CMYK are numeric references. Choose HEX, RGB or HSL when copying a value directly into CSS.

Input and output

Input
HEX, RGB, HSL, HSV or CMYK values, or a color selected from the picker.
Output
Copy each color code or save all five formats as colors.txt.

Current settings

Search tools