Get started
HomeDesign & WebColor Picker
Design & WebRuns in your browser · files never uploaded

Color Picker

Pick, convert, sample colors

4.5· 86 votes
A color picker lets you select a colour visually and read its value in multiple colour models — HEX, RGB, HSL, HSV, CMYK — at once. StuHub also generates palettes (complementary, triadic, analogous) from the active colour and shows live WCAG contrast ratios against black and white.
Your file never leaves this browser. Everything runs on your device — no uploads, no server storage, no retention.How it works →

What is Color Picker?

Pick a colour with a native colour picker, then see its HEX, RGB, and HSL representations at once — with copy buttons on each. Adjust RGB channels via sliders, paste in any colour format (hex, rgb(), or rgba()) and the others update live. Great for sampling a shade from a design mockup and translating it into the format your stylesheet uses.

How do I use Color Picker?

  1. Click the large swatch to open the native colour picker.
  2. Or drag the R / G / B sliders.
  3. Copy whichever format (HEX, CSS rgb(), CSS hsl()) you need.

Color Picker by the numbers

Models
HEX, RGB, HSL, HSV, CMYK
Alpha support
#RRGGBBAA / rgba()
Palettes
Shades, tints, complementary, analogous, triadic
Contrast
WCAG 2.1 AA / AAA live
Export
CSS var, Tailwind config, JSON

Common use cases for Color Picker

  • Sampling a brand hex code from a design mockup.
  • Generating an accessible text/background pair for a landing page.
  • Producing a 5-shade palette from a single seed colour.
  • Converting a Figma CMYK value to a CSS-safe HEX.
  • Dialling in a precise HSL hue for a CSS accent.

Common pitfalls and how to avoid them

  • Printed colour looks wrongScreens are RGB; print is CMYK. The converter approximates — for critical print, verify with your printer's ICC profile.
  • Contrast passes AA but fails AAAAAA requires 7:1 for body text. Darken the foreground or lighten the background until the badge turns green.
  • HEX has 8 digitsThat includes alpha (#RRGGBBAA). Drop the last two characters for a solid HEX.

When should I use Color Picker?

Color Picker is for sampling and converting. For just the HEX↔RGB round-trip with a quick swap, HEX ↔ RGB is leaner. To build a gradient, use Gradient Generator.

Frequently asked
Which colour models does it support?

HEX, RGB, HSL, HSV, CMYK, and named CSS colours. Pick any model to edit; the others update in sync.

Can I generate a palette from one colour?

Yes. The palette panel shows shades, tints, complementary, analogous, triadic, and tetradic schemes derived from the current colour.

Is the picker accessible?

Yes — contrast ratios vs black and white are shown live, with WCAG AA / AAA pass indicators. Good for checking if your text colour is readable on your background.

Is my file uploaded anywhere?

No. Everything runs in your browser. Your files never leave your device, and there is no server component for this tool.

Related in Design & Web
HEX ↔ RGB
Gradient Generator
Box Shadow
Border Radius
Clip Path
Tailwind Classes