HEX Converter & Color Inspector

Convert hexadecimal values to RGB, decimal, and binary in one place. Paste a web color like #1e90ff or a hex number like FF and the tool will parse, validate, and show the corresponding values. You can also go the other way around (decimal → hex).

accepts #RGB / #RRGGBB

Color preview

This is the color rendered from your HEX code. If it's blank, the code is not a valid web color.

RGB

0–255
e.g. 255
e.g. 11111111

Result

This summary updates after each conversion.

HEX

RGB

Decimal

Binary

Hexadecimal in web & computing

Hexadecimal (base 16) is widely used in web development, design systems, and low-level computing because it is a compact, human-readable representation of binary values. A single byte (8 bits) can be written as two hex digits from 00 to FF.

Hex color structure

A standard web color uses 6 hex digits: the first 2 are the red channel, the next 2 are green, and the last 2 are blue:

#RRGGBB
Example: #1e90ff → R = 0x1e (30), G = 0x90 (144), B = 0xff (255)

Shorthand #RGB

When a color repeats each nibble (e.g. #abc), browsers expand it to #aabbcc. This tool automatically applies that expansion so you don’t have to.

Converting hex → decimal

To convert hex to decimal, multiply each digit by 16 raised to its position (from right to left) and sum them up. For instance, FF = 15×16¹ + 15×16⁰ = 240 + 15 = 255.

FAQs

Why do some values show 0?

It means your input didn’t have a full color payload (for example, a decimal value only covers one component). The result cards show what could be inferred.

Can I use this for alpha channels?

You can partially test them (like #RRGGBBAA) but this tool focuses on 6-digit colors, because that’s what most HTML/CSS designers need.

Full original guide (expanded)

Use this page as your single hex workstation: you can paste a color from a design system, read its RGB triplet for CSS variables, check the decimal equivalent for lower-level operations, and confirm the binary footprint. Compared to generic color sites, this tool stresses correctness, professional readability and fast conversions.