RGB to HEX
Turn rgb() values into a hex colour code.
0 characters
Output
or press ⌘/Ctrl + EnterYour result appears here.
- Runs in your browser
- Nothing is uploaded
- Free, no sign-up
How to use it
- Paste a colour in any form: #1e90ff, rgb(30, 144, 255), hsl(210, 100%, 56%) or a name like dodgerblue.
- Run it to see the same colour in HEX, RGB, HSL, HSB and CMYK.
- Copy the format you need and check the contrast ratios before using it for text.
Why Tool Dock
- FastEverything runs on your own device, so there is no queue and no waiting for uploads.
- PrivateYour files and text never leave the browser. Close the tab and they are gone.
- Batch friendlyDrop several files at once and download each result, or all of them together.
Questions
Can I type just the numbers?
Yes. rgb(255 87 51), rgb(255, 87, 51) and percentages such as rgb(100% 34% 20%) all work.
Why is my hex code lowercase?
Hex is case-insensitive; browsers treat #FF5733 and #ff5733 the same. Copy and change the case if your style guide prefers upper case.
Related tools
- Image Color PickerClick any pixel of an image to get its HEX, RGB and HSL colour, plus the main palette.
- Security Headers AnalyzerPaste a site’s response headers to grade HSTS, CSP, clickjacking protection and more.
- security.txt Generator & ValidatorCreate a valid security.txt for your site, or check an existing one against RFC 9116.
- Base64 DecodeTurn Base64 back into text, images or files, right in your browser.
- Base64 EncodeTurn text or any file into Base64, right in your browser.
- BIMI CheckerCheck whether your brand logo can show next to your emails: BIMI record, logo, certificate and DMARC.