Color Converter
Convert colours between HEX, RGB, HSL, HSV and CMYK instantly. Pick a colour or type any format, copy the code you need, and explore tints and shades.
Pick a colour with the swatch or type a value into any field โ HEX, RGB, or HSL. Every other format updates instantly. Click Copy on the one you need.
What is a Color Converter?
A color converter translates a colour between the different formats used in design and web development โ HEX, RGB, HSL, HSV, and CMYK. Each format describes the same colour in a different way, and different tools and contexts expect different formats: CSS uses HEX and RGB, designers often think in HSL, and print uses CMYK. This converter lets you enter a colour in any common format and instantly get all the others, with one-click copying.
Whether you’re matching a brand colour, building a website, designing a graphic, or just curious what a HEX code looks like in RGB, this tool does the maths instantly and shows a live preview, plus tints and shades to help you build a palette.
How to Use This Color Converter
Pick a colour using the swatch, or type a value into the HEX, RGB, or HSL fields โ every other format updates automatically. The “All Formats” section shows HEX, RGB, HSL, HSV/HSB, CMYK, and RGB percentages, each with a Copy button. The tints and shades strip shows lighter and darker variations; click any to select it. The live preview reflects your current colour at all times.
HEX, RGB, HSL, HSV and CMYK Explained
- HEX: a six-digit hexadecimal code like #38BDF8, used throughout web design. The pairs represent red, green, and blue from 00 to FF.
- RGB: red, green, and blue values from 0โ255, the additive colour model used by screens.
- HSL: hue (0โ360ยฐ), saturation (%), and lightness (%) โ intuitive for adjusting colours by hand.
- HSV / HSB: hue, saturation, and value/brightness โ common in design software colour pickers.
- CMYK: cyan, magenta, yellow, and key (black) percentages, the subtractive model used in printing.
How HEX and RGB Relate
HEX and RGB describe the same thing โ the amount of red, green, and blue โ just in different number bases. Each pair of hex digits is a value from 0 to 255 written in base 16. Converting between them is direct.
38 (hex) = 56 (decimal) โ Red
BD (hex) = 189 (decimal) โ Green
F8 (hex) = 248 (decimal) โ Blue
So #38BDF8 = rgb(56, 189, 248)
When to Use Each Format
Use HEX or RGB for websites and CSS โ they’re universally supported. Use HSL when you want to adjust a colour intuitively, such as making it lighter or more muted, because changing one value does one obvious thing. Use HSV/HSB when working in design tools like Photoshop or Figma, which often use it in their pickers. Use CMYK only for print projects, since printers mix ink subtractively โ and be aware that screen colours (RGB) don’t always reproduce exactly in CMYK.
What is RGBA and Transparency?
RGBA adds an alpha channel to RGB โ a fourth value from 0 (fully transparent) to 1 (fully opaque) โ letting you create semi-transparent colours in CSS, like rgba(56, 189, 248, 0.5) for a half-transparent sky blue. HEX also supports transparency with an eight-digit form (#38BDF880). Transparency is essential for overlays, shadows, and layering colours on the web. This converter focuses on solid colours, but the HEX and RGB values it gives you are the base you’d add an alpha value to.
Color Models: Additive vs Subtractive
RGB is an additive model: screens emit light, and combining full red, green, and blue produces white. CMYK is a subtractive model: ink absorbs light, and combining cyan, magenta, and yellow produces (near) black, which is why printers add a separate black (K) channel for depth and efficiency. This fundamental difference is why a vivid colour on screen can look duller when printed โ the printable CMYK gamut is smaller than the RGB gamut your monitor can display.
Using Colors in Web Design
For web and CSS, you can use HEX (#38BDF8), RGB (rgb(56 189 248)), or HSL (hsl(199 93% 60%)) interchangeably โ modern browsers support all three. HSL is increasingly popular because it makes building consistent design systems easier: define a base hue and generate a full scale of tints and shades by varying lightness. Whichever you choose, this converter gives you the exact code to paste into your stylesheet, and the tints/shades help you build accessible colour scales.
Frequently Asked Questions
Explore All NerdyTools By Categories
Find the right tool for any task โ free, fast, and no sign-up required
