Skip to content
VELNARO

RGB to HEX Converter

Enter red, green and blue values from 0 to 255 to get the hex code, plus the HSL and CMYK equivalents.

HEX

#3563F5

RGB

rgb(53, 99, 245)

HSL

hsl(226, 91%, 58%)

Short hex

Not available

How this was worked out

  1. Step 1Convert each channel to hexadecimal: 53 → 35, 99 → 63, 245 → F5

Formula

Each channel is converted to a two-digit hexadecimal pair and prefixed with #.

Example

Input

rgb(53, 99, 245)

Result

#3563F5

Frequently asked questions

Convert first: 50% of 255 is about 128.

Related tools

Keep going — these tools solve the problems that usually come next.