Color
HEX to RGB Converter
Convert HEX color codes to RGB values online. Enter a HEX code like #ff5733 and get RGB, CSS rgb() output and a live color preview.
Tool
Convert HEX color codes to RGB values online. Enter a HEX code like #ff5733 and get RGB, CSS rgb() output and a live color preview.
This tool runs in your browser. Your input is processed locally and is not uploaded.
About this Tool
Use this free HEX to RGB converter to turn hexadecimal color codes into RGB values for CSS, design tools and development work. Enter a HEX color such as #ff5733 and get the matching red, green and blue values instantly.
Examples
- #ff5733
- #3b82f6
- #000000
- #ffffff
Frequently Asked Questions
What is a HEX color code?
A HEX color code is a hexadecimal representation of a color, usually written with a # followed by six characters, such as #ff5733.
What is RGB?
RGB describes a color by its red, green and blue channels. Each channel usually ranges from 0 to 255.
Can I use the RGB result in CSS?
Yes, the result can be used directly as a CSS rgb() value, for example rgb(255, 87, 51).
Does the converter support short HEX codes?
Yes, short HEX values such as #fff or #000 can be expanded and converted to RGB.