Color Code Converter

Instantly convert between HEX, RGB, HSL, and CMYK with a visual picker and WCAG contrast checker.

Blue Ribbon
Click to pick color

Recent Colors

Formats
HEX #2563eb
RGB rgb(37, 99, 235)
HSL hsl(221, 83%, 53%)
CMYK cmyk(84%, 58%, 0%, 8%)
WCAG Contrast Checker
#ffffff
Preview Text
4.5:1
verified Reviewed: Jul 28, 2026
update Updated: Jul 28, 2026
commit v2.0.0
schedule 3 min read

lightbulb When to use this tool

  • check_circle Picking an exact brand colour from a hex code and seeing its RGB and HSL equivalents for use in CSS variables.
  • check_circle Generating a full shade/tint scale from a single brand colour for a design system.
  • check_circle Converting a CMYK print colour to hex/RGB for digital use.
  • check_circle Exploring colour relationships — adjusting hue, saturation, and lightness to find harmonious palette options.

Why use our tool?

Four Format Outputs — Hex, RGB, HSL, CMYK

Shade and Tint Scale Generation

Colour Harmony Suggestions

How it works

1

Click anywhere on the colour canvas to select a colour visually, or enter a specific hex/RGB/HSL value.

2

The colour appears with all four format values displayed.

3

Click 'Generate Shades/Tints' to see the full lightness scale.

4

Click any colour value to copy it to clipboard.

5

Explore colour harmonies using the harmony panel.

Examples

science Brand Blue Colour Scale

Frequently Asked Questions

What is the difference between HSL and HSV/HSB? expand_more
HSL (Hue, Saturation, Lightness) and HSV/HSB (Hue, Saturation, Value/Brightness) are both cylindrical colour models but with different definitions of the third axis. In HSL, Lightness 0% = black, 100% = white, and 50% = the pure colour. In HSV, Value 0% = black, 100% = the pure colour (white is reached by reducing saturation, not increasing value). HSL is more intuitive for creating shade/tint scales because lightness directly maps to the dark-to-light spectrum. CSS uses HSL. Photoshop and most design tools use HSV/HSB.
What is CMYK and when do I need it? expand_more
CMYK (Cyan, Magenta, Yellow, Key/Black) is the colour model used for print production. Unlike RGB (which adds light), CMYK subtracts light through ink layers. When working with printers, signage vendors, or print production designers, they will often ask for CMYK values rather than hex/RGB. Note: CMYK and RGB are different colour spaces — some vibrant RGB colours cannot be reproduced in CMYK (they are out of the CMYK gamut). The CMYK values this tool provides are approximate conversions for reference.

More Developer & Security