anındahesapla

HEX to RGB color converter

Switches a hexadecimal color code into its red, green and blue values for CSS, design tools and code.

· Updated:

WhatsApp X Facebook

#3498DB = rgb(52, 152, 219). The HEX code #3498DB breaks down into red 52, green 152 and blue 219.

Web designers, developers, illustrators and anyone matching brand colors across tools use this converter.

Same color, two notations.

Each channel is listed on its own line.

The # sign is optional.

Result

rgb(52, 152, 219)

#3498DB = rgb(52, 152, 219)

HEX and RGB

Screens mix red, green and blue light.

Each channel has its own value.

A HEX code writes the three channels as pairs of hexadecimal digits, so #3498DB splits into three pairs, and converting each pair from hexadecimal to decimal gives 52, 152 and 219, the RGB values the calculator shows.

Two hex digits cover one full channel.

FF is the brightest a channel can be.

Design tools accept both formats.

Some programs ask for HEX, others for RGB, and CSS accepts either, so converting lets you copy a brand color from a style guide into any tool without the shade shifting along the way.

Short codes exist.

#FFF is the same as #FFFFFF.

RGB is easy to adjust. Raising or lowering one number lightens or darkens a single channel, which is handy when fine-tuning a shade.

Quick rule: each pair of hex digits is one channel.

Letters can be upper or lower case.

Accessibility checks compare text and background colors for contrast, and many contrast tools work from RGB values, so converting a HEX palette is often the first step in making sure a design stays readable for everyone.

Transparency adds a fourth channel in some formats.

Brand guidelines often list each color in several formats, including HEX, RGB and print values, so that the same shade can be reproduced on screens, in documents and on printed materials.

Converting a HEX code by hand is good practice for learning hexadecimal: each digit stands for a value from zero to fifteen, and the first digit of a pair counts sixteen times as much as the second.

Color pickers in browsers show both formats side by side.

Older web pages used a short list of named colors, but HEX codes give access to millions of shades.

How to use it

Each pair of hex digits is converted from hexadecimal to decimal.

  1. Enter the HEX color code, with or without #.
  2. Read the RGB value.
  3. See the red, green and blue channels separately.
Input or resultValue
HEX#3498DB
Red (R)52
Green (G)152
Blue (B)219
RGBrgb(52, 152, 219)

Upper and lower case both work.

If a converted color looks different on another device, check the display settings before changing the code, since screens vary in brightness and color profile and the same RGB numbers can look slightly warmer or cooler from one monitor to the next.

Frequently Asked Questions

What is #3498DB in RGB?
rgb(52, 152, 219).
What range does each channel use?
From zero up to FF, the brightest value.
Is #FFF the same as #FFFFFF?
Yes.
Does letter case matter?
No.
Why does the color look different on another screen?
Displays differ in brightness and color profile, so identical values can appear slightly different.

Related calculations