Blog
Custom Print on Demand Apparel — Free Storefront for Your Business
Wild & Free Tools

How to Find Any Color Code — Hex, RGB & HSL Explained Simply

Last updated: April 20267 min readColor Tools

Every color on a screen has three codes: hex, RGB, and HSL. They all describe the same color — just in different number systems. Here's how each works, when to use which, and how to find the code for any color you see.

The Three Color Formats

Hex — The Web Standard

Hex codes start with # followed by 6 characters (0-9 and A-F). The format is #RRGGBB — two characters each for red, green, and blue intensity.

Hex ValueDecimal EquivalentMeaning
000None of this color channel
80128Half intensity
FF255Full intensity

So #FF5733 means: full red (FF=255), moderate green (57=87), some blue (33=51). The result is a burnt orange.

RGB — The Design Tool Standard

RGB uses three decimal numbers from 0 to 255: rgb(red, green, blue). It's the same information as hex, just in base-10 instead of base-16.

RGB ValueColorWhy
rgb(255, 0, 0)Pure redMax red, no green, no blue
rgb(0, 255, 0)Pure greenNo red, max green, no blue
rgb(0, 0, 255)Pure blueNo red, no green, max blue
rgb(255, 255, 0)YellowMax red + max green = yellow
rgb(255, 255, 255)WhiteAll channels at maximum
rgb(128, 128, 128)Medium grayAll channels equal = gray

HSL — The Human-Friendly Format

HSL describes color the way humans think about it: hsl(hue, saturation, lightness).

Why HSL matters for developers: To make a button hover state darker, just lower the lightness by 10%. With hex or RGB, you'd need to calculate new values for all three channels. HSL makes color math intuitive.

How to Find a Color Code — 5 Methods

Method 1: Use a Color Picker

Open Color Picker, select a color visually from the wheel or spectrum, and get hex, RGB, and HSL codes instantly. Best for: choosing new colors for a design or project.

Method 2: Inspect a Website

Right-click any element on a webpage > Inspect (F12). In the Styles panel, find the color property. The hex/RGB/HSL code is displayed directly. Click the color swatch to open Chrome's built-in picker for that value.

Method 3: Extract from an Image

Upload a logo, screenshot, or photo to Color Extractor. Click anywhere on the image to get the exact color code. Best for: matching brand colors from a logo file or design mockup.

Method 4: Convert a Known Value

Have an RGB value but need hex? Type it into the Hex-RGB Converter or the Color Picker and all formats appear. Works in any direction: hex to RGB, RGB to HSL, HSL to hex.

Method 5: Desktop Eyedropper

Mac: Digital Color Meter (built-in, Applications > Utilities). Windows: PowerToys Color Picker (Win+Shift+C). These sample any pixel on your screen in real-time.

Common Brand & Framework Colors

ColorHexRGBUse Case
Tailwind Blue-500#3B82F6rgb(59, 130, 246)Default blue in Tailwind CSS
Bootstrap Primary#0D6EFDrgb(13, 110, 253)Bootstrap 5 primary blue
Material Design Indigo#3F51B5rgb(63, 81, 181)Google Material Design
GitHub Dark BG#0D1117rgb(13, 17, 23)GitHub dark mode background
Slack Aubergine#4A154Brgb(74, 21, 75)Slack brand purple
Spotify Green#1DB954rgb(29, 185, 84)Spotify brand green

Build a Full Color System

  1. Pick your primary color: Color Picker
  2. Generate complementary colors: Palette Generator
  3. Verify accessibility: Color Contrast Checker — test every text/background combination
  4. Create gradients: CSS Gradient Generator
  5. Set up meta tags: Meta Tag Generator — theme-color meta for mobile browsers

Find any color code — hex, RGB, HSL. Instant conversion.

Open Color Picker
Launch Your Own Clothing Brand — No Inventory, No Risk