MyKit.tools

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.

Opacity100%
HEX
RGB
HSL
CSS--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

FormatExample (Blue)Best For
Hex#2563ebCSS, web design, Figma, most design tools
RGBrgb(37, 99, 235)CSS, JavaScript, screen colour mixing
HSLhsl(217, 83%, 53%)CSS, intuitive colour adjustments
HSV/HSBhsv(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