🎨 Color Picker

Select color and obtain HEX, RGB, HSL and other format codes

R (red) 233
G (green) 30
B (blue) 99
H (hue) 340
S (saturation) 82
L (brightness) 52
A (transparency) 100%
HEX
RGB
RGBA
HSL
Contrast preview
white text
Contrast: -
black text
Contrast: -
🎭 Preset color palette
📜 Historical Colors
After selecting the color, it will be automatically saved to the history

Frequently asked questions

Is the color picker tool safe? Will the selected color data be uploaded to the server?

Totally safe. All color calculations and format conversions are done locally in the browser, no data is sent to any server, and history is only saved in your own browser local storage.

What are the differences between HEX, RGB, RGBA, and HSL color formats?

HEX is a 6-digit hexadecimal notation (such as #E91E63), commonly used in CSS and design tools; RGB uses three values ​​from 0-255 to represent red, green and blue; RGBA adds a transparency channel (0-1) based on RGB; HSL uses hue (0-360°), saturation and brightness, which is closer to human intuitive perception of color.

What is the use of contrast preview?

The contrast preview shows the contrast ratio of white text and black text when the current color is used as the background. WCAG accessibility standards require a contrast ratio of at least 4.5:1 for normal text and at least 3:1 for large fonts, which can be used to directly determine whether a color meets accessibility requirements.

How to get the color value from a color on the page?

You can use the color picker that comes with the browser (in the color panel of Chrome DevTools), or manually paste the color code directly in the HEX input box of this tool; the tool supports direct input of 6-digit hexadecimal values ​​starting with # and automatically updates all formats.

Where are historical color records saved? Will I lose my browser data if I clear it?

Historical colors are saved in the browser's localStorage, with a maximum of 20 records retained. The history will be lost after clearing the browser cache or localStorage data. It is recommended to copy the required color values and save them elsewhere before use.