HEX to RGB Converter

Free, Open Source & Ad-free

CSS: rgba(0, 0, 0, 1)
Obj C: [UIColor colorWithRed: 0.00 green: 0.00 blue: 0.00 alpha: 1.0]
Swift: UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 1.00)
Android: Color.rgb(0, 0, 0)

Easily convert HEX CSS/HTML color codes to RGB. Whether you're working with CSS, Objective-C, Swift, or Android, index.ph's free color code converter has you covered.

How to use the HEX to RGB color converter:

  • Step 1:
    Enter your HEX color code
  • Step 2:
    Copy the resulting RGB color code

How the CSS color converter works

This tool takes your hexadecimal color code (HEX for short) and gives you the resulting RGB color combination of red, green, and blue values ranging from 0 to 255 — so you can match HTML/CSS colors to design files and other editing software. For example, if you're working with Figma designs, this tool allows you to input the HEX code you're using for HTML elements and get the RGB color codes to match in Figma.


Need to convert the other way? You can use the RGB to HEX converter here.