Color Picker Online

Pick any color and instantly get HEX, RGB, HSL and CMYK codes — plus palettes, harmonies and export-ready CSS.

Color Picker
Color Harmony
Palette Generator
Code Export

🎨 Pick a Color

🕒 Color History

👁️ Selected Color

Orange
Black Text
White Text
HEX: #ff6600
RGB: rgb(255, 102, 0)
HSL: hsl(24, 100%, 50%)
CMYK: cmyk(0%, 60%, 100%, 0%)

🔆 Lighter / Darker

🌈 Color Harmony

Complementary
Analogous
Triadic
Tetradic
Monochromatic
Split Complementary
Complementary colors are directly opposite each other on the color wheel. They create a strong contrast and vibrant look.

🎭 Palette Generator

💻 Export Code

CSS
Tailwind CSS
Bootstrap
SCSS Variables
/* CSS Color Variables */ :root { --primary-color: #ff6600; --primary-dark: #cc5200; --primary-light: #ff8533; }
Copied to clipboard!

Related Tools

Getting the right color code shouldn’t slow down your workflow. Whether you’re building a website, designing a UI, or putting together brand guidelines, this tool gives you the exact values you need — HEX, RGB, HSL, and CMYK — the moment you pick a color.

No Photoshop, no Figma, no plugins. Pick a color, copy the code, move on.

What This Color Picker Does

Most online color pickers give you a HEX code and stop there. This one goes further. Pick any color from the wheel or type in a known value, and you immediately get:

  • HEX — the standard format for web and CSS (#ff6600)
  • RGB — red, green, blue values for screen design (rgb(255, 102, 0))
  • HSL — hue, saturation, lightness — the most intuitive format for making adjustments (hsl(24, 100%, 50%))
  • CMYK — approximate print values for branding and design handoffs

On top of that, the tool generates shades and tints of your chosen color, produces multiple color harmony schemes, and exports ready-to-paste code for CSS, Tailwind, Bootstrap, and SCSS — all from a single pick.

How to Use the Color Picker

Pick from the wheel — Click anywhere on the hexagon color wheel to select a hue. Drag to fine-tune. The values update live.

Enter a known code — If you already have a HEX value like #3B82F6, type it directly into the input box and the picker jumps to that color.

Use the HTML5 picker — Click the native color input for a system-level picker. On some devices this is faster than the wheel for precise color selection.

Copy any format — Each value (HEX, RGB, HSL, CMYK) has its own copy button. One click and it’s on your clipboard.

Check contrast — The preview shows how your color reads with both black and white text so you can check legibility before using it in production.

Color Formats Explained

Understanding which format to use where saves time and avoids conversion errors.

HEX is the default for web design. It’s compact (#ff6600), widely supported across all browsers, and the format most CSS frameworks expect. The six characters represent red, green, and blue channels in hexadecimal — each pair ranges from 00 (none) to FF (full intensity). There are exactly 16,777,216 possible HEX colors.

RGB (rgb(255, 102, 0)) is more readable for developers working programmatically. It maps directly to how monitors mix red, green, and blue light. Use RGB when you need to manipulate color values in JavaScript or when working with CSS rgba() for transparency.

HSL (hsl(24, 100%, 50%)) is the most human-friendly format for designers. Hue is the color type (0–360 degrees on the wheel), Saturation controls intensity, and Lightness controls brightness. Adjusting lightness by 10% gives you a predictable result — something that’s not obvious from a HEX code. Modern CSS supports HSL natively, and it’s ideal for building design systems with consistent tonal variations.

CMYK values are approximate conversions for print work. Screen colors and print colors work differently — CMYK is a subtractive model used in physical printing. The values here give you a starting point for design handoffs to print vendors, though final print proofing should always be done with proper color management tools.

Color Harmony — Building Palettes from a Single Color

Picking one color is the easy part. Choosing the colors that work with it is where most people get stuck. The harmony tab takes the guesswork out of it by applying established color theory rules:

Complementary — The color directly opposite your chosen hue on the wheel. High contrast, great for CTAs and accent elements. If your primary is a warm orange, its complement is a cool blue.

Analogous — Colors sitting adjacent to yours on the wheel. They feel natural together — low contrast, harmonious, calm. Good for backgrounds and supporting elements that shouldn’t compete with the main color.

Triadic — Three colors evenly spaced around the wheel. More dynamic than analogous, less harsh than complementary. Works well for illustrations and playful brand palettes.

Monochromatic — Variations of a single hue at different saturation and lightness levels. The safest approach for minimalist interfaces and professional layouts where visual noise needs to stay low.

Split Complementary — A softer alternative to pure complementary. Instead of the exact opposite color, you get the two colors adjacent to it. More variety without the high contrast tension.

Tetradic — Four colors forming a rectangle on the wheel. Rich palettes, but requires careful balance — one color usually needs to dominate and the others serve as accents.

Export Code for Developers

After picking your color and generating a palette, the Export tab produces ready-to-use code:

CSS Variables — Outputs a :root {} block with --primary-color, --primary-dark, and --primary-light variables. Paste directly into your stylesheet.

Tailwind CSS — Generates a colors object for your tailwind.config.js file. Useful when you’re working with a custom brand color that isn’t in Tailwind’s default palette.

Bootstrap SCSS — Outputs $variable: value; declarations for Bootstrap’s SCSS customization layer.

SCSS Variables — Generic SCSS format for any project using Sass or SCSS preprocessing.

Frequently Asked Questions (FAQ)

Open the color picker and click on the color you want on the wheel, or type a known value into the input box. The HEX code appears instantly in the results panel below the preview. Click the copy button next to it to copy the value directly to your clipboard. If you’re trying to match a color from a design or image, use an eyedropper browser extension alongside this tool to sample the color first.

All three represent the same colors — they’re just different ways of writing color values. HEX uses a six-digit code like #ff6600 and is most common in CSS and HTML. RGB uses three numbers from 0–255 like rgb(255, 102, 0) and maps to how screens display color. HSL uses hue (0–360), saturation (%), and lightness (%) like hsl(24, 100%, 50%) and is the easiest format for making intuitive adjustments — changing lightness by 10 is predictable in a way that editing a HEX code isn’t. Use HEX for static CSS, HSL for dynamic or programmatic adjustments.

Yes. After picking your color, go to the Export tab and select Tailwind CSS. The tool generates a color object you can paste directly into the theme.extend.colors section of your tailwind.config.js file. This is useful when your brand color doesn’t match any of Tailwind’s built-in palette colors and you need a consistent set of shades.

Pick your base color on the wheel, then open the Palette Generator tab. You can generate new palettes automatically or generate from your current color. The harmony tab also produces coordinated color sets using complementary, analogous, triadic, and other rules. Both approaches give you multiple colors that work together with your base choice.

A complementary color is the color directly opposite your chosen hue on the color wheel. For example, the complement of orange is blue, and the complement of red is green. Complementary pairs create strong visual contrast — they’re commonly used for CTA buttons and highlight elements. To find the complementary color for any value, pick your color on the wheel and open the Harmony tab, then select Complementary. The tool shows both colors side by side.

The tool provides approximate CMYK values that give you a starting point for print work. Keep in mind that screen colors (RGB/HEX) and print colors (CMYK) operate differently — CMYK is a subtractive model and not all screen colors are reproducible in print. The CMYK values here are useful for design handoffs and initial estimates, but final print work should go through proper color management and proofing with your printer.

HSL stands for Hue, Saturation, Lightness. Hue is the color angle (0–360°), Saturation controls how vivid or muted the color is, and Lightness controls how bright or dark it appears. Designers prefer HSL because adjustments are intuitive — increasing lightness by 10% gives you a reliably lighter version of the same color. With HEX or RGB, achieving the same adjustment requires either mental math or trial and error. HSL is especially useful for building design systems where you need consistent light, mid, and dark tones of a brand color.

The tool shows a live contrast preview below the color wheel — your chosen color appears as a background with both black and white text overlaid. If white text looks clearly readable on your background color, you likely have sufficient contrast for WCAG AA compliance. For precise contrast ratio numbers, use your browser’s DevTools accessibility checker after applying the color to a page.