Developer & Coding Tools
100% Client-Side Color code parsing runs locally in browser memory.

HEX to RGB & RGB to HEX Color Code Converter

Convert colors between HEX, RGB, RGBA, HSL, and CMYK formats with instant 1-click clipboard copy

Select or Input Color

Color Format Conversions

HEX Code#3B82F6
Copy
RGB Formatrgb(59, 130, 246)
Copy
RGBA CSSrgba(59, 130, 246, 1)
Copy
HSL Formathsl(217, 91%, 60%)
Copy
CMYK Printcmyk(76%, 47%, 0%, 4%)
Copy

About HEX to RGB & RGB to HEX Color Code Converter

Seamlessly convert color codes between web and graphic formats. Features bidirectional conversion between HEX, RGB, RGBA, HSL, and CMYK with a visual color picker, live color swatch preview, and 1-click clipboard copy for CSS.

Key Capabilities & Features

  • Bidirectional color conversions: HEX, RGB, RGBA, HSL, CMYK
  • Interactive visual color picker and live swatch preview
  • 1-Click copy of formatted CSS color strings
  • Support for 3-digit and 6-digit hex codes

How to Use HEX to RGB & RGB to HEX Color Code Converter

1

Choose Color

Use the color picker or type a hex color code.

2

View Formats

Inspect matching RGB, HSL, and CMYK representations.

3

Copy CSS

Click any format card to copy the value to your clipboard.

Privacy & In-Browser Execution Guarantee

Color code parsing runs locally in browser memory.

Frequently Asked Questions

How is a HEX color converted to RGB?

A 6-digit hex code represents red, green, and blue in three 2-digit pairs (RR, GG, BB) in base-16, converted to decimal values from 0 to 255.