1. Home
  2. Color
  3. Color Tools

Color Tools

Color code converter, palettes, gradients and a contrast checker in one place.

Runs in your browser · No upload

Convert colors between HEX, RGB, HSL and OKLCH with a live preview.

Paste a color in any format: HEX, RGB, HSL, HSV, CMYK or OKLCH.
 

Detected: HEX

The color in every format
FormatValueCopy
HEX#ff5b1f
RGBrgb(255, 91, 31)
HSLhsl(16, 100%, 56%)
HSV (HSB)hsv(16, 88%, 100%)
CMYKcmyk(0%, 64%, 88%, 0%)
OKLCHoklch(68.35% 0.21 37.96)
Contrast on white
3.1:1
Contrast on black
6.77:1
Best text color
Black

How to use

  1. Pick what you want to do from the sets above. The tool opens right below it, and the part after # in the address changes so you can share the same view.
  2. Type a color code or choose a color. Results appear as you type, and the copy button next to a value takes it with you.
  3. To work in one tool alone, press “Open this tool on its own page”. Every tool also has its own page.

When to use which tool

What you want to do Tool What you get
Turn a HEX from a design file into RGB or HSL for CSS Color code converter HEX, RGB, HSL and OKLCH values
Choose a color by eye and get its code Color picker HEX, RGB, HSL and CMYK values
Find out what color a code is Color name finder The nearest color name in Korean and English
Match a design color with real paint HEX to paint color guide A paint color family and mixing guidance
Find colors that go with a brand color Color palette generator Complementary, analogous and triadic schemes
Make lighter and darker steps of one color Color shades generator Steps from 50 to 950 as CSS or Tailwind tokens
Get the color halfway between two colors Color mixer Steps by ratio and CSS code
Get ideas when you are stuck Random color generator, random palette generator Schemes where you lock the colors you like and redraw the rest
Make a gradient for a background CSS gradient generator Linear, radial and conic gradient code
Check that text is readable on its background Contrast checker WCAG AA and AAA pass or fail

Tools in this set

Set Tools
Pick and convert Color code converter, color picker, color name finder, HEX to paint guide
Palettes and schemes Palette generator, shades generator, color mixer, random color generator, random palette generator
Gradients and accessibility CSS gradient generator, contrast checker

Tools that need an image file, such as pulling colors from a photo or simulating color blindness, are not in this set. Use them from the related tools below.

Color code formats at a glance

Format Example Notes
HEX #3B82F6 The most common six-digit form on the web and in design tools. A three-digit shorthand (#38F) also exists
RGB rgb(59, 130, 246) Red, green and blue from 0 to 255
HSL hsl(217, 91%, 60%) Hue, saturation and lightness, so it is easy to adjust by hand, for example “a bit lighter”
OKLCH oklch(62% 0.19 260) Perceived lightness changes evenly, which suits building steps of a color
CMYK cmyk(76%, 47%, 0%, 4%) For print. It will not print exactly like the screen color

Where does what you type go?

Every tool in this set calculates only in your browser. The color codes you enter and the palettes that are produced are never sent to a server and are not stored.

Frequently asked questions

How do I convert a HEX code to RGB?

Split the six HEX digits into pairs and read each pair as a hexadecimal number. #3B82F6 is 3B = 59, 82 = 130 and F6 = 246, so it is rgb(59, 130, 246). Or paste it into the color code converter and get RGB, HSL and OKLCH at once.

What contrast ratio do I need?

Under WCAG, normal text needs at least 4.5 to 1 (AA), and large text (about 24px or more, or bold 18.7px or more) needs at least 3 to 1. The stricter AAA level is 7 to 1 for normal text and 4.5 to 1 for large text. Gray text on a white background is what fails most often.

How do I choose colors that go together?

Choosing by a color wheel rule fails less often. Opposite colors (complementary) give strong contrast and neighboring colors (analogous) feel calm. A single color in several lightness steps is the safest. Enter one base color in the palette generator and it builds these schemes.

How do I make a 50 to 950 palette like Tailwind’s?

Put the base color near the middle (around 500) and split lightness into 50 to 400 on the light side and 600 to 950 on the dark side. The shades generator builds these steps and exports them for CSS variables or a Tailwind config.

Why does a color on screen look different in print?

A screen makes color by adding light (RGB), while print makes color by subtracting light with ink (CMYK). Very bright blues and greens are hard to print at the same intensity. If print is the goal, look at the CMYK value and check a printer’s sample once.

My gradient looks muddy. How do I fix it?

The middle between two colors often turns dull. Add one more stop in the middle, or bring the two colors closer in lightness. You can also look at the middle color in the color mixer first and use that value as a stop.

To pick a color from a photo use Image color picker, for the main colors of one photo use Image color palette extractor, to see how colors look with color vision deficiency use the color blindness simulator, and for shadows use the CSS box shadow generator.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.