
How to use
- Click the color swatch to open your device's color picker, or type a HEX code such as #3B82F6.
- Read the same color as HEX, RGB and HSL. All three update as you change the color.
- Click Copy next to the format you need, or Copy all formats to keep the three together.
HEX, RGB and HSL: the same color three ways
Each format describes the same color; which one you use depends on where you paste it. For example, a medium blue:
| Format | Example | Where it is used |
|---|---|---|
| HEX | #3B82F6 | CSS, Figma, Canva, brand guides; the most common way to share a color |
| RGB | rgb(59, 130, 246) | CSS, image editors, code that mixes or animates colors |
| HSL | hsl(217, 91%, 60%) | CSS when you want lighter, darker or muted versions of a color |
How to read each format
HEX writes red, green and blue as three pairs of hexadecimal digits from 00 to FF. RGB gives the same three values as numbers from 0 to 255. HSL describes the color as a hue angle on the color wheel (0 is red, 120 green, 240 blue), a saturation percentage and a lightness percentage.
HSL is the easiest to adjust by hand: keep the hue and saturation and change only the lightness to get a full set of shades for buttons, hover states and backgrounds, for example 60% for the main color, 45% for hover and 95% for a light background.
Picking colors that work
Check that text stays readable on your colors: the Contrast Checker shows whether a pair passes WCAG AA, which needs a ratio of at least 4.5:1 for normal text. To build a whole palette from one color, use the Color Palette Generator, and to take colors from a photo or logo, use the Color Palette Extractor.
Frequently asked questions
How do I convert HEX to RGB?
Type or paste the HEX code and the RGB and HSL values appear at once. Each pair of HEX digits is one channel: #3B82F6 is red 0x3B (59), green 0x82 (130), blue 0xF6 (246).
Can I pick a color from my screen?
On desktop Chrome and Edge, the color picker that opens includes an eyedropper for anywhere on the screen. Other browsers show their own palette.
Does it support transparency?
No. It works with solid colors. For transparency, add an alpha value in your CSS, for example rgb(59 130 246 / 50%).
Is anything sent to a server?
No. Conversions run in your browser.