Instant · live preview

HEX to RGB Converter

Paste a HEX colour code and get the red, green and blue channels plus the ready-to-paste CSS rgb() value.

RGB values

Red79
Green219
Blue200
rgb(79, 219, 200)

HEX is RGB in disguise

Every HEX code is just three base-16 numbers. Converting reveals the actual channel strengths — useful when you need to programmatically lighten, darken or blend a colour.

Need transparency?

HEX cannot express opacity on its own — that is the main reason to convert. rgba(79, 219, 200, 0.5) keeps your colour and adds the alpha channel CSS needs.

Paste-ready CSS

The output is formatted exactly as CSS expects it. Copy the rgb() string and drop it straight into your stylesheet — no reformatting needed.

How to use the HEX to RGB converter

  1. Paste your HEX code

    With or without the # — 3-digit shorthand like f00 works too.

  2. Read the channels

    See each channel's 0–255 value with a visual strength bar.

  3. Copy the CSS

    One click copies the rgb() string, ready to paste into your stylesheet.

  4. Preview instantly

    The swatch updates live so you can confirm the colour is the one you meant.

Conversion is exact — HEX and RGB describe the identical colour; nothing is lost in translation.

Frequently asked questions

Related tools

Need a custom tool?

We build calculators and internal tools for businesses — get in touch.

Directory last updated 2 December 2026.

Disclaimer: conversion is mathematically exact, but how the colour renders depends on your display and browser colour profile.