HEX to RGB Converter

Convert HEX colors to RGB instantly

HEX, RGB, HSL, HWB, Lab, LCH, Oklab, OKLCH, Display P3, and CSS names

#5CCC7FFF
H139°
Alpha100%
Preview
On light
On dark
hex
rgb
RGB → HEX
RGB

CSS HEX uses RRGGBBAA; Android and Flutter use AARRGGBB.

HEX
OKLCH
HEX + AlphaRRGGBBAA
RGB + Alpha
HSL
HSL + Alpha
Recent colors

Converted colors will appear here.

Overview

Convert HEX colors directly to RGB while preserving the represented sRGB color and alpha where the target syntax supports it. This page starts with HEX input and places the RGB result first.

How it works

Enter HEX such as #5CCC7F. The shared browser engine validates the channels, converts through one canonical color model, and updates the focused RGB value, preview, contrast, and additional developer formats instantly.

Examples and uses

Use HEX to RGB conversion when moving colors between CSS, design handoffs, application code, or print-oriented specifications. Copy the focused result without uploading the color value.

Edge cases and limitations

HEX supports 3, 4, 6, and 8 digits; 8-digit CSS values use RRGGBBAA ordering. RGB channels may use 0–255 numbers or percentages, with modern or comma syntax.

Reverse conversion

Need the opposite direction? Use the linked RGB to HEX converter. Swapping keeps the URL, heading, initial input, and primary result aligned with that intent.

CodingTool is officially live on

Launched on StartupBaseCodingTool.dev - Free, Fast & Easy Developer Tools in One Place | Product HuntCodingTool - Featured on Startup FameFazier badgeListed on Turbo0Featured on Twelve ToolsFeatured on Findly.tools