Color Picker
Pick colors visually and get HEX, RGB, HSL, and CMYK values online. Free color picker with palette history and CSS code generation.
Enter HEX color or use the picker
About Color Picker
Pick any color and get its value in multiple formats: HEX, RGB, RGBA, HSL, HSLA, and CMYK. Click any format to copy it to your clipboard. Recent colors are saved for quick access.
How to Use Color Picker
Pick a color
Click anywhere on the color spectrum to select a color, drag the hue slider for precise hue selection, or type a known value (HEX, RGB, HSL) to start from a specific color.
View all formats
Your selected color is shown in HEX, RGB(A), HSL(A), HSV, and CMYK formats simultaneously — useful when working across web, design, and print contexts.
Copy the format you need
Click any format to copy it to your clipboard. HEX for CSS, RGBA for transparency-aware contexts, HSL for design systems, CMYK for print.
Reuse recent colors
Recently used colors appear in the history panel and are saved across sessions. Click any to instantly recall — useful when working with brand palettes or themed designs.
When to Use Color Picker
Web design color selection
Choose colors for websites, apps, and interfaces. The HEX format pastes directly into CSS (color: #3b82f6;). RGB(A) handles transparency for overlays. HSL is intuitive for design systems where you adjust lightness while keeping hue/saturation constant — perfect for generating consistent shades.
Creating brand color palettes
Build cohesive color palettes by picking a base color, then sampling related shades (lighter, darker, complementary, analogous). HSL is ideal for systematic palettes — keep saturation constant, vary lightness for shades; rotate hue for color variations. Save the resulting hex codes for design system documentation.
Print design with CMYK conversion
When designing for print (business cards, posters, packaging), CMYK is the relevant color space. Pick or paste an RGB color, copy the CMYK equivalent, and use in print design tools. Note: RGB-to-CMYK conversion is approximate (different gamuts), so always proof-print before mass production.
Accessibility contrast checking
Picking colors with adequate contrast (WCAG AA: 4.5:1 for normal text, 3:1 for large text) is critical for accessibility. Pair this color picker with a contrast checker tool: pick a foreground, pick a background, verify their contrast ratio meets accessibility guidelines before deploying.
Color Picker Examples
HEX to other formats
HEX: #3b82f6RGB: rgb(59, 130, 246)\nHSL: hsl(217, 91%, 60%)\nCMYK: cmyk(76%, 47%, 0%, 4%)A common Tailwind blue (#3b82f6 = blue-500) shown across all major formats. Each describes the same color but is suited to different contexts: HEX for CSS, RGB for transparency-aware contexts, HSL for design systems, CMYK for print.
Adding alpha for transparency
Color: #FF5733 (orange) at 50% alphaRGBA: rgba(255, 87, 51, 0.5)\nHEX with alpha: #FF573380RGBA explicitly takes alpha as a 4th value (0 = transparent, 1 = opaque). HEX with alpha appends two hex chars representing 0-255 (80 = 128 = 50%). Use for overlays, hover effects, semi-transparent borders, and any UI element that should partially show what's behind it.
HSL for systematic shades
Base: hsl(217, 91%, 60%) — adjust lightnessLighter (75%): hsl(217, 91%, 75%)\nDarker (45%): hsl(217, 91%, 45%)\nDarkest (25%): hsl(217, 91%, 25%)HSL makes generating shades trivial: keep hue and saturation constant, vary lightness. The 4-shade palette (75%/60%/45%/25%) gives a consistent blue across light/medium/dark/darker — useful for hover states, disabled states, hierarchy in UI.
Tips & Best Practices for Color Picker
- 1.Use HEX for CSS unless you need transparency. Most CSS frameworks (Tailwind, Bootstrap) use HEX. RGB(A) when you need transparency. HSL when designing systematic palettes.
- 2.For accessibility, always check contrast between text and background. Tools: WebAIM Contrast Checker, Stark, or Chrome DevTools' built-in contrast checker. Aim for 4.5:1 for normal text, 7:1 for AAA compliance.
- 3.When picking colors for print, work in CMYK directly if your design tool supports it (Illustrator, InDesign). RGB-to-CMYK conversion loses detail in the gamut differences (CMYK can't represent all RGB colors and vice versa).
- 4.For dark mode design, don't just invert colors. Use HSL: keep hue, increase lightness for backgrounds (in light mode you'd decrease lightness for text). Tools like Adobe Color and Coolors generate dark mode variants automatically.
- 5.Save brand colors in your password manager or a note — sounds odd, but you'll reach for them constantly. Format: 'Brand Primary: #3b82f6 (blue-500)' makes it easy to find later.
- 6.For colorblind-friendly design, test palettes with simulators (Sim Daltonism on Mac, Coblis online). Avoid red-green pairs alone (most common type of colorblindness). Use brightness + saturation differences alongside hue, not relying on hue alone for distinguishing elements.
Frequently Asked Questions
Related Tools
Color Converter
Convert colors between HEX, RGB, HSL, and CMYK formats online. Free color converter with instant preview and copy-ready values.
HEX to RGB Converter
Convert HEX color codes to RGB and HSL values online instantly. Free HEX to RGB converter with color preview and CSS code output.
RGB to HEX Converter
Convert RGB color values to HEX format online instantly. Free RGB to HEX converter with visual color picker and CSS code output.
Color Palette Generator
Generate beautiful color palettes and schemes online. Free palette generator with complementary, triadic, and analogous color harmonies.
CSS Gradient Generator
Create CSS gradients visually online with a drag-and-drop editor. Free gradient generator with linear, radial options and CSS output.
Color Shades Generator
Generate shades and tints of any color online with adjustable steps. Free color shade generator with HEX values and visual preview.