Color Converter
Convert colors between HEX, RGB, HSL, and CMYK with harmonies.
Convert colors between HEX, RGB, HSL, and CMYK with harmonies. Enter your numbers and get an instant result.
Pick a colour or paste a six-digit hex value and this page shows the same colour as HEX, RGB, HSL and CMYK, then builds four harmony sets from it: complementary, analogous, triadic and a five-step monochrome ramp.
It works from hex only. A three-digit shorthand, an rgba() string with alpha or a named colour such as rebeccapurple is not parsed, so convert it to six hex digits first.
The conversions and the harmonies are computed in the tab with plain arithmetic. Nothing is uploaded, and the colour never leaves the page.
The four notations, and why they disagree in print
RGB is the value the screen actually uses, three channels from 0 to 255. HSL is the same colour described as hue, saturation and lightness, which is easier to reason about when you want a lighter or a darker version.
CMYK is a naive conversion: each channel is one minus the RGB channel, with black pulled out as the smallest of the three. It is a reasonable starting point for a print workflow, not a colour-managed one, because real presses need an ICC profile to be accurate.
- HEX: six digits, the form the page accepts as input
- RGB: three channels, 0 to 255
- HSL: degrees and two percentages
- CMYK: four percentages, converted arithmetically
How the harmony sets are derived
The base colour is converted to HSL, and the harmonies rotate the hue while keeping saturation and lightness: complementary is 180 degrees away, analogous is 30 degrees either side, and triadic is 120 and 240 degrees.
The monochrome ramp keeps the hue and saturation and moves lightness to five fixed steps around the base. None of this is a design system's palette rules; it is colour-wheel geometry you can then adjust by hand.
How to use the color input
Pick a color or paste a six-digit hex value such as 3b82f6 into the Color Input Value field. The page shows the same color as HEX, RGB, HSL and CMYK, then builds four harmony sets: complementary 180 degrees away, analogous 30 degrees either side, triadic at 120 and 240, and a five-step monochrome ramp. Each Copy button takes that spelling.
It works from hex only: a three-digit shorthand, an rgba string or a named color is not parsed. The CMYK is a naive conversion, a starting point for print rather than a managed one, and the harmonies are wheel geometry to adjust by hand, not design-system rules.
What to Expect
Best for
- Reading one colour in the four notations a project might need
- Finding a complementary or triadic partner for a palette
- Turning a picked hex value into an RGB triplet for CSS
Not ideal for
- Colour-managed conversion for print
- Alpha, transparency or blending
- Contrast checking against text
What this tool keeps
- The exact hex value you supplied
- The hue, saturation and lightness the harmonies are built from
- All four notations of the same colour, side by side
What may need cleanup
- CMYK values, which are arithmetic rather than profiled
- Rounding to whole degrees and percentages, which can shift a channel by one
- A three-digit or alpha hex value, which must be expanded first
Common errors
- Pasting #fff and expecting it to expand
- Pasting rgb(59, 130, 246) into the text field
- Treating the CMYK figure as a press-ready separation
Example use cases
- Building a small palette from one brand colour
- Converting a design token from hex to HSL for a CSS variable
- Checking what a hex value looks like as CMYK
Sample input
Enter #3b82f6.
Sample output
rgb(59, 130, 246), hsl(217, 91%, 60%), the CMYK percentages, and four harmony sets built around that blue.
Who this is for
- Front-end developers translating a design token
- Designers sketching a palette
- Anyone matching a colour across tools
Frequently asked questions
Which colour notations does this page show?
It shows the same colour as HEX, RGB, HSL and CMYK, and builds complementary, analogous, triadic and five-step monochrome harmonies.
Are the CMYK values ready for print?
No. They are arithmetic conversions rather than profiled values, so a print workflow still needs a colour-managed conversion.
Can I paste a three-digit or transparent hex value?
The field expects six digits, so a three-digit or alpha hex value must be expanded first.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.