RGB to HEX
converter
Keep one opaque sRGB color exact
in either notation.
Convert your color
Opaque sRGB preview
Result (opaque sRGB)
#2642D5rgb(38 66 213)RGB integers 0–255; HEX 3 or 6 digits. Alpha is not supported.
How it works
Enter either notation
Type a 3 or 6 digit HEX
or RGB values
from 0 to 255.
Keep one color in sync
Use the controls to
update the same color
in both notations.
Copy the exact values
Copy HEX or RGB
value for your project.
Notation changes; the encoded sRGB color stays the same. Screen appearance varies.
Questions, Answered
Why does #3AF become #33AAFF?
Short HEX repeats each digit before reading the three channels.
Can I enter transparency?
This converter supports opaque sRGB only. Four- and eight-digit HEX, alpha channels, named colors, percentages and wide-gamut color conversion are outside its scope.
What happens after an invalid value?
The last valid swatch stays visible with an error. Copying and adding to the moodboard are disabled until all entered values are valid. Channels are never silently wrapped or rounded.
