HEX to RGB Converter
Convert HEX color codes to RGB values and back instantly. Works with short #RGB and full #RRGGBB formats.
Enter a HEX code like #7c3aed or #f00 to get R, G, B values — or enter RGB numbers to get the HEX code.
Color Preview
#7c3aed
Editing is a pain in the ass, right?
That's why we're building Cubix. No more editing hell.
AI Video Editor
Drop your footage, tell it what you want. Cubix cuts, captions, color grades, and exports — fully on its own. No timeline. No manual work. Just results.
Cinematic Screen Recorder
Hit record on Windows. Auto-zoom, cinematic backgrounds, and studio-quality audio kick in automatically — your screen recording looks edited before you've touched a thing.
Both Directions
Convert HEX → RGB or RGB → HEX. Swap modes instantly and carry over results between conversions.
Color Preview
See a live color swatch as you type, so you can confirm the color visually before copying.
Copy & Download
Copy the RGB value or HEX code with one click, or download a full color report as a text file.
Frequently Asked Questions
How do I convert HEX to RGB for CSS?
Each pair of HEX digits maps to Red, Green, and Blue from 0–255. Enter your #RRGGBB or #RGB code here to get rgb(r, g, b) ready for color, background-color, or gradients — then paste into your stylesheet or share with developers.
What is a HEX color code?
A HEX color code is a 6-digit (or 3-digit shorthand) hexadecimal string that represents a color as Red, Green, and Blue channels. For example, #FF0000 is pure red, and #f00 is the shorthand equivalent.
How do I convert HEX to RGB manually?
Each pair of hex digits represents a channel from 0 to 255. For #7c3aed: Red = 0x7C = 124, Green = 0x3A = 58, Blue = 0xED = 237. The result is rgb(124, 58, 237).
What is the short #RGB format?
#RGB is a 3-character shorthand where each character is doubled. So #f00 expands to #ff0000 — pure red. This tool handles both forms automatically.
Related design tools
Contrast checking, gradients, screen resolution, aspect ratio, and compression.