Convert between hex and RGB color formats instantly.
rgb(59, 130, 246)rgba(59, 130, 246, 1)Hex colors use a 6-character code (or 3-character shorthand) representing red, green, and blue values in hexadecimal (base-16). Each pair of characters represents a value from 00 to FF (0-255 in decimal).
RGB colors use three decimal numbers (0-255) representing the intensity of red, green, and blue light. This format is commonly used in CSS and image editing.
Simply enter your hex color code (with or without #) in the hex input field. The RGB values will be calculated automatically and displayed below.
RGBA includes an alpha channel for transparency. The fourth value (0-1) controls opacity, where 0 is fully transparent and 1 is fully opaque.
Yes! This tool works both ways. Enter RGB values and the hex code will be automatically generated.