Color Picker
Full-featured colour picker with a visual saturation-brightness area, hue slider, and opacity control. Get hex, RGB, HSL, and CSS output with one-click copy.
--color: #297acc;How the Colour Picker Works
Click anywhere on the colour canvas to select a colour, then fine-tune it using the hue slider and saturation/brightness controls. The tool shows your selected colour in hex, RGB, and HSL formats simultaneously, ready to copy and paste into CSS, design tools, or any application that accepts colour codes.
The colour canvas uses the HSV (Hue, Saturation, Value) model. The horizontal axis controls saturation (vivid to muted) and the vertical axis controls value (bright to dark). The hue slider along the top or side cycles through the full colour spectrum from red through yellow, green, cyan, blue, magenta, and back to red.
Colour Format Comparison
| Format | Example (Blue) | Best For |
|---|---|---|
| Hex | #2563eb | CSS, web design, Figma, most design tools |
| RGB | rgb(37, 99, 235) | CSS, JavaScript, screen colour mixing |
| HSL | hsl(217, 83%, 53%) | CSS, intuitive colour adjustments |
| HSV/HSB | hsv(217, 84%, 92%) | Photoshop, colour theory, picker UIs |
Picking Accessible Colours
When choosing colours for text and backgrounds, contrast matters. The WCAG accessibility guidelines recommend a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text. Dark text on light backgrounds or light text on dark backgrounds generally meets these requirements.
A good rule of thumb is to avoid mid-range colours for text. Very light pastels and very dark shades work well as backgrounds, while pure or near-pure white and dark colours work for text. If you are choosing brand colours, test them against both white and dark backgrounds to ensure readability in all contexts.
Frequently Asked Questions
What is the difference between hex and RGB?
They represent the same colour in different notation. Hex uses a six-character code with two characters each for red, green, and blue (e.g. #2563eb). RGB uses decimal numbers from 0 to 255 for each channel (e.g. rgb(37, 99, 235)). Both describe the exact same colour; hex is more common in CSS and design tools, while RGB is useful in JavaScript and colour calculations.
What does HSL stand for and when should I use it?
HSL stands for Hue, Saturation, Lightness. It is the most intuitive format for making colour adjustments. To make a colour lighter, increase the lightness value. To make it more muted, decrease saturation. To shift the colour entirely, change the hue. HSL is excellent in CSS when you need to create colour variations from a single base colour.
Can I enter a colour code to preview it?
Yes. Paste any hex, RGB, or HSL value into the input field and the picker will jump to that exact colour. This is useful when you have a colour from a design spec or brand guide and want to see it visually or convert it to a different format.
Related Tools
Image Color Picker
Pick any colour from an uploaded image. Click to sample hex, RGB, and HSL values with a magnifying glass for precision. Copy colours with one click.
Colour Palette Generator
Generate beautiful colour palettes instantly. Choose from random, monochromatic, analogous, complementary, triadic, pastel, and more. Lock colours, copy hex codes, download as PNG.
Color Palette from Image
Extract the dominant colours from any image. Uses k-means clustering to find 3-8 key colours. Click to copy hex codes, download the palette as PNG.
Hex to RGB Converter
Convert hex colour codes to RGB values and back with live colour preview swatch and copy buttons for both formats
Related Tools
Image Color Picker
Pick any colour from an uploaded image. Click to sample hex, RGB, and HSL values with a magnifying glass for precision. Copy colours with one click.
🎨 Creative & DesignColour Palette Generator
Generate beautiful colour palettes instantly. Choose from random, monochromatic, analogous, complementary, triadic, pastel, and more. Lock colours, copy hex codes, download as PNG.
🎨 Creative & DesignColor Palette from Image
Extract the dominant colours from any image. Uses k-means clustering to find 3-8 key colours. Click to copy hex codes, download the palette as PNG.
🎨 Creative & DesignHex to RGB Converter
Convert hex colour codes to RGB values and back with live colour preview swatch and copy buttons for both formats
🔄 Unit Converters