{ Color Converter }

// convert colors between any format instantly

Convert colors between HEX, RGB, HSL, HSV, CMYK and CSS named colors instantly. Visual picker, shades palette, contrast checker — free, no sign-up required.

any format accepted
QUICK SAMPLES:
Aa
—
Background: #0e0e0e
🎨

Enter a color to see all formats

HEX, RGB, HSL, HSV, CMYK and more

HOW TO USE

  1. 01
    Enter any color

    Type a HEX code, RGB, HSL, HSV, CMYK value, or a CSS named color like tomato. Any common format is accepted.

  2. 02
    See all formats instantly

    All color formats update simultaneously. Click any copy button to grab the value you need for your CSS, design tool, or code.

  3. 03
    Check contrast & palette

    The WCAG contrast checker shows if your color meets AA or AAA accessibility standards. Explore the shades and tints palette below.

FEATURES

HEX / RGB / HSL HSV / CMYK WCAG Contrast Shades & Tints Native Picker CSS Named Colors Tailwind Scale

USE CASES

  • 🎨 Convert Figma HEX colors to CSS HSL
  • 🎨 Check WCAG contrast before deploying
  • 🎨 Generate a tint/shade palette from a brand color
  • 🎨 Find Tailwind-compatible scale values
  • 🎨 Convert CMYK print colors to web RGB

WHAT IS THIS?

Color Converter is a free browser-based tool that converts any color between HEX, RGB, HSL, HSV, CMYK, and CSS named color formats. It includes a visual native color picker, a WCAG AA/AAA contrast ratio checker, and a shades and tints palette generator — all updating in real time as you type.

RELATED TOOLS

FREQUENTLY ASKED QUESTIONS

What color formats are supported?

The tool accepts and outputs HEX (3-digit and 6-digit), RGB, RGBA, HSL, HSLA, HSV, CMYK, and CSS named colors such as tomato, steelblue, or rebeccapurple. Input detection is automatic — just paste or type any format.

What is the WCAG contrast ratio?

WCAG (Web Content Accessibility Guidelines) defines minimum contrast ratios between text and its background to ensure readability. A ratio of 4.5:1 passes AA for normal text. A ratio of 7:1 passes AAA. Large text (18pt or 14pt bold) requires only 3:1 for AA. This tool calculates the ratio and shows which levels pass.

What is the difference between HSL and HSV?

Both HSL and HSV use Hue and Saturation, but the third component differs. In HSL, Lightness of 50% gives a pure chromatic color and 100% gives white. In HSV (also called HSB), Value of 100% gives the pure color and 0% gives black. HSL is used in CSS; HSV is common in design tools like Photoshop and Figma.

Why does HEX use letters like A-F?

HEX colors use base-16 (hexadecimal) notation. Each of the three pairs (RR, GG, BB) represents a value from 0 to 255, written as two hex digits. Hexadecimal uses digits 0–9 and letters A–F to represent values 10–15. So #FF0000 is red at full intensity (255, 0, 0 in decimal).

How are shades and tints generated?

Shades are created by mixing the original color with black (reducing lightness in HSL). Tints are created by mixing with white (increasing lightness). The palette generates ten steps in each direction, giving you a full tonal range from near-black to near-white suitable for use in design systems.

Can I use CSS named colors as input?

Yes. All 140+ CSS named colors are recognized as input. Type coral, mediumseagreen, dodgerblue, or any other valid CSS color name and it will be converted to HEX, RGB, HSL, and all other formats automatically.

Color Converter — HEX, RGB, HSL, CMYK Online Free

Working with colors across different tools and workflows means constantly translating between formats. Figma and Sketch output HEX codes. CSS prefers HSL for its human readability. Python image libraries use integer RGB tuples. Print designers work in CMYK. This Color Converter bridges all of these formats instantly, giving you every representation of a color on one screen.

HEX Color Format

HEX is the most common color format on the web. A six-character hexadecimal string like #f472b6 encodes the red, green, and blue channels as two-digit hex numbers ranging from 00 to FF. The shorthand three-character form #f4b works when both digits in each channel are identical. HEX codes are used in CSS, HTML attributes, SVG, and most design tools.

RGB and RGBA

RGB expresses colors as three integer values between 0 and 255, one for each channel: rgb(244, 114, 182). RGBA adds an alpha channel from 0 (fully transparent) to 1 (fully opaque). RGB is the native model of digital displays, making it a natural fit for web development and image processing. It maps directly to the physical hardware of monitors and cameras.

HSL and HSLA

HSL stands for Hue, Saturation, and Lightness. The hue is a degree value from 0 to 360 on the color wheel (0 and 360 are red, 120 is green, 240 is blue). Saturation is a percentage indicating how vivid the color is. Lightness is a percentage where 0% is black and 100% is white, with pure colors at 50%. HSL is popular in CSS because it is intuitive — you can predict what a color will look like before seeing it, and you can lighten or darken a color simply by adjusting the L value.

HSV / HSB

HSV (Hue, Saturation, Value) is used in many design applications including Adobe products and Figma. It is similar to HSL but the Value channel works differently — 100% Value gives the full chromatic color, while 0% Value is black regardless of hue or saturation. Understanding the difference between HSL and HSV is important when building color pickers or porting palette code between CSS and design tool APIs.

CMYK

CMYK (Cyan, Magenta, Yellow, Key/Black) is the subtractive color model used in printing. Unlike the additive RGB model where combining colors produces white, CMYK starts with white paper and adds ink to subtract light. Digital colors converted to CMYK are approximations — the CMYK gamut is smaller than the RGB gamut, so some vivid screen colors cannot be reproduced exactly in print. This converter provides CMYK values as a reference for print preparation workflows.

WCAG Accessibility

Color contrast is a critical accessibility consideration. The Web Content Accessibility Guidelines (WCAG 2.1) specify that text must have a contrast ratio of at least 4.5:1 against its background to pass Level AA. Large text (18pt or 14pt bold) requires a minimum of 3:1. Level AAA requires 7:1 for normal text. This converter shows the contrast ratio between your color and any background color you choose, and clearly indicates which WCAG levels pass.

☕