HEX to RGB Converter

Free, Open Source & Ad-free

HEX Value

RGB Output

CSS / Platform Codes

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.0)
Android: Color.rgb(0, 0, 0)

Easily convert HEX CSS/HTML color codes to RGB for CSS, Objective-C, Swift, or Android.

How to Use

  1. Enter your HEX color code.
  2. Copy the resulting RGB color code or platform-specific code.

The CSS color converter works by taking your hexadecimal color code (HEX) and converting it into the corresponding RGB values, which represent the red, green, and blue components ranging from 0 to 255. This allows you to easily match HTML and CSS colors with design tools such as Figma, Photoshop, or Sketch. For example, entering a HEX code from your CSS instantly gives you the matching RGB values to ensure design consistency across platforms. Need to convert the other way? You can use the RGB to HEX converter here.