CalculatorCast

Conversor de Cor RGB ↔ HEX

Converta entre canais RGB e #RRGGBB com pré-visualização em tempo real.

Introdução

RGB ↔ HEX Color Converter — Convert between RGB channels and #RRGGBB with a live preview. Enter Convert, R, G, B to get an instant, accurate result.

Fórmula

RGB → Hex: each channel (0-255) converted to a 2-digit hex pair. Hex → RGB: each hex pair parsed back to a 0-255 decimal value.

Passo a passo

  1. Enter the Convert.
  2. Enter the R.
  3. Enter the G.
  4. Enter the B.
  5. Click Calculate to see your result instantly.

Exemplo do mundo real

Example: With Convert = rgb_to_hex, R = 255, G = 87, B = 51, the RGB ↔ HEX Color Converter gives Hex: #FF5733.

Perguntas Frequentes

What range are RGB values in?
Each of red, green, and blue ranges from 0 to 255.
Does the hex code need a # prefix?
You can include or omit the leading # — both are accepted.
What inputs does the RGB ↔ HEX Color Converter need?
You'll need to provide: Convert, R, G, B. All fields use sensible defaults, so you can see a working example immediately and then adjust the values to match your own numbers.
How accurate is the RGB ↔ HEX Color Converter?
The RGB ↔ HEX Color Converter applies the formula exactly as calculated — RGB → Hex: each channel (0-255) converted to a 2-digit hex pair. Hex → RGB: each hex pair parsed back to a 0-255 decimal value. — so results are precise for the inputs you provide. Accuracy depends on entering correct, realistic input values.
Is the RGB ↔ HEX Color Converter free to use?
Yes, the RGB ↔ HEX Color Converter is completely free, requires no signup, and runs instantly in your browser.

Sobre a Conversor de Cor RGB ↔ HEX

The RGB ↔ HEX Color Converter uses a real, verifiable formula — RGB → Hex: each channel (0-255) converted to a 2-digit hex pair. Hex → RGB: each hex pair parsed back to a 0-255 decimal value. — so results are accurate every time, not an approximation.