designwithfocus

Decimal to HEX Converter

Convert Decimal color values to HEX instantly.

Free No sign-up Runs in your browser
Converted result (HEX)
#1B7280
HEX#1B7280
RGBrgb(27, 114, 128)
RGBArgba(27, 114, 128, 1)
HSLhsl(188, 65%, 30%)
HSLAhsla(188, 65%, 30%, 1)
HSVhsv(188, 79%, 50%)
CMYKcmyk(79%, 11%, 0%, 50%)
LABlab(44% -19.6 -14.9)
LCHlch(44% 24.7 217.1)
OKLCHoklch(50.9% 0.1 211)
OKLABoklab(0.5 -0.1 0)
HWBhwb(188 11% 50%)
XYZxyz(10.4, 13.8, 22.5)
Decimal1798784
Tailwindcyan-700
Nameteal

How to use Decimal to HEX Converter

  1. Type or paste a DECIMAL value in the input box.
  2. The HEX value updates as you type, along with the other formats.
  3. Click Copy next to the format you need, or copy everything as CSS.

How to convert DECIMAL to HEX

Enter a DECIMAL value above. The tool converts it instantly in your browser, with no upload and no sign-up.

The example below uses the site teal #1B7F80, which converts to #1B7F80.

DECIMAL: 1802112
HEX: #1B7F80

The DECIMAL to HEX formula

A DECIMAL value describes the same colour as a HEX value, only written in a different notation. Converting changes the notation, never the colour itself.

For the example colour #1B7F80, the red channel is 27, green is 127 and blue is 128. Each format below is the same colour written differently.

FormatValue for the example
HEX#1B7F80
RGBrgb(27, 127, 128)
HSLhsl(181, 65%, 30%)
CMYKcmyk(79%, 1%, 0%, 50%)

FAQ

Is DECIMAL the same colour as HEX?

Yes. They describe the same colour in different notation, so converting loses no colour information.

Does this tool upload my colour?

No. The conversion runs entirely in your browser.

Can I convert HEX back to DECIMAL?

Yes. Use the HEX to DECIMAL converter, which is listed in the related converters row.

Why do the numbers round?

Some formats use percentages, so the tool rounds to whole numbers for readability.

Report a problem with this tool