Navid MoazzezNavid Moazzez

Free Hex to RGB Converter (+ Guide)

A free hex to RGB converter with HSL, CMYK, a WCAG contrast check and the color's tints and shades.

Navid Moazzezby Navid Moazzez·Updated Oct 2, 2026·3 min read·
Hex to RGB, HSL and CMYK
Video on Coverr

Convert a hex color to RGB, HSL and CMYK, and check it against white and black text.

1

Your numbers

Type a hex code like #6361EA (3, 6 or 8 digits), or drag the red, green and blue sliders.

2

Your result

Fill in the fields above to see your result.

Rate this tool

Embed this tool on your site

Paste the code into any page: WordPress, Webflow, Squarespace, Ghost or plain HTML. It's free with the credit under it, which links back to navid.me.

Theme
Background
Corners
Font

This free hex to RGB converter turns a hex color code into RGB, HSL and CMYK, checks it against white and black text by the web's contrast rules, and lays out its tints and shades.

Type a hex code, or drag the red, green and blue sliders and watch the code change.

I built it because I copy brand colors between design tools, code and slides all the time, and each one wants a different format.

Here every format is 1 click to copy, with the contrast check I'd otherwise do somewhere else.

key_takeaways.mdTL;DR

Key takeaways

A hex code is 3 pairs of base-16 digits for red, green and blue, each 00 to FF, or 0 to 255.
My brand purple, #6361EA, is rgb(99, 97, 234), or hsl(241, 77%, 65%).
WCAG 2.2 asks for a contrast of 4.5:1 for body text and 3:1 for large text.
White text on #6361EA scores 4.74:1 and passes; black text scores 4.43:1, enough for large text only.
Tints and shades keep the hue and change only the lightness, so they match the original.

What is a hex to RGB converter?

A hex to RGB converter reads a color's hex code and gives the same color as red, green and blue numbers. Web pages and design tools use hex, while code, video tools and print each prefer other formats.

This one gives RGB, HSL and CMYK at once, and tests the color with white and black text.

How to use the hex to RGB converter

You only need a hex code, or a color in mind.

Convert a color0/5

3-digit codes like #0BF and 8-digit codes with transparency work too.

A worked example

Here's the example the calculator loads when you press Try an example: #6361EA, the purple in my brand.

FormatValue
HEX#6361EA
RGBrgb(99, 97, 234)
HSLhsl(241, 77%, 65%)
CMYK58, 59, 0, 8

63 in base 16 is 6 × 16 + 3 = 99, so red is 99. 61 is 97 and EA is 234, so green is 97 and blue is 234.

Contrast: will the text be readable?

The Web Content Accessibility Guidelines (WCAG) compare the brightness of 2 colors as a ratio, from 1:1 for the same color to 21:1 for black on white.

White text on #6361EA

4.74:1, which passes AA for body text. It's the better choice for buttons in this color.

Black text on #6361EA

4.43:1, which passes only for large text, 24 px or 18.66 px bold and up.

When neither passes

Pick a darker shade for white text, or a lighter tint for black text, from the row under the result.

Mistakes to avoid

These are the slips that change a color between tools.

  • Treating CMYK from a screen color as print-ready (a printer's own profile decides the final color)
  • Dropping the transparency pair from an 8-digit hex code
  • Checking contrast by eye instead of by ratio
  • Mixing up the letter O and the number 0 in a hex code

When the color is set, the design md generator writes it into a brand's design file.

Who is the hex to RGB converter for?

It's for designers, developers and creators who move colors between tools, and these tools use them.

Copy the format your tool wants, and check the contrast before you ship.

Plan your money with your AI

Take your numbers further in

Hex to RGB Converter FAQs

Questions about the hex to RGB converter? Here's what to know.

A hex to RGB converter turns a color's hex code into red, green and blue values.

This free one also gives HSL and CMYK and checks the color against white and black text.

Split the code into 3 pairs and turn each from base 16 into a number.

The code #6361EA splits into 63, 61 and EA, which are 99, 97 and 234.

Turn each value from 0 to 255 into 2 base-16 digits.

99, 97 and 234 are 63, 61 and EA, so the code is #6361EA.

A short form where each digit is doubled: #0BF is #00BBFF.

A hex code with a 4th pair for transparency: #00000080 is black at about 50% opacity.

Hue, saturation and lightness: the color's angle on a color wheel, how strong it is, and how light it is.

It makes tints and shades easy to make.

It's a starting point only.

A printer's own color profile decides how CMYK prints, so check a proof.

WCAG 2.2 asks for 4.5:1 for body text and 3:1 for large text at level AA.

Level AAA asks for 7:1 and 4.5:1.

Use whichever has the higher contrast ratio.

The converter shows both side by side.

Yes, it's free with no sign-up.

It runs in your browser.

I did.

I'm Navid Moazzez, and I made the hex to RGB converter as one of my free tools on navid.me.

More about me.

Navid Moazzez

AI business strategist & AI OS builder

Navid Moazzez helps creators and founders master AI and build their own AI Operating System (AI OS) to automate their business and life.

Navid.me is reader-supported. When you buy through links on this site, I may earn an affiliate commission. Learn more.

Related calculators

More free tools

Related MCP servers & CLIs

Free AI newsletter

The most actionable AI newsletter for founders

Every week, get proven AI strategies, curated tools, and step-by-step systems to grow your audience, create better content, and build a profitable creator business.

No fluff, no filler, no BS. Just five minutes each week that might level up your online business and life.

P.S. Sign up now to get free access to my ultimate AI tools guide for creators.

Loved by 10,000+ readers