# HEX to RGB Converter > Convert color values between HEX, RGB, and HSL formats — instant conversion as you type. ## What does this tool do? Converts color codes between three formats with two input modes: - **HEX to RGB** — parses a HEX color code (#RGB or #RRGGBB) and outputs RGB and HSL values - **RGB to HEX** — parses an rgb(R, G, B) string and outputs HEX and HSL values Conversion happens instantly as you type. ## Supported Formats | Format | Example | |--------|---------| | HEX (6-digit) | #FF5733 | | HEX (3-digit) | #F53 | | HEX (no hash) | FF5733 | | RGB | rgb(255, 87, 51) | | HSL (output only) | hsl(11, 100%, 60%) | ## Output For any valid input, the tool displays: - HEX value (6-digit, uppercase) - RGB value in rgb(R, G, B) format - HSL value in hsl(H, S%, L%) format - Individual Red, Green, Blue channel values ## Examples Input: `#FF5733` Output: ``` HEX: #FF5733 RGB: rgb(255, 87, 51) HSL: hsl(11, 100%, 60%) Red: 255 Green: 87 Blue: 51 ``` ## How to use 1. Go to https://toolscanvas.com/tools/hex-to-rgb 2. Select mode (HEX to RGB or RGB to HEX) 3. Enter your color value 4. All converted formats appear instantly ## Privacy & Cost - Runs 100% in the browser. No data is sent to any server. - Free. No signup required.