ARYXTOOLS

Free Online Tools

ARYXTOOLS

Color Picker

Pick colors and get HEX, RGB, and HSL values instantly.

HEX

#7C5CFC

RGB

rgb(124, 92, 252)

HSL

hsl(252, 96%, 67%)

More color tools

Every color on a screen is, underneath, just a set of numbers. The annoying part is that designers, developers, and basically anyone touching digital design eventually need to translate between how humans describe color, "a deep violet," and whatever precise numeric format the tool in front of them actually wants. That translation is the entire job of this tool.

How to use this picker

  1. Click the color swatch to open your browser's native color picker.
  2. Choose a color visually, or paste a HEX code directly if you already have one.
  3. Read the matching RGB and HSL values below the swatch.
  4. Click Copy next to whichever format you need for your project.

HEX, RGB, HSL: same color, three different ways to write it down

HEX is the one most people recognize first, something like #7C5CFC. Each pair of characters represents red, green, and blue intensity on a hexadecimal scale rather than the more familiar base 10. It is compact and it is what CSS and most design software defaults to, which is probably why people reach for it first even without fully understanding the hex math underneath.

RGB writes the same color as three plain numbers from 0 to 255 for red, green, and blue. It is often easier to reason about, since bumping the red value up and the others down clearly shifts a color toward red in a way that is not as obvious from a HEX string alone.

HSL stands for hue, saturation, lightness, and it maps much closer to how people naturally think about color. Hue is the actual color, a position on a 360-degree wheel. Saturation is how vivid or muted it is. Lightness is how close it sits to black or white. HSL is genuinely useful when you want a set of related colors, five shades of the same blue for a design system, because you can hold hue steady and just move lightness, which is a lot more awkward to get right in RGB or HEX by eye.

Why one project ends up needing all three

Different tools default to different formats, often within the same project. A stylesheet usually leans on HEX for simplicity, but the same stylesheet might use HSL specifically for a color that needs a hover state generated automatically by nudging lightness down a bit. Design tools like Figma show all three side by side precisely because designers, developers, and brand people tend to think in different ones depending on their background.

A common real scenario: a designer hands off a brand color in HEX, and a developer needs the same color in HSL to generate lighter and darker variants programmatically for hover, disabled, and focus states, without manually eyeballing each one. Converting between formats by hand without doing the actual color math is genuinely hard, which is exactly the repetitive, error-prone work a tool like this removes.

Picking versus converting

This tool does two slightly different jobs. The swatch and picker let you select a color visually and see its values across all three formats at once, useful when you are starting from a vague idea, "something like this purple," or trying to match a color you can see somewhere else on screen.

The conversion side is for when you already have a known value in one format and need it in another, pasting in a HEX code from a brand guideline and reading off the matching RGB and HSL instantly without doing any math. Both directions stay in sync, so switching between picking visually and entering a known value works interchangeably depending on what you are actually doing at the moment.

Where this comes up in real work

Developers building off a design file constantly need to convert colors. A designer working in Figma might export brand colors as HEX by default, but a developer building a CSS system that programmatically generates ten shades and tints from one primary color needs that color in HSL for the math to actually work cleanly.

Brand consistency work hits this too. A single brand color often needs to travel across very different tools, print design working in CMYK-adjacent values, a social media graphic needing a plain HEX code, a developer needing CSS-ready format, all from the exact same underlying brand color, just expressed differently for whoever is using it.

Accessibility work leans on HSL specifically, since adjusting lightness while holding hue and saturation steady is the most reliable way to create a variant that keeps the same color identity while hitting a required contrast ratio against a background, something considerably harder to land predictably by eye in HEX or RGB.

What about transparency

Standard HEX, RGB, and HSL do not capture transparency on their own. For that you will sometimes see RGBA or HSLA, which add a fourth value for opacity. That matters for things like semi-transparent overlays or modal backgrounds that need to blend with whatever sits behind them. This tool sticks to the three solid formats people need most for color matching and brand work, since transparency usually gets adjusted separately once the base color is already settled.

How it works

Drag the picker or type a known value into any of the three fields, and the other two update instantly. No conversion button to click, every field stays live. Each value has its own copy button, so grabbing exactly the format you need, a HEX code for CSS or an HSL value for a spreadsheet, takes one click. If you are mocking up a design alongside picking colors, the Lorem Ipsum generator is a natural pairing for filling in placeholder text.

One thing worth checking before you lock in a palette

Roughly 1 in 12 men and 1 in 200 women have some form of color vision deficiency, most commonly red-green. A color pairing that looks perfectly distinct to you can become nearly identical to a meaningful chunk of your audience, which matters most for things like error states in red paired with success states in green, a combination that is exactly the hardest case for the most common type of color blindness.

HSL is actually the easier format to sanity-check this with, since a quick way to gut-check a palette is comparing lightness values rather than relying on hue alone. Two colors with very different hues but similar lightness can still end up looking close to identical to someone with red-green color blindness, even though they look obviously different to most people. If a design leans heavily on color alone to convey status, it is worth pairing it with an icon or label too, not as a nice-to-have, but because color alone genuinely does not reach everyone the same way.

Frequently asked questions

HEX and RGB both describe a color as amounts of red, green, and blue, just written differently, HEX as a six-digit code and RGB as three numbers from 0 to 255. HSL describes the same color by hue, saturation, and lightness instead, which is often easier for a person to reason about when adjusting a shade lighter or more saturated.

Any of the three work in modern CSS. HEX is the most common for a fixed brand color since it is compact, RGB is useful when you need to add transparency with rgba, and HSL is convenient when you want to programmatically generate lighter or darker variants of a base color by only changing the lightness value.

Type a known HEX code directly if you already have one, or use the picker to get close and then fine-tune using the RGB or HSL values shown, since small adjustments to individual numbers are often more precise than dragging on a color swatch.

They describe the exact same color, just in different formats, so this tool converts between them automatically the moment you pick a color. Changing the color once updates the HEX, RGB, and HSL readouts at the same time.

Yes, pick the color from each design and compare the HEX codes. Two colors that look nearly identical to the eye can have different underlying HEX values, so comparing the actual codes is more reliable than a visual check.