Color Picker Online

Choose a color visually, refine its HEX, RGB, or HSL values, check contrast, and copy ready-to-use CSS in your browser.

Private by default — your colors stay in this browser

Color picker workspace

Pick a color

Enter #RGB, #RGBA, #RRGGBB, or #RRGGBBAA. The screen picker appears when your browser supports it.

Applied color preview #FF8C42
PROJECT COLOR

Ship the interface with one consistent color family.

Base, tint, and shade values now work together in a real component.

View details Continue

Recent colors

Colors you choose will appear here on this device.

Refine and export

Tints and shades

Five sRGB mixes toward white and five toward black, with alpha preserved.

Text contrast

Readable text should stay clear on the chosen background.

Contrast ratio 7.75:1
AA normal text Passes AA large text Passes

Transparency is composited over the background before the ratio is calculated.

CSS color variables

Ready — choose a color or edit a value.

Online color picker for HEX, RGB, HSL, and CSS

Use this online color picker to choose a color visually or enter an exact HEX, RGB, or HSL value. The hex color picker keeps every format synchronized, preserves alpha transparency, and turns one selection into a practical CSS color family. It also works as a colour picker for browsers and keyboards configured with British English.

How to use the color selector

  1. Choose a color with the visual control, enter a HEX value, or use the screen eyedropper when your browser supports it. To sample a color from a photo or screenshot instead, use the image color picker.
  2. Refine the synchronized RGB color picker or HSL color picker values and adjust alpha.
  3. Review the applied preview, tints, shades, and contrast, then copy or download the generated CSS variables.

Turn one color into tints, shades, and CSS variables

A useful CSS color picker needs more than a single swatch. This tool mixes five deterministic sRGB tints toward white and five shades toward black while preserving the selected alpha value. The applied component preview shows the base, a tint, and a shade together, and the CSS export uses honest tint-1 through shade-5 variable names. Need a whole harmony instead of one family? Send the color to the color palette generator.

Screen color picker and online eyedropper support

On supported browsers, the Pick from screen button opens the browser's native eye dropper so you can sample any visible pixel, with no color picker extension or add-on to install. If the EyeDropper API is unavailable, every manual color selector control continues to work. The eyedropper tool keeps your current alpha instead of silently replacing it.

Check text contrast before applying a color

The contrast preview compares the selected text color with an editable background and reports WCAG AA results for normal and large text after transparency is composited. Treat this as a focused color check rather than a complete accessibility audit; real font size, weight, states, gradients, icons, and surrounding components still need review. The full color contrast checker adds AAA, non-text thresholds, and accessible alternatives.

Private color picking in your browser

Color parsing, previews, recent colors, contrast calculations, and CSS generation run locally in this browser. Recent colors are stored only on this device when local storage is available. No selected color is sent in analytics, and a share link contains color values only when you explicitly create it.

Frequently asked questions

How do I pick a color online?

Open the visual color control and choose a hue, or enter a HEX, RGB, or HSL value. Every valid selection updates the preview, color family, contrast result, and CSS variables.

Can I pick a color from my screen?

Yes, when your browser supports the EyeDropper API. Choose Pick from screen, select a visible pixel, and the tool applies that RGB value while preserving your existing alpha.

Does the picker support transparent colors?

Yes. Use 4- or 8-digit HEX, RGBA, HSLA, or the alpha slider. HEXA, RGBA, HSLA, previews, tints, shades, contrast, recents, and CSS stay synchronized.

How are tints and shades generated?

Tints are even sRGB mixes between the base color and white; shades are even sRGB mixes between the base color and black. They are deterministic helpers, not a perceptual OKLCH scale.

Are my selected colors uploaded?

No. The picker runs locally. Recent colors stay in this browser, and exact values are excluded from analytics. A share link includes its selected colors only after you request one.

Is HSL the same as HSV or HSB (hue, saturation, brightness)?

No. HSL describes a color by hue, saturation, and lightness, while HSV/HSB uses hue, saturation, and value or brightness. They share the hue axis but scale saturation differently, so an HSL to HSV conversion changes the last two numbers. This picker edits HSL because CSS supports hsl() directly; the HEX and RGB values stay identical either way.

Apply the color family to a working webpage

Phoenix Code gives you HTML and CSS editing, project-wide search, Git, and Live Preview in a full browser or desktop code editor.