Skip to main content
ToolCube – All tools at one place.

Color Converter

Convert any color between HEX, RGB, HSL, HSV and CMYK. Paste a code, use the picker or sliders, pick a pixel from an image, and copy the format you need.

  • Any format in, every format out
  • Contrast checker
  • Pick from screen or image

Convert a color

Detected: HEX

RGB
HSL

All formats

  • HEX#ff6600
  • RGBrgb(255, 102, 0)
  • HSLhsl(24, 100%, 50%)
  • HSV / HSBhsv(24, 100%, 100%)
  • CMYKcmyk(0%, 60%, 100%, 0%)
  • Nameclosest: orangered
  • CSScolor: #ff6600;

CMYK values are an approximation for screen colors; printed colors depend on the printer profile.

Pick a color from an image

Upload a photo or screenshot (JPG, PNG, WebP, AVIF or iPhone HEIC), then click or tap any point to pick its color. The image stays on your device.

Want to recolor part of an image? Try Change Image Color.

Shades, tints and harmonies

Shades (darker)

  • #e85d00
  • #d15300
  • #b94a00
  • #a24100
  • #8b3800
  • #742e00
  • #5d2500
  • #461c00
  • #2e1300
  • #170900

Tints (lighter)

  • #ff7417
  • #ff822e
  • #ff9046
  • #ff9e5d
  • #ffac74
  • #ffb98b
  • #ffc7a2
  • #ffd5b9
  • #ffe3d1
  • #fff1e8

Harmonies

Complementary – Opposite on the color wheel (180°).

Analogous – Neighbours 30° either side.

Triadic – Three colors 120° apart.

Split-complementary – The two colors next to the complement (150° and 210°).

Tetradic (square) – Four colors 90° apart.

Contrast checker (WCAG)

  • Your color on white

    2.93:1

    Sample of your color as text on #ffffff: contrast 2.93:1.

    • AA normal: Fail
    • AA large: Fail
    • AAA normal: Fail
    • AAA large: Fail
  • Your color on black

    7.15:1

    Sample of your color as text on #000000: contrast 7.15:1.

    • AA normal: Pass
    • AA large: Pass
    • AAA normal: Pass
    • AAA large: Pass
  • Your color on #1e3a8a

    3.52:1

    Sample of your color as text on #1e3a8a: contrast 3.52:1.

    • AA normal: Fail
    • AA large: Pass
    • AAA normal: Fail
    • AAA large: Fail

How to Use

How to Use the Color Converter

Convert a color in seconds. Everything updates as you type or drag.

  1. 1

    Step 1: Enter a Color

    Type or paste any color: #ff6600, rgb(255, 102, 0), hsl(24, 100%, 50%), cmyk(0, 60, 100, 0) or a name such as tomato. The format is detected for you.

  2. 2

    Step 2: Fine-Tune It

    Adjust the color with the picker, the RGB and HSL sliders, or the opacity slider. Every format updates instantly.

  3. 3

    Step 3: Or Pick a Color

    Use Pick from screen in Chrome or Edge, or upload an image and tap any point to take its exact color.

  4. 4

    Step 4: Explore Variations

    Choose a darker shade, a lighter tint or a harmony color, and check its contrast with text.

  5. 5

    Step 5: Copy and Share

    Copy HEX, RGB, HSL, HSV, CMYK, the color name or a CSS line, or share the page link with the color in it.

Guide

Color formats explained

The same color can be written in several ways, and each format suits a different job. They all describe the colors a screen can show, so converting between them only changes how the numbers are written, except for CMYK, which is built for ink.

HEX

A HEX code such as #ff6600 is RGB written in base 16: two digits each for red, green and blue, from 00 to ff. It is short, easy to copy and the most common way to write colors in CSS, HTML and design tools. An optional fourth pair adds transparency.

RGB and RGBA

RGB gives the amount of red, green and blue light from 0 to 255, such as rgb(255, 102, 0). It maps directly to how screens work, so it is used in code, canvas drawing, image editing and anywhere you calculate colors. RGBA adds an alpha value from 0 (fully transparent) to 1 (solid).

HSL and HSV

HSL describes a color by hue (its position on the color wheel, 0 to 360 degrees), saturation (how vivid) and lightness (how close to black or white). It is the easiest format for making a color lighter, darker or softer while keeping its character. HSV, also called HSB, uses value or brightness instead of lightness and is common in Photoshop and color pickers. CSS supports HSL but not HSV.

CMYK

CMYK is for print: the percentages of cyan, magenta, yellow and black ink. The conversion here uses the standard formula. CMYK values are an approximation for screen colors; printed colors depend on the printer profile, the paper and the press.

Which format should you use?

  • Websites and apps: HEX for solid colors, RGBA or 8-digit HEX for transparency, and HSL when you want a theme that is easy to adjust.
  • Design tools: HEX to share colors, HSB/HSV inside color pickers.
  • Print: CMYK as a starting point, confirmed with your printer, or a spot color for exact brand matches.

Picking colors from your screen or an image

In Chrome and Edge on a computer, Pick from screen turns your pointer into an eyedropper: click anywhere, even outside the browser, and that exact color is loaded. In other browsers the button is hidden, because they do not offer this feature yet.

To take a color from a photo, logo or screenshot, use Pick a color from an image. JPG, PNG, WebP, AVIF and iPhone HEIC files are supported. A magnifier shows the pixel under your pointer or finger, so you can pick exactly the shade you want. The image is opened in your browser and never uploaded. If you need the image itself in another format, the Image Converter can turn it into JPG, PNG or WebP.

Shades, tints and harmonies

Shades are your color mixed with increasing amounts of black, and tints are your color mixed with white. Together they give a ready scale for buttons, hover states, borders and backgrounds that all belong to the same family. Click any swatch to make it the current color and copy its codes.

Harmonies come from the color wheel. A complementary color sits opposite yours and gives the strongest contrast; analogous colors sit next to it and feel calm; triadic, split-complementary and tetradic schemes spread three or four colors evenly around the wheel. They keep the same saturation and lightness, so the palette feels balanced. Use one main color and the others as accents.

Contrast and accessibility (WCAG)

Text must stand out from its background so that everyone, including people with low vision or color blindness, can read it. The Web Content Accessibility Guidelines measure this as a contrast ratio from 1:1 (no contrast) to 21:1 (black on white).

  • AA: at least 4.5:1 for normal text and 3:1 for large text (about 24 px, or 18.66 px bold).
  • AAA: at least 7:1 for normal text and 4.5:1 for large text.

The checker tests your color as text on white, on black and on a second color you choose, and shows a live sample. Transparent colors are blended with the background first, because that is what people actually see. If a color fails, try a darker shade or a lighter tint from the list until it passes.

Tips

  • Store brand colors in one format, usually HEX, and convert from that, rather than converting a converted value again.
  • When a design must work in print, check the CMYK version early: very bright screen colors often print duller.
  • Share a color with a colleague by copying the page address; it includes the current color.
  • Working with physical sizes or other measurements as well? The Unit Converter handles lengths, weights, areas and more.

Features

Why Use This Color Converter?

Everything you need to work with a color, in one private page.

  • Smart Input

    Paste any format, including names and alpha; it is detected automatically.

  • Every Format

    HEX, RGB, HSL, HSV, CMYK, CSS name and a ready CSS line, each with Copy.

  • Synced Editors

    Color picker, RGB, HSL and opacity sliders that stay in step.

  • Eyedropper

    Pick any color on your screen in browsers that support it.

  • Pick From Images

    Upload JPG, PNG, WebP, AVIF or HEIC and pick pixels with a magnifier.

  • Shades and Harmonies

    Ten shades, ten tints and five harmony palettes.

  • WCAG Contrast

    AA and AAA results for normal and large text, with a preview.

  • Shareable Links

    The page address keeps the current color.

  • Mobile Friendly

    Touch-friendly sliders and swatches on any phone.

  • Free and Private

    No sign-up; images and colors never leave your device.

FAQ

Frequently Asked Questions

Answers to common questions about Color Converter on ToolCube.

How do I convert HEX to RGB?

Split the six HEX digits into three pairs and convert each pair from base 16 to a number from 0 to 255. #ff6600 becomes ff = 255, 66 = 102 and 00 = 0, so it is rgb(255, 102, 0). Paste the HEX code into the converter to get the result instantly.

What is the difference between RGB and HSL?

Both describe the same screen colors. RGB says how much red, green and blue light to mix, from 0 to 255 each. HSL describes the hue as an angle on the color wheel, plus saturation (how vivid) and lightness (how light or dark), which makes it easier to create lighter or darker versions of a color.

Are the CMYK values accurate for printing?

They are a mathematical approximation. Real printed colors depend on the printer, ink, paper and the color profile used, so a print shop may convert your colors differently. For important print work, ask for a proof or use the CMYK values from your design software with the correct profile.

What does an 8-digit HEX code mean?

The last two digits are the alpha (opacity). #ff660080 is the same orange as #ff6600 at about 50% opacity, because 80 in hexadecimal is 128 out of 255. Modern browsers understand 8-digit HEX codes in CSS.

How do I pick a color from an image?

Use Pick a color from an image: choose a photo or screenshot, then move over it. A magnifier shows the exact pixel; click or tap to select it. You can also use the arrow keys and Enter. The image is opened in your browser and is never uploaded.

Why is there no Pick from screen button in my browser?

Picking from anywhere on the screen uses the EyeDropper feature, which is currently available in Chrome, Edge and other Chromium-based browsers on computers. In Safari and Firefox the button is hidden; take a screenshot and use Pick a color from an image instead.

What contrast ratio do I need for accessible text?

WCAG 2 level AA asks for at least 4.5:1 for normal text and 3:1 for large text (about 24 px, or 18.66 px bold). Level AAA asks for 7:1 and 4.5:1. The contrast checker shows the ratio against white, black and a second color of your choice, with a pass or fail for each level.

What is the difference between shades and tints?

A shade is a color mixed with black, so it gets darker; a tint is a color mixed with white, so it gets lighter. Designers use them for hover states, borders and backgrounds that match a main color. The converter shows ten of each.

Which color names does the converter know?

All 148 named colors in CSS, such as tomato, rebeccapurple and steelblue. Type a name to convert it, and for any other color the converter shows the closest named color, measured by how similar the colors look rather than by their numbers alone.

Are my colors and images stored anywhere?

No. Everything runs in your browser. Your last 12 colors are saved only in this browser so you can reuse them, and the Clear button removes them. Images you pick colors from are never uploaded.