Skip to main content

HEX to RGB Converter

Convert a HEX colour code to RGB, HSL, and CMYK values instantly

Runs locally in your browser🆓Free — no sign-up🔒100% Private

Working with colour on the web requires fluency in multiple colour formats. A designer's colour swatch tool exports a colour as HEX (#FF5733), but the frontend CSS needs it in RGB (255, 87, 51), and the API documentation lists it in HSL (11°, 100%, 60%) for accessibility adjustments. Converting between these formats manually is tedious and error-prone. A hex-to-rgb converter eliminates guesswork by instantly translating any hex code into RGB, HSL, and CMYK values, with a live colour preview so you can verify the result matches your intent. UI designers preparing a design system often work from a Figma file where colours are shown as hex values, but need to supply RGB triplets to developers or CMYK breakdowns to print vendors. A developer integrating a colour palette API that returns hex codes but needs to manipulate individual colour channels in code benefits from seeing all formats side by side. Accessibility auditors and colour-blind users also rely on multiple format views to find combinations that work across different colour spaces and perceptual models. All conversion runs instantly in your browser — enter a hex code or paste one from your design tool, and all equivalent formats appear immediately. The live swatch preview lets you confirm you have the right colour before copying it into code, CSS, or design tools.

RGBrgb(124, 58, 237)
HSLhsl(262, 83%, 58%)
CMYKcmyk(48%, 76%, 0%, 7%)

How to use HEX to RGB Converter

  1. 1.Enter any HEX colour code (with or without the # symbol) into the input field.
  2. 2.See the RGB values update instantly — for example, #FF5733 becomes rgb(255, 87, 51).
  3. 3.View the HSL and CMYK equivalents in real time, useful for CSS variables and print design.
  4. 4.Check the live colour preview swatch to confirm the colour matches your design.
  5. 5.Click 'Copy' next to any format to copy that value to your clipboard for pasting into code or design tools.

Key Features

Instant conversionHEX to RGB, HSL, and CMYK conversions happen instantly — no delay or processing time.

Multiple colour formatsSee your colour in HEX, RGB, HSL, and CMYK simultaneously, useful for web, CSS, and print design workflows.

Live colour previewA large swatch shows the colour in real time, confirming visually that you have the right shade.

One-click copyCopy any format (HEX, RGB, HSL, CMYK) directly to your clipboard without manual text selection.

Frequently Asked Questions about HEX to RGB Converter

Paste your hex code (like #FF5733) into the field above and the tool instantly shows the equivalent RGB, HSL, and CMYK values. To do it by hand, split the hex into three pairs and convert each from base-16 to base-10: FF=255, 57=87, 33=51, giving rgb(255, 87, 51).
Share:
All Tools