HEX to BGR Converter — Free Online Tool

Convert any HEX color code to BGR — as decimal, hex, or an OpenCV-style tuple — in seconds. No signup required.

Enter HEX color

BGR Decimal

BGR Hex

BGR Tuple (OpenCV)

Accepts 3 or 6-digit hex codes, with or without the # symbol.

FAQ

What is the BGR color format?
BGR stores a color’s blue, green, and red values in reverse order compared to RGB. Where RGB reads red-green-blue, BGR reads blue-green-red — same three channel values, different sequence.

Why do some programs use BGR instead of RGB?
BGR shows up mainly in older Windows graphics APIs (like GDI and early DirectX) and in OpenCV, the computer vision library, which defaults to BGR for historical reasons tied to how Windows bitmap files stored pixel data. Most other software — browsers, design tools, CSS — uses RGB.

Is BGR the same as reversed RGB?
Yes. BGR and RGB use identical channel values; only the storage order changes. A HEX color like #42850F (R=66, G=133, B=15 in RGB) becomes 15, 133, 66 in BGR — the same three numbers, just B first instead of R.

Scroll to Top