Command Palette

Search for a command to run...

COLOR

Color Converter

Convert between HEX, RGB, HSL, and CMYK and build quick palettes.

Color Converter
Convert between HEX, RGB, HSL, and CMYK and build quick palettes.

Supports 3- or 6-digit HEX values.

Comma separated 0-255 values or rgb() strings.

Hue 0-360, saturation/lightness 0-100%.

Use percentages for cyan, magenta, yellow, and black.

Preview

#3498DB

RGB: 52, 152, 219

Luminance 0.283

Use dark text over light colors and light text over dark colors.

Five tints and shades generated from the current color.

33%

#19608F

RGB 25, 96, 143

43%

#217DBA

RGB 33, 125, 186

53%

#3398DB

RGB 51, 152, 219

63%

#5FAEE3

RGB 95, 174, 227

73%

#8AC4EA

RGB 138, 196, 234

What

Color Converter definition

A color converter translates values between HEX, RGB, HSL, and other color formats.

Cases

Use Cases

1

Convert design specs to CSS values

2

Match colors across tools

3

Quickly tweak or compare color formats

How To

How to Convert Color Values

A step-by-step guide to converting between HEX/RGB/HSL/CMYK.

1

Enter a value

Enter a HEX, RGB, HSL, or CMYK value.

2

Review conversions

Other formats are calculated and displayed automatically.

3

Copy and use

Copy the format you need for code or design tools.

Knowledge

Understanding Color Theory

What is RGB?
RGB is an additive color model that combines Red, Green, and Blue light to create colors. Each channel ranges from 0 to 255, used in digital displays like monitors, TVs, and smartphones. (0,0,0) is black, (255,255,255) is white.
What is HEX?
HEX is a hexadecimal representation of RGB values, written as #RRGGBB. It's the most common format for specifying colors in web CSS. For example, #FF0000 is red, #00FF00 is green, #0000FF is blue. Shorthand notation (#RGB) is also supported.
What is HSL?
HSL represents colors using Hue, Saturation, and Lightness. Hue is a degree on the color wheel (0-360°), while saturation and lightness are percentages (0-100%). It's intuitive for color adjustments as it mirrors how humans perceive color.
What is CMYK?
CMYK is a subtractive color model using Cyan, Magenta, Yellow, and Key (Black). It's used in printing where inks are layered to produce colors. Unlike screen-based RGB, colors are determined by ink mixing, so conversion to CMYK is essential before printing.
RGB vs CMYK: Key Differences
RGB is additive (light adds up to white) for screens; CMYK is subtractive (inks combine to darken) for print. RGB has a wider gamut, meaning some vivid colors can't be accurately reproduced in CMYK. Always preview color shifts when preparing digital work for print.
Color Contrast and Accessibility
Web accessibility guidelines (WCAG) recommend sufficient contrast between text and background. AA standard requires 4.5:1 for normal text and 3:1 for large text. Use dark text on light backgrounds and light text on dark backgrounds to ensure readability.

FAQ

Color converter FAQ

What formats does this converter support?
It handles HEX (3 or 6 digits), RGB numbers, HSL hue/saturation/lightness, and CMYK percentages.
How is the palette generated?
Five swatches are created by shifting lightness around the base color in HSL space.
Is any data sent to a server?
No. All conversions and palette math run locally in your browser.
Color Converter