Skip to main content
ConduitTools by ConduitCode Labs

Color & CSS

Color Converter

Valid color#3b82f6
Your colorType any CSS color, or pick one
Shades of this color
Every formatCopy the one you need
HEX#3b82f6
RGBrgb(59 130 246)
HSLhsl(217 91% 60%)
OKLCHoklch(0.623 0.188 259.8)
HSVhsv(217, 76%, 96%)
CMYKcmyk(76%, 47%, 0%, 4%)
CSS variable--color: #3b82f6;
59Red
130Green
246Blue
100%Opacity

Type or pick a color in any format and get it back in every other one: HEX, RGB, HSL, the modern OKLCH, HSV and CMYK, each ready to copy.

  • Free
  • No sign-up
  • Runs in your browser

How to use this tool

  1. Type any CSS color into Color value (a name, HEX, rgb(), hsl() or oklch()), choose one with the picker, or press Random color.

  2. The HEX, RGB, HSL, OKLCH, HSV and CMYK values, a CSS variable and a row of shades appear at once, and transparency is kept.

  3. Press Copy HEX, Copy RGB and so on for the format you need, Copy color for the main one, or press a shade to use it as the color.

How to use this tool
  1. Type any CSS color into Color value (a name, HEX, rgb(), hsl() or oklch()), choose one with the picker, or press Random color.

  2. The HEX, RGB, HSL, OKLCH, HSV and CMYK values, a CSS variable and a row of shades appear at once, and transparency is kept.

  3. Press Copy HEX, Copy RGB and so on for the format you need, Copy color for the main one, or press a shade to use it as the color.

Was this tool helpful?

Suggest an improvement

Help keep ConduitTools free

Every tool here is free, private and built by a solo developer. If this one saved you time, a small tip keeps the site running and new tools coming.

What it handles

Paste any CSS color and copy it in seven formats.

Design tools, CSS, and code all describe colors differently. This converts between them instantly so you can paste whatever you have and copy whatever you need.

Any CSS format in
Paste HEX (with or without alpha), rgb(), hsl(), oklch(), or a name such as rebeccapurple. Comma or space syntax both work.
Seven formats out
HEX, RGB, HSL, OKLCH, HSV, CMYK, and a ready-made CSS variable, each with its own copy button. Transparency is kept where the format supports it.
Pick and explore
Use the color picker, try a random color, or click a shade to step lighter or darker while keeping the same hue.

Frequently asked questions

What is OKLCH and why would I use it?

OKLCH describes a color by lightness, chroma, and hue in a space designed to match human vision. Equal lightness steps look equally light, which makes it good for building consistent palettes. Modern browsers support it in CSS.

Why do my CMYK numbers differ from my printer's?

CMYK here is the simple mathematical conversion from RGB. Real print output depends on ink, paper, and color profiles, so treat it as a guide and use a print profile for production work.

What happens to an OKLCH color that screens cannot show?

Some OKLCH colors are more vivid than an sRGB display can produce. They are clipped to the closest displayable color, which is the same thing browsers do on screens without a wide gamut.

Does it keep transparency?

Yes. An alpha value in the input (such as #3b82f680 or rgb(59 130 246 / 50%)) is carried into the HEX, RGB, HSL, and OKLCH results.

Keyboard shortcuts

Press navigation keys one after the other. Single-key shortcuts work outside text fields.

Ctrl+K
Search all tools
/
Focus directory search, or search all tools on other pages
GthenH
Go to the homepage
GthenT
Browse all tools
GthenF
Open FAQs
Ctrl+Enter
Copy or download the result
Ctrl+Shift+Enter
Generate a new password or new text
?
Show this list
Esc
Close a dialog or menu
↑↓
Move through tool search results
Enter
Open the selected search result