A color picker lets you select any color and instantly get its HEX, RGB, and HSL codes — the foundation of every design and web project. Color is one of the most powerful tools in design — it communicates brand identity, guides attention, conveys emotion, and determines whether a design feels professional or amateurish. Yet most beginners struggle with color codes: what is the difference between HEX and RGB? When do you use HSL? What is CMYK for?
This guide covers every color format used in web and print design, explains color theory fundamentals, lists the official color codes of major brands, and shows you how to choose accessible color combinations that work for all users.
Pick Any Color — Free Online Color Picker
Get HEX, RGB, HSL, and CMYK values instantly. Visual picker, screen eyedropper, and copy-to-clipboard. No sign-up needed.
HEX, RGB, HSL, CMYK — Color Formats Explained
Every color format is just a different way of expressing the same underlying color. Here is when and why each is used:
| Format | Example | Best Used For | Range |
|---|---|---|---|
| HEX | #1d4ed8 | CSS, HTML, web design | #000000–#ffffff |
| RGB | rgb(29, 78, 216) | CSS, screens, digital | 0–255 per channel |
| RGBA | rgba(29, 78, 216, 0.5) | CSS with transparency | RGB + 0–1 alpha |
| HSL | hsl(221, 76%, 48%) | CSS animations, theming | H:0–360, S/L:0–100% |
| HSLA | hsla(221, 76%, 48%, 0.5) | CSS with transparency | HSL + alpha |
| CMYK | cmyk(87, 64, 0, 15) | Print design (Photoshop) | 0–100% per channel |
| HSV/HSB | hsv(221, 87%, 85%) | Photoshop, design apps | H:0–360, S/V:0–100% |
HEX explained
A HEX color code is a 6-digit hexadecimal number: #RRGGBB. Each pair of digits represents Red, Green, Blue (0–255 in base-16). #000000 is black (0,0,0), #ffffff is white (255,255,255), #ff0000 is pure red. Shorthand: #fff = #ffffff, #f00 = #ff0000.
RGB explained
RGB stands for Red, Green, Blue. rgb(255, 0, 0) is red; rgb(0, 255, 0) is green; rgb(0, 0, 255) is blue. Mixing equal amounts of all three creates grey (rgb(128,128,128)) or white (rgb(255,255,255)).
HSL explained — the most intuitive for design
HSL stands for Hue, Saturation, Lightness. Hue is the color angle on the color wheel (0° = red, 120° = green, 240° = blue). Saturation is how vivid vs grey (0% = grey, 100% = vivid). Lightness is how light vs dark (0% = black, 100% = white, 50% = the "true" color). HSL is the most intuitive for designers — to make a color lighter, just increase L. To create a muted palette, reduce S.
Color Theory Basics for Designers and Developers
Color theory gives you a framework for choosing colors that work well together. Here are the fundamental relationships:
The color wheel
Primary colors: Red, Yellow, Blue. Secondary colors: Orange (R+Y), Green (Y+B), Violet (B+R). Tertiary colors are between primary and secondary. On the digital color wheel, primary colors are Red (0°), Green (120°), Blue (240°).
Color harmonies
- Complementary: Colors opposite on the wheel (blue + orange, red + green). High contrast, eye-catching. Good for CTAs and accents.
- Analogous: 3 adjacent colors on the wheel (blue, blue-green, green). Harmonious and easy on the eye. Good for backgrounds and serene designs.
- Triadic: 3 colors equally spaced (red, yellow, blue). Vibrant and balanced. Good for playful brands.
- Split-complementary: A color plus the two colors adjacent to its complement. Softer than complementary but still high contrast.
- Monochromatic: Different shades and tints of one hue. Clean, elegant, sophisticated.
Psychology of color
- Red: Urgency, passion, danger (used by YouTube, Netflix, Coca-Cola)
- Blue: Trust, reliability, calm (used by Facebook, LinkedIn, Samsung)
- Green: Nature, growth, health (used by WhatsApp, Spotify, Whole Foods)
- Yellow: Energy, optimism, warning (used by McDonald's, IKEA, Snapchat)
- Black: Luxury, sophistication (used by Chanel, Apple, Nike)
Official Brand Color Codes (HEX Reference)
Brand colors are usually protected intellectual property — only use them for reference or when building integrations/partner content. Here are the official colors of major brands:
| Brand | Primary Color | HEX Code | RGB |
|---|---|---|---|
| Google (blue) | Google Blue | #4285F4 | 66, 133, 244 |
| Meta / Facebook | Meta Blue | #1877F2 | 24, 119, 242 |
| WhatsApp Green | #25D366 | 37, 211, 102 | |
| YouTube | YouTube Red | #FF0000 | 255, 0, 0 |
| Twitter / X | X Black | #000000 | 0, 0, 0 |
| Instagram Purple | #833AB4 | 131, 58, 180 | |
| LinkedIn Blue | #0077B5 | 0, 119, 181 | |
| Amazon | Amazon Orange | #FF9900 | 255, 153, 0 |
| Netflix | Netflix Red | #E50914 | 229, 9, 20 |
| Spotify | Spotify Green | #1DB954 | 29, 185, 84 |
| Apple | Apple Silver | #A2AAAD | 162, 170, 173 |
CSS Custom Properties (CSS Variables)
For web projects, define your brand colors once and reuse everywhere:
:root {
--color-primary: #1d4ed8;
--color-primary-light: #3b82f6;
--color-primary-dark: #1e40af;
--color-accent: #f59e0b;
--color-text: #111827;
--color-bg: #ffffff;
}How to Choose Accessible Colors (WCAG Compliance)
Color accessibility means ensuring that people with color blindness or low vision can read and understand your content. About 8% of men and 0.5% of women have some form of color vision deficiency.
WCAG contrast requirements
- AA standard (minimum): 4.5:1 contrast ratio for normal text, 3:1 for large text
- AAA standard (enhanced): 7:1 for normal text, 4.5:1 for large text
Contrast ratio quick reference
| Text Color | Background | Contrast Ratio | WCAG AA |
|---|---|---|---|
| #000000 (black) | #ffffff (white) | 21:1 | Pass ✓ |
| #ffffff (white) | #1d4ed8 (blue) | 8.59:1 | Pass ✓ |
| #ffffff (white) | #3b82f6 (light blue) | 3.02:1 | Fail ✗ |
| #1f2937 (dark) | #f9fafb (light grey) | 16.1:1 | Pass ✓ |
| #6b7280 (grey) | #ffffff (white) | 4.48:1 | Borderline |
Color blindness safe palettes
The most common color blindness is red-green (deuteranopia). Never rely on red vs green alone to convey meaning. Use blue + orange or blue + yellow as safe alternatives. Always add icons or text labels alongside color to ensure meaning is not lost for colorblind users.
How to Use the Tool (Step by Step)
- 1
Open the Color Picker
Go to ToolsArena's Color Picker. Click anywhere on the color spectrum or enter a known HEX/RGB/HSL value to start.
- 2
Select your color visually
Click the color square to open the visual picker. Drag the crosshair to your desired color, then adjust the hue slider and lightness.
- 3
Copy in your preferred format
Click the HEX, RGB, or HSL tab to switch formats. Click the copy button next to the value to copy it to your clipboard.
- 4
Get color from an image
Use the eyedropper / screen picker (supported in Chrome/Edge) to pick any color visible on your screen — from a website, image, or application.
- 5
Check contrast accessibility
Paste your chosen colors into ToolsArena's Color Contrast Checker to verify they meet WCAG AA requirements before using them in your design.
Frequently Asked Questions
What is the difference between RGB and HEX color codes?+−
HEX and RGB represent the same colors in different notations. HEX uses base-16 notation (#rrggbb) while RGB uses decimal (0–255 per channel). #ff0000 and rgb(255,0,0) are identical red. Use HEX for shorthand in HTML/CSS; RGB when you need to manipulate individual color channels or add transparency with rgba().
How do I find the color code from an image?+−
Use the browser's built-in eyedropper tool (available in Chrome 95+, Edge, Firefox): open the color picker in DevTools or use an online color picker with screen capture. Alternatively, open the image in Photoshop or GIMP and use the eyedropper tool, then read the HEX value from the color info panel.
What is HSL color and when should I use it?+−
HSL (Hue, Saturation, Lightness) is the most intuitive format for designers. Hue (0–360°) is the base color, Saturation is vividness, Lightness is brightness. Use HSL in CSS when you want to programmatically create color variations — for example, to make a hover state lighter: increase L by 10%. CSS custom properties with HSL make theming much easier.
How do I choose accessible text and background colors?+−
Your text/background combination must have a contrast ratio of at least 4.5:1 for normal text (WCAG AA standard). Dark text on light background and light text on dark background generally work. Avoid light grey text on white, yellow text on white, or pastel colors on white. Use a contrast checker tool before finalising your color choices.
What is CMYK color and why is it different from RGB?+−
RGB (Red, Green, Blue) is an additive color model for screens — mixing light. CMYK (Cyan, Magenta, Yellow, Black) is a subtractive model for printing — mixing ink. The same color can look different in RGB vs CMYK because printers cannot reproduce every color screens can display (the "gamut" is smaller for print). Always work in CMYK when designing for physical print materials.
Pick Any Color — Free Online Color Picker
Get HEX, RGB, HSL, and CMYK values instantly. Visual picker, screen eyedropper, and copy-to-clipboard. No sign-up needed.
Open Color PickerRelated Guides
Image Compression Guide
Everything web developers, bloggers, and designers need to know about compressing images for fast, beautiful websites.
How to Resize Images Online Free — Complete Guide (2026)
Social media sizes, pixel dimensions, DPI, file formats and everything you need to resize images perfectly.
Complete Word Counter Guide
Everything writers, students, bloggers, and SEO professionals need to know about word count.