Color Converter & Palette
Instantly convert HEX, RGB, HSL, HSV, CMYK.
Includes palette generator and contrast check.
Color Picker
Color Codes
/* CSS Variables */ --color-primary: #3b82f6; --color-primary-rgb: 59, 130, 246; --color-primary-hsl: 217, 90%, 60%;
Color Palette
Contrast Ratio
White Text Aa
Ratio: -
Black Text Aa
Ratio: -
Saved Colors
Save colors using ⭐ (Max 20)
You might also like
About Converter
The Color Code Converter & Palette Generator is a free online tool that instantly converts between five major color formats: HEX, RGB, HSL, HSV, and CMYK. It features an intuitive color picker and automatically generates color palettes such as complementary and analogous colors based on your selection.
It also includes a built-in WCAG contrast ratio checker, an essential standard for web accessibility, allowing you to instantly determine whether white or black text is suitable for your chosen background color. Generated codes can be copied with a single click and can also be exported as CSS variables, significantly improving development efficiency for web designers and front-end engineers.
How to use
Select or Enter Color
Click the gradient area of the color picker to select a color, or adjust the Hue and Alpha sliders. Alternatively, you can directly enter a color code into the HEX or RGB fields.
Copy Conversion Codes
When you change the color using any method, all color formats (HEX, RGB, HSL, HSV, CMYK) are updated in real-time. Click the "Copy" button next to each item to save it to your clipboard. You can also copy CSS variables all at once.
Check Palette & Contrast
Switch the "Color Palette" tab at the bottom to see color variations like complementary and monochromatic. In the "Contrast Ratio" section, the readability of white/black text on the selected background color is automatically determined.
Color Glossary
- HEX (Hexadecimal Color Code)
- The most commonly used color specification format in web design. It is expressed in 6 digits like "#RRGGBB" (or 3 digits "#RGB"), specifying the intensity of Red (R), Green (G), and Blue (B) in hexadecimal (00-FF). When including transparency, it is written in 8 digits like "#RRGGBBAA", and is widely supported in CSS and HTML.
- RGB / RGBA
- An additive color model based on the primary colors of light (Red, Green, Blue). Based on the color generation principle of displays, each color is represented by a value from 0 to 255. In CSS, it is written like "rgb(255, 0, 0)", and with "rgba", an alpha value (transparency) of 0.0 to 1.0 can be added at the end.
- HSL
- A model representing color with three attributes: Hue, Saturation, and Lightness. Since it is easy to adjust intuitively such as "changing the color tone" or "making it darker", it is highly suitable for building design systems using CSS (hsl function) and dynamic theme changes.
- CMYK
- A subtractive color model using four colors: Cyan, Magenta, Yellow, and Key (Black). It is an ink format primarily used in the printing industry, and CMYK values on a browser are approximate theoretical values, so adjustments via profiles are necessary for actual printing.
- Contrast Ratio (WCAG)
- The ratio of relative luminance between a background color and text color, defined by the Web Accessibility Guidelines. To ensure all users can read text, a ratio of "4.5:1 (AA level)" or higher is recommended for normal text, and "3:1" or higher for large text.
Frequently Asked Questions
- Q.Are the CMYK conversion results accurate for printing?
- The CMYK values calculated in the browser are approximate theoretical values. Actual printed colors may vary depending on your printer's ICC profile and ink characteristics. For accurate CMYK data for printing, please convert and verify using color management software like Adobe Illustrator or Photoshop.
- Q.Does the tool support alpha (transparency) conversion?
- Yes, it does. By adjusting the "Alpha" slider in the color picker or directly entering the alpha value in the code, HEX (#RRGGBBAA), RGBA, and HSLA codes will be correctly output. This is ideal for modern Web UI implementations that require transparency.
- Q.What is the "Copy CSS Vars" feature?
- This feature outputs the selected color as CSS custom properties (CSS Variables). It generates formats like --color-primary: #3b82f6;, along with comma-separated values for RGB and HSL, making it extremely easy to set up Tailwind CSS configurations or dynamic themes.
- Q.Is my entered color data saved on a server?
- No. This tool operates entirely on the client-side (within your browser). None of your color codes or generated palettes are transmitted or saved to external servers. The "Favorites" feature also saves colors strictly in your browser's local storage, ensuring your privacy.
Use cases
Web Design & Coding
Batch convert HEX codes specified in design tools like Figma or XD into RGB or HSL formats for development. Streamline modern theme construction using CSS variables.
Accessibility Improvement
Instantly check if the site's background color and text color combination meets WCAG contrast ratio standards (AA/AAA) while coding, achieving a more legible UI.
Color Scheme Review
Automatically generate related palettes such as complementary or analogous colors based on corporate brand colors. Useful for considering cohesive presentation and graphic design color schemes.
Conversion Guide for Print
Convert colors used on the web into CMYK values to use as a reference for approximate values when deploying printed materials such as flyers and business cards.
Send Feedback
Please let us know your thoughts to help us improve the tool.
Feedback is temporarily suspended
The server is busy or spam protection is active. Please try again later.