Color Picker

Pick any colour and convert it between HEX, RGB, and HSL formats.

Live color pickerHEX, RGB, HSLCopy-ready CSSUpdated May 2026

Color picker tool

Choose a color or paste a color code. Copy the format you need for CSS, design tools, or documentation.

#3B82F6

Use the visual picker or paste a color code below.

Supports 3-digit HEX, 6-digit HEX, RGB, RGBA, HSL, and HSLA.

Alpha controls transparency and depends on the background behind the color.

#3B82F6

#3B82F6

Quick copy

Recent colors

Selected color output

#3B82F6

Alpha 100% · HSL 217°, 91%, 60% · Contrast hint 3.52:1

HEX

#3B82F6

RGB

rgb(59, 130, 246)

RGBA

rgba(59, 130, 246, 1)

HSL

hsl(217, 91%, 60%)

HSLA

hsla(217, 91%, 60%, 1)

CSS variable

:root { --color-picked: #3B82F6; --color-picked-rgb: 59 130 246; }

Local color parsing

HEX, RGB, RGBA, HSL, and HSLA are parsed locally in the browser.

Copy-ready CSS

Copy clean color values and CSS variable snippets with one tap.

Preview-focused

Preview the selected color on light, dark, or custom backgrounds.

Dynamic Color Insights

#3B82F6 is ready to use as a CSS HEX value.
rgb(59, 130, 246) is useful when adjusting colors with JavaScript.
hsl(217, 91%, 60%) is useful for creating lighter, darker, or related color variants.
Alpha is set to 100%, so the selected color is fully opaque.
The selected color has a 3.52:1 contrast ratio against the preview background. Check contrast before using it for text.

How Color Picking Works

Pick

Select a color visually or paste a color code.

Parse

The value is validated and normalized.

Convert

RGB values are converted into HEX and HSL.

Preview

The color is shown against different backgrounds.

Copy

Copy the preferred CSS-ready value.

HEX, RGB, HSL, Alpha, and CSS Values Explained

HEX

Compact and common in CSS, design tools, and documentation.

RGB

Uses red, green, and blue channel values from 0 to 255.

RGBA

Adds alpha transparency to RGB values.

HSL

Uses hue, saturation, and lightness for easier color adjustment.

HSLA

Adds alpha transparency to HSL values.

CSS variables

Reusable custom properties for themes and design systems.

Contrast, Accessibility, and Design-System Notes

Readability

Text colors should be checked against their real background.

UI states

Plan hover, focus, disabled, active, and error colors.

HSL scales

HSL can help create consistent tints, shades, and color ramps.

Brand colors

Brand colors may need accessible alternatives for text and UI states.

Transparency

Transparent colors should be tested against the final background.

Real layouts

Review generated values in the actual website or app layout.

Common Color Picker Examples

Choose a brand color and copy HEX.
Pick a background color and copy RGB.
Choose an accent color and copy HSL.
Adjust opacity and copy RGBA.
Create a CSS variable from a picked color.
Generate a random color for inspiration.
Compare a picked color on light and dark backgrounds.

Web Design, Branding, and Developer Use Cases

CSS styling
Website themes
App interfaces
Brand colors
Design tokens
Landing pages
Dashboards
UI accents
Documentation
Quick experiments

Privacy and Local Processing Notes

Local processing

Color picking and conversion run locally in your browser.

No account

No sign-up or account is required.

No backend storage

Selected colors are not sent to a server.

Copy control

Copied values stay under your control.

Recent colors

Recent colors are saved locally in the browser when available.

Fast preview

Live preview uses lightweight local state only.

Method Explanation

1. Select a color with the picker or enter a color code.
2. Parse and validate the selected color.
3. Normalize the color into RGB values internally.
4. Preserve alpha where supported.
5. Convert the color into HEX, RGB, HSL, and CSS-ready formats.
6. Preview the color on light, dark, or custom backgrounds.
7. Copy the preferred value for design or development use.

Frequently Asked Questions

A color picker is a tool that lets you select a color visually or enter a color code, then copy the color in formats such as HEX, RGB, HSL, RGBA, or HSLA.