KeenKit Color Picker

How to convert HEX to RGB

Split a six-digit CSS hex color into red, green and blue pairs, then convert each pair from hexadecimal to decimal. For example, #36A2EB becomes rgb(54, 162, 235).

Convert the pairs or use a DevTools swatch

  1. For each pair, multiply the first digit by 16 and add the second. The letters A through F stand for 10 through 15. In A2, that gives 10 × 16 + 2 = 162.
  2. With three-digit CSS hex, double each digit first. #3AE expands to #33AAEE, which is rgb(51, 170, 238). Four- and eight-digit hex also encode opacity, so keep an alpha channel if you need to preserve transparency.
  3. If the value is already in a page’s CSS, inspect the element in Edge DevTools. In Styles, open the color swatch and use the format control to show RGB or RGBA.

CSS hex color notation · Edge DevTools color controls

Convert a copied hex value from the toolbar

KeenKit Color Picker is available from Microsoft Edge Add-ons, in review for Firefox Add-ons, and coming soon to the Chrome Web Store. Get it for Edge

Open KeenKit Color Picker, enter a three- or six-digit hex value in the Color value field, select Convert, and use Copy RGB. The converter accepts opaque colors. For colors with an alpha channel, use DevTools or convert the opacity separately.

Converting a typed value takes no page snapshot and uses no network requests. When you use the eyedropper, up to eight recent sampled colors stay in your browser as HEX values.

Color Picker privacy policy