Color Picker

Pick any color — get HEX, RGB, HSL values instantly

#2563EB
HEX #2563EB
RGB rgb(37, 99, 235)
HSL hsl(221, 83%, 53%)
HSB hsb(221, 84%, 92%)
CSS color: #2563EB;

Quick Presets

Recent Colors

About This Color Picker

This free color picker converts any chosen color to HEX, RGB, HSL, and HSB formats instantly. Use it whenever you need color codes for CSS, design tools, or presentations. Click the color swatch to open the native color picker, or tap any preset below.

HEX codes are used in HTML/CSS. RGB values define red, green, and blue intensity (0–255 each). HSL (Hue, Saturation, Lightness) is more intuitive for designers. HSB (Hue, Saturation, Brightness) is used in tools like Photoshop and Illustrator.

Worked Example: Reading a HEX Code

Take #2563EB (this site's blue). Split it into three pairs: 25, 63, EB. Each pair is a hexadecimal (base-16) number from 00 to FF (0–255 in decimal). 25 in hex = 37 decimal (red), 63 in hex = 99 decimal (green), EB in hex = 235 decimal (blue). So #2563EB = rgb(37, 99, 235) — a low amount of red and green with a high amount of blue, producing a strong, saturated blue.

Choosing Accessible Color Combinations

Text color and background color need enough contrast to be readable, especially for users with low vision. WCAG 2.1 recommends a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA level). Pure black on white (#000000 on #FFFFFF) has the maximum ratio of 21:1; light gray on white often fails the minimum. Once you've picked a color here, check it against your background with the color contrast checker before using it for body text.

Frequently Asked Questions

A HEX color code is a 6-character code preceded by # representing a color in RGB using hexadecimal numbers. #FF5733 means Red=255, Green=87, Blue=51.
RGB mixes Red, Green, Blue (0–255 each). HSL uses Hue (0–360°), Saturation (%), and Lightness (%). HSL is easier to reason about — increase lightness to make a color lighter without changing the hue.
Split the 6-digit HEX into three pairs and convert each from hexadecimal to decimal. For #FF5733: FF=255, 57=87, 33=51 → RGB(255, 87, 51). This tool does it automatically.
CSS accepts HEX (#RRGGBB or #RGB), RGB (rgb(r,g,b)), RGBA (with opacity), HSL, HSLA, and 140+ named colors like "red", "cornflowerblue", and "rebeccapurple".
WCAG 2.1 AA requires at least 4.5:1 contrast for normal text and 3:1 for large text (18pt+, or 14pt+ bold). Pick your color here, then verify the ratio against your background with the color contrast checker.

Advertisement