Graphic Designer Color Codes: RGB, HEX, CMYK, & Pantone

Graphic Designer Color Codes: RGB, HEX, CMYK, & Pantone

Samantha Remboldt

Explore HEX, RGB, CMYK, and Pantone color codes, and how we use them in graphic design projects. 


As a graphic designer, I’m
obsessed with color. But today, I want to talk about something even more fascinating than just picking pretty colors: the magic of quantifying color. How do color codes actually work, and why do we even use them?

In this post, we’ll skim the surface of four common systems designers use to define color precisely: RGB, Hex, CMYK, and Pantone. Whether you’re just starting out in design or you’re curious about how your screen translates those vibrant hues, this will give you the scoop.

 

Before we dive into each type of color code, here's your cheat sheet: 

  • RGB = Great for screen-based designs (computers, phones, TVs).

  • Hex Codes = A shorthand for RGB, perfect for web coding.

  • CMYK = Ideal for print, describing how much ink of each hue is used.

  • Pantone = The industry standard for precise color matching across different materials and regions.



Why Do We Quantify Color?

Ever wonder how you tell someone “use this exact green” without just pointing at a swatch on your screen? That’s where quantifying color comes in. All four systems—RGB, Hex, CMYK, and Pantone—let us describe colors so specifically that another designer (or a printer) can replicate the exact hue we want, anywhere in the world.

Let’s dive into each system, how it works, and when you might use it.




RGB (Red, Green, Blue)

Perfect for Screens & Digital Media

RGB stands for Red, Green, and Blue, the three colors of light that mix on most digital screens (like your phone, computer monitor, or TV). Each pixel on a screen has subpixels that light up at different intensities of red, green, and blue, creating the vast range of colors you see.

How RGB Works:

  • Each color—Red, Green, and Blue—ranges from 0 (no intensity) to 255 (full intensity).

  • Why 255? Because each color channel has 256 levels (from 0 to 255). If you see a color like rgb(255, 192, 203) (which is a variation of pink), that means 100% red, 75% green, and about 80% blue—yielding that soft, warm tone.

  • An RGB color is written as RGB(R, G, B). For instance:

    • Bright Red: RGB(255, 0, 0) (all red, no green or blue)

    • Shamrock Green: RGB(72, 177, 135) (plenty of green and a good amount of blue)

 

 

 

Hex Codes (Hexadecimal System)

A Shortcut for Digital & Web

If you’ve played with CSS or HTML, you’ve probably seen something like #FF0000. That’s a hex code, another way to represent an RGB color—just in a base-16 (hexadecimal) format.

Why Hex?

  • RGB can get long (e.g., rgb(255, 192, 203) is 17 characters if you count commas and spaces!).

  • Hex codes compress those numbers into six characters (after a #).

  • It’s more efficient for coding, and it loads faster on websites than a long numeric list.

In a hex code, the first two digits represent red, the next two represent green, and the last two represent blue. Each pair is a base-16 number—meaning we count from 0-9, then A-F.

  • 0 = 0, 1 = 1, …, 9 = 9, 10 = A, …, 15 = F.

So #B834E0 breaks down into:

  • B8 for red,

  • 34 for green,

  • E0 for blue.

The math behind it is a little mind-bending, but it’s essentially just a clever shorthand for those same 0 to 255 values you see in RGB.

 

Here's a preview of the math for a hex code: 

So, in this example, the first 2 digits of the hex code are #B8. 

 

CMYK (Cyan, Magenta, Yellow, Key/Black)

The Go-To for Print

When you’re designing something that will be physically printed—like business cards, posters, or packaging—CMYK is your friend. It stands for Cyan, Magenta, Yellow, and Key (Black), the four ink plates used in color printing.

How It Works:

  • You’ll often see it written as cmyk(c%, m%, y%, k%).

  • Each percentage tells you how much of that ink color is used.

  • Key (K) is black ink, which helps darken the color or add contrast without using all three of the other inks at once.

 

For instance, if you have a slightly darker green, you might see something like cmyk(59%, 0%, 24%, 31%). That means a decent chunk of cyan and some yellow, plus 31% black for depth.



Pantone

An Industry Standard for Color Consistency

Finally, Pantone is the big kahuna of color matching systems. It’s a proprietary system created to ensure color accuracy across different printers, materials, and even countries.

Why Pantone?

  • Screens differ. If I say “yellow,” your monitor might display it differently than mine.

  • Materials differ. The same ink on glossy paper vs. matte paper can look like two completely different colors.

  • Global consistency. Big brands (think Lays, Coca-Cola, etc.) need one universal reference so that every print run matches, no matter which factory or region prints it.

Pantone assigns a specific code (e.g., Pantone 109 C or Pantone 109 U, where “C” is coated paper and “U” is uncoated) so you get the exact color you intend—no surprises, no weird tints.


Final Thoughts & a Color Challenge

Quantifying color is so magical—it's like learning a new language that instantly helps you communicate more precisely as a designer. RGB and Hex are your jam for screens and digital design, CMYK is your bestie for print work, and Pantone is the ultimate pro-level system for absolute color accuracy on any surface.

Wanna geek out even more? Here’s a fun challenge:

  1. Pick a random RGB color (something like RGB(184, 52, 224)).

  2. Convert it to a hex code by hand, using the base-16 math we talked about.

  3. Check your answer in a design program or with an online converter—just to see if your math lines up!

You’ll rarely have to do the conversion by hand in actual design work—but it’s pretty thrilling to know you can if you want.


Key Takeaways

  • RGB = Great for screen-based designs (computers, phones, TVs).

  • Hex Codes = A shorthand for RGB, perfect for web coding.

  • CMYK = Ideal for print, describing how much ink of each hue is used.

  • Pantone = The industry standard for precise color matching across different materials and regions.

Back to blog

★ ★ ★ ★ ★

Say hello to your new favorite color palette tool:

Color Palette PRO

Excellent 4.97 | Trusted by 1,000+ Designers

Create beautiful, brand-ready color palettes in 60 seconds.

Our all‐in‐one tool helps you select, test, and finalize your brand’s perfect palette—without the guesswork.

Get Color Palette PRO

Read the Reviews

"Wow, I love this! It's insanely useful!! From generating themed names to contrast compliance - this tool is so much fun to use and saved me a ton of time."

Customer Reviews

Based on 72 reviews
93%
(67)
6%
(4)
1%
(1)
0%
(0)
0%
(0)
J
Julia B.
SO helpful

This tool has been an amazing addition to my design process. I'm so glad I got it! its such a time saver and it lays everything out really well. I highly recommend it!

Hi Julia,

Thank you for this wonderful review! I'm SO happy to hear that this tool is saving you time.

-Sam

M
Megan D.
I'm Obsessed!

I've been a fan of their tools from the beginning, but I've got to say the new Color Palette Pro is the best yet! As a web designer this is the first place I go to take my clients' inspiration and create a palette that's uniquely them, but also meets contrast guidelines. It's so much fun to use I could spend hours just creating amazing palettes. There's so much here, I could go on and on, do yourself a favor and grab this tool!

Hi Megan,

I'm so grateful for your review- thank you! I love your comment about spending hours just playing with the tool- I felt the exact same way when we were working on this new update. I'm glad this makes creating color palettes feel FUN. Thank you!

-Sam

K
Kelly D.
The Graphic Designer's Best Friend

WOW! This is the best tool and I love using it regularly for branding, graphic design, and web development projects. I highly recommend it to improve your creative process. Bonus: it's super fun to use, too!

Hi Kelly,

Your review means so much to us- thank you so much. I LOVE to hear that you're having fun using it, that was our whole goal with this update.

-Sam

H
Hailey F.
I LOVE Color Palette Pro!

I'm a brand and web designer and recently purchased Color Palette Pro. I just used it for two client projects and am loving that I can make my color palettes more accessible. I am really enjoying entering in my color palette and being able to see exactly which colors work best with eachother.

Hi Hailey,

Thanks so much for sharing your experience! THRILLED to hear that you love Color Palette PRO. It's a fun tool to use, and we love to hear that you're actually using it for client projects.
-Sam

I
Ingrid U.
Saves me SO much time and it's fun to use!

I love playing with color and going down the rabbit hole of color psychology and this is so helpful in letting me explore different combinations and good balanced palettes!!

Hi Ingrid,

Thank you SO much for getting Color Paletet PRO and writing this kind review. I love to hear that this is helping you have fun with color psychology and create more balanced palettes. Enjoy your tool!

-Sam