tools.junyo.dev

rgb to hex

Convert RGB to HEX

This page handles the reverse path and highlights the hexadecimal value ready to copy.

How RGB becomes HEX

  • Each RGB channel is converted into two hexadecimal digits, preserving the red, green and blue order.
  • When alpha exists, the HEX equivalent uses the 8-digit format.

RGB → HEX examples

Interface blue

Input
rgb(14, 165, 233)
Expected output
#0ea5e9

Very common in modern UIs.

Pure white

Input
rgb(255, 255, 255)
Expected output
#ffffff

Simple reference case.

Full tool FAQ

Yes. The idea is to show equivalent representations of the same color in different notations, making it easier to use the value across CSS, design systems, visual documentation and design-to-code workflows.

Frequently asked questions

Do RGB and HEX lose information?

No in sRGB with the same channels; they are just different notations.

Can I copy the final value?

Yes. The highlighted format appears ready to copy inside the widget.