Design & Color Tools
Color Picker & Converter
Pick a colour and get its HEX, RGB and HSL values instantly — with transparency. Fine-tune it with hue, saturation, lightness and alpha sliders, generate harmonious palettes, tints and shades, copy CSS, and check text contrast against WCAG guidelines.
Runs in your browser
Features
What you get
HEX, RGB and HSL together
Edit any format — including 3-digit HEX like #F80 — and the others update instantly.
Transparency (alpha)
4- and 8-digit HEX (#F0784580), rgba() and hsla() — with a checkerboard preview so you can see the transparency.
HSL and alpha sliders
Drag hue, saturation, lightness and alpha; the values and preview update live.
Six palette types
Complementary, analogous, triadic, split complementary, tetradic and monochromatic.
Tints and shades
Five lighter and five darker steps of your colour, ready for UI states and backgrounds.
WCAG contrast checker
Contrast ratio with AA and AAA results for normal and large text.
Copy CSS
Ready-made CSS snippets, the palette as CSS custom properties (50–950 steps), or the palette as JSON.
Share a colour
Copy a link that opens the tool with your colour selected. Recent colours stay for this visit only.
How to use
How to use the Color Picker & Converter
Every colour is stored as RGB — red, green and blue from 0 to 255 — and converted to HEX (the same three numbers in hexadecimal) and HSL (hue, saturation and lightness) using the standard sRGB formulas. Palettes rotate the hue around the colour wheel: 180° for complementary, ±30° for analogous, 120° for triadic. Contrast uses the WCAG 2 relative-luminance formula; ratios are compared with the thresholds without rounding up, so 4.49:1 doesn't pass a 4.5:1 requirement.
- 01
Choose a colour
Use the picker, type a HEX, RGB or HSL value, or press Random.
- 02
Explore palettes and shades
Pick a harmony to generate a palette; click any swatch to make it the main colour.
- 03
Check contrast and copy
Test text and background colours, then copy values or download the palette.
Examples
Worked examples
Brand orange
#F07845 = rgb(240, 120, 69) = hsl(18, 85%, 61%). Its complementary colour is a cool blue around #45BDF0.
Grey text on white
#777777 on #FFFFFF is 4.48:1 — just short of AA for body text. #767676 reaches 4.54:1 and passes.
Short HEX
#F80 is shorthand for #FF8800 — each digit is doubled.
50% transparent
#F07845 at 50% alpha = #F0784580 = rgba(240, 120, 69, 0.5). The last HEX pair (80) is the alpha: 128 ÷ 255 ≈ 0.5.
Technical specifications
- Formats
- HEX (3/4/6/8-digit), RGB/RGBA, HSL/HSLA
- Alpha
- 0–100% (2 decimals)
- Colour space
- sRGB
- Contrast formula
- WCAG 2 relative luminance
- AA / AAA thresholds
- 4.5:1 / 7:1 (large text 3:1 / 4.5:1)
- Random colours
- crypto.getRandomValues
- Processing
- In your browser
Privacy
Colours are calculated in your browser. Nothing is stored except an optional colour in a link you choose to share.
Read the full privacy policy.
FAQ
Color Picker & Converter questions
A colour picker lets you choose a colour visually and read its exact value in the formats designers and developers use. ZSpace Tools' Color Picker & Converter converts between HEX (including 8-digit HEX with alpha), RGB/RGBA and HSL/HSLA, generates palettes from colour theory, creates tints and shades, and calculates the WCAG contrast ratio between two colours.
Every colour is stored as RGB — red, green and blue from 0 to 255 — and converted to HEX (the same three numbers in hexadecimal) and HSL (hue, saturation and lightness) using the standard sRGB formulas. Palettes rotate the hue around the colour wheel: 180° for complementary, ±30° for analogous, 120° for triadic. Contrast uses the WCAG 2 relative-luminance formula; ratios are compared with the thresholds without rounding up, so 4.49:1 doesn't pass a 4.5:1 requirement.
RGB describes a colour by its red, green and blue light from 0 to 255. HEX writes the same three numbers in hexadecimal (#F07845). HSL describes it as hue (an angle on the colour wheel), saturation and lightness — often easier for creating variations.
None in the colour itself — they're two notations for the same values. rgb(240, 120, 69) and #F07845 are identical.
WCAG 2 level AA asks for at least 4.5:1 for normal text and 3:1 for large text (about 24px, or 19px bold). Level AAA asks for 7:1 and 4.5:1.
It's one important part. Accessibility also depends on font size, focus states, not relying on colour alone, and much more, so test with real users and assistive technology too.
By rotating the hue around the colour wheel while keeping saturation and lightness — for example 180° for a complementary colour and 120° steps for a triad. Monochromatic palettes keep the hue and vary lightness.
#RRGGBBAA — the usual six digits plus two for alpha (transparency), from 00 (fully transparent) to FF (opaque). #F0784580 is the brand orange at about 50% opacity. The 4-digit form (#F078) doubles each digit, like 3-digit HEX.
No. Contrast is checked between two opaque colours, because a transparent colour's contrast depends on what's behind it.
No. Recent colours are kept only while the page is open. A share link contains just the HEX value you choose to share.
Related tools
Image Cropper
Crop images to any size or aspect ratio, rotate and flip, then export JPG, PNG or WebP.
Image Resizer
Resize JPG, PNG and WebP images by pixels, percentage or social media preset.
QR Code Generator
Create static QR codes for links, text, email, phone numbers and Wi-Fi.