Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)

RGB to HEX Converter

Convert RGB color values to HEX codes instantly. Perfect for web development and design.

The RGB to HEX Converter transforms RGB (Red, Green, Blue) values into hexadecimal color codes. This is essential for web developers who need to use colors in CSS stylesheets.

  1. Enter your RGB values (e.g., 59, 130, 246)
  2. The HEX code will be generated automatically
  3. Click the copy button to copy the result
  4. View all color formats in the panel below
  • Real-time conversion as you type
  • Flexible input format (comma or space separated)
  • Color preview for visual verification
  • One-click copy to clipboard
  • Shows all color formats (HEX, RGB, HSL, HSV, CMYK)
What RGB values are valid?
Each RGB component must be an integer between 0 and 255.
Why use HEX instead of RGB?
HEX codes are more compact and widely supported in CSS. They're also easier to copy and share.
Is the output uppercase or lowercase?
The converter outputs uppercase HEX codes (e.g., #3B82F6), which is the standard convention.
Click to pick
rgb(59, 130, 246)
Click to pick
#3B82F6
Click to pick
hsl(217, 91%, 60%)
Click to pick
#3B82F6
Click to pick
hsl(217, 91%, 60%)
Click to pick
cmyk(76%, 47%, 0%, 4%)
Enter RGB as r, g, b or rgb(r, g, b)
Values must be between 0 and 255
Spaces and commas are both accepted
Want to learn more? Read documentation →
1/4
Start typing to search...
Searching...
No results found
Try searching with different keywords