{
    "@context": "https://schema.org",
    "@type": "Article",
    "@id": "https://appstoryo.com/en/blog/hex-vs-rgb-vs-hsl-vs-cmyk-which-color-format-to-use",
    "url": "https://appstoryo.com/en/blog/hex-vs-rgb-vs-hsl-vs-cmyk-which-color-format-to-use",
    "identifier": "https://appstoryo.com/en/blog/hex-vs-rgb-vs-hsl-vs-cmyk-which-color-format-to-use",
    "name": "HEX vs RGB vs HSL vs CMYK: Which Color Format to Use and When",
    "headline": "HEX vs RGB vs HSL vs CMYK: Which Color Format to Use and When",
    "description": "What is the difference between HEX, RGB, HSL, and CMYK? Learn which color format to use for web, print, UI design, and social media — with practical examples.",
    "inLanguage": "en",
    "datePublished": "2026-03-21",
    "dateModified": "2026-08-26",
    "author": {
        "@type": "Person",
        "name": "Lubor Šimůnek"
    },
    "publisher": {
        "@type": "Organization",
        "name": "lapnito.cz s.r.o.",
        "url": "https://appstoryo.com"
    },
    "isPartOf": {
        "@type": "WebSite",
        "name": "AppStoryo",
        "url": "https://appstoryo.com"
    },
    "license": "https://creativecommons.org/licenses/by/4.0/",
    "keywords": [
        "Design",
        "article",
        "AppStoryo"
    ],
    "articleSection": "Design",
    "image": "https://appstoryo.com/upload/blog/hex-vs-rgb-vs-hsl-vs-cmyk-hero.jpg",
    "encoding": [
        {
            "@type": "MediaObject",
            "contentUrl": "https://appstoryo.com/en/blog/hex-vs-rgb-vs-hsl-vs-cmyk-which-color-format-to-use.pdf",
            "encodingFormat": "application/pdf"
        },
        {
            "@type": "MediaObject",
            "contentUrl": "https://appstoryo.com/en/blog/hex-vs-rgb-vs-hsl-vs-cmyk-which-color-format-to-use.md",
            "encodingFormat": "text/markdown"
        },
        {
            "@type": "MediaObject",
            "contentUrl": "https://appstoryo.com/en/blog/hex-vs-rgb-vs-hsl-vs-cmyk-which-color-format-to-use.txt",
            "encodingFormat": "text/plain"
        },
        {
            "@type": "MediaObject",
            "contentUrl": "https://appstoryo.com/en/blog/hex-vs-rgb-vs-hsl-vs-cmyk-which-color-format-to-use.json",
            "encodingFormat": "application/json"
        },
        {
            "@type": "MediaObject",
            "contentUrl": "https://appstoryo.com/en/blog/hex-vs-rgb-vs-hsl-vs-cmyk-which-color-format-to-use.epub",
            "encodingFormat": "application/epub+zip"
        },
        {
            "@type": "MediaObject",
            "contentUrl": "https://appstoryo.com/en/blog/hex-vs-rgb-vs-hsl-vs-cmyk-which-color-format-to-use.jats.xml",
            "encodingFormat": "application/xml"
        },
        {
            "@type": "MediaObject",
            "contentUrl": "https://appstoryo.com/en/blog/hex-vs-rgb-vs-hsl-vs-cmyk-which-color-format-to-use.bib",
            "encodingFormat": "application/x-bibtex"
        },
        {
            "@type": "MediaObject",
            "contentUrl": "https://appstoryo.com/en/blog/hex-vs-rgb-vs-hsl-vs-cmyk-which-color-format-to-use.ris",
            "encodingFormat": "application/x-research-info-systems"
        },
        {
            "@type": "MediaObject",
            "contentUrl": "https://appstoryo.com/en/blog/hex-vs-rgb-vs-hsl-vs-cmyk-which-color-format-to-use.csl.json",
            "encodingFormat": "application/vnd.citationstyles.csl+json"
        }
    ],
    "cite": "Lubor Šimůnek (2026). HEX vs RGB vs HSL vs CMYK: Which Color Format to Use and When. AppStoryo, lapnito.cz s.r.o. https://appstoryo.com/en/blog/hex-vs-rgb-vs-hsl-vs-cmyk-which-color-format-to-use",
    "sections": [
        {
            "level": 2,
            "heading": "Same Color, Four Different Languages",
            "text": "Pick any color — say, a warm coral. Now describe it in four ways:\n\n- HEX: #E8635A\n- RGB: rgb(232, 99, 90)\n- HSL: hsl(4, 75%, 63%)\n- CMYK: 0, 57, 61, 9\n\nAll four describe the exact same color. They are not competing standards — they are different representations of color optimized for different contexts. The confusion comes from not knowing which context calls for which format.\n\nThis guide breaks down each format in plain language: what it is, how it works, when to use it, and when it is the wrong choice. If you work with color in any capacity — design, development, print, marketing — this will save you from picking the wrong format for your project."
        },
        {
            "level": 2,
            "heading": "HEX: The Web Standard",
            "text": ""
        },
        {
            "level": 3,
            "heading": "What it is",
            "text": "HEX (hexadecimal) is a six-character code preceded by a hash symbol: #E8635A. Each pair of characters represents the Red, Green, and Blue channels in base-16 notation (00 to FF).\n\nIt is functionally identical to RGB — just written differently. #E8635A is the same as rgb(232, 99, 90). HEX is simply a more compact way to write RGB values."
        },
        {
            "level": 3,
            "heading": "When to use HEX",
            "text": "- CSS and web development — HEX is the default color notation in CSS. Every browser understands it. color: #E8635A; is the most common way to specify color on the web.\n- Design tools — Figma, Sketch, Adobe XD, and Canva all use HEX as their primary input. When a designer says \"the blue is #3B82F6,\" everyone knows what that means.\n- Brand guidelines — digital brand guides almost always include HEX values because they are short, unambiguous, and easy to copy-paste.\n- Quick communication — \"use #333\" is faster than \"use rgb(51, 51, 51)\" in a Slack message."
        },
        {
            "level": 3,
            "heading": "When NOT to use HEX",
            "text": "- When you need transparency — standard 6-digit HEX does not support alpha/opacity. You need 8-digit HEX (#E8635A80) which is less readable, or switch to RGBA.\n- When you need to adjust colors programmatically — \"make this 20% lighter\" is nearly impossible to calculate in HEX mentally. HSL is far better for this.\n- Print production — printers do not use HEX. Ever."
        },
        {
            "level": 3,
            "heading": "Real example",
            "text": "You are writing CSS for a landing page. The designer hands you a style guide with brand colors. You write:\n\n:root { --primary: #E8635A; --secondary: #2D3748; --accent: #F6AD55; }\n\nHEX is perfect here: compact, readable, and universally supported."
        },
        {
            "level": 2,
            "heading": "RGB: The Screen Color Model",
            "text": ""
        },
        {
            "level": 3,
            "heading": "What it is",
            "text": "RGB stands for Red, Green, Blue — the three colors of light that screens mix to produce every color you see. Each channel ranges from 0 to 255. rgb(232, 99, 90) means 232 units of red, 99 units of green, and 90 units of blue.\n\nRGB is the foundation of all digital color. HEX is just RGB in a different notation. HSL is a human-friendly transformation of RGB. Everything on your screen ultimately becomes RGB values sent to pixels."
        },
        {
            "level": 3,
            "heading": "When to use RGB",
            "text": "- When you need transparency — RGBA adds an alpha channel: rgba(232, 99, 90, 0.5) for 50% opacity. This is cleaner than 8-digit HEX and widely supported in CSS, design tools, and programming.\n- Programming and app development — Swift, Kotlin, Flutter, React Native — app frameworks typically work with RGB/RGBA values internally.\n- LED and lighting — smart lights (Philips Hue, LED strips) use RGB values. If you are designing for physical light installations, RGB is the native format.\n- Color math — mixing colors, interpolating gradients, or generating color programmatically is straightforward in RGB."
        },
        {
            "level": 3,
            "heading": "When NOT to use RGB",
            "text": "- Print — screens emit light (additive mixing); paper reflects it (subtractive mixing). RGB cannot accurately represent what will come out of a printer.\n- Adjusting lightness or saturation — \"make this color 30% less saturated\" is not intuitive in RGB. You would need to convert to HSL first."
        },
        {
            "level": 3,
            "heading": "Real example",
            "text": "You are building a React Native app and need a semi-transparent overlay:\n\nbackgroundColor: 'rgba(0, 0, 0, 0.6)'\n\nRGB with alpha is the natural choice — direct, readable, and native to the rendering engine."
        },
        {
            "level": 2,
            "heading": "HSL: The Designer's Format",
            "text": ""
        },
        {
            "level": 3,
            "heading": "What it is",
            "text": "HSL stands for Hue, Saturation, Lightness:\n\n- Hue (0°–360°) — the color itself, as a position on the color wheel. 0° is red, 120° is green, 240° is blue.\n- Saturation (0%–100%) — how vivid the color is. 0% is gray, 100% is the purest form of the hue.\n- Lightness (0%–100%) — how light or dark. 0% is black, 100% is white, 50% is the \"true\" color.\n\nhsl(4, 75%, 63%) means: a red-ish hue (4°), very vivid (75% saturated), and slightly light (63%)."
        },
        {
            "level": 3,
            "heading": "When to use HSL",
            "text": "- Design systems and theming — HSL is the best format for creating consistent color scales. Want 10 shades of your primary color? Keep the hue, vary the lightness from 10% to 95%. Want a muted version? Drop the saturation. This is nearly impossible to do intuitively in HEX or RGB.\n- Dark mode / light mode — switching themes means adjusting lightness and saturation, which maps directly to HSL parameters. Tailwind CSS, Radix Colors, and many modern design systems are built on HSL.\n- Programmatic color generation — generating hover states, disabled states, backgrounds, and borders from a single base color is trivial in HSL: hsl(4, 75%, 73%) for a lighter variant, hsl(4, 75%, 43%) for a darker one.\n- Accessibility — contrast ratio checks become more intuitive when you can see and adjust lightness directly."
        },
        {
            "level": 3,
            "heading": "When NOT to use HSL",
            "text": "- Cross-team communication — most people do not think in degrees and percentages. Saying \"the button is hsl(4, 75%, 63%)\" is less clear than \"the button is #E8635A\" in a design handoff.\n- Print — same as RGB, HSL is a screen color model."
        },
        {
            "level": 3,
            "heading": "Real example",
            "text": "You are building a design system in Tailwind CSS and need a consistent color scale:\n\n--brand-50: hsl(4, 75%, 95%);\n--brand-100: hsl(4, 75%, 90%);\n--brand-200: hsl(4, 75%, 80%);\n--brand-500: hsl(4, 75%, 63%);\n--brand-700: hsl(4, 75%, 43%);\n--brand-900: hsl(4, 75%, 25%);\n\nSame hue, same saturation, different lightness. A perfect scale in 30 seconds. Try that in HEX."
        },
        {
            "level": 2,
            "heading": "CMYK: The Print Format",
            "text": ""
        },
        {
            "level": 3,
            "heading": "What it is",
            "text": "CMYK stands for Cyan, Magenta, Yellow, Key (black). It describes color as a mix of ink applied to white paper. Each value ranges from 0% to 100%: 0, 57, 61, 9 means 0% cyan, 57% magenta, 61% yellow, and 9% black.\n\nUnlike RGB (which adds light to make colors), CMYK subtracts from white paper. More ink = darker color. This is why it is called a subtractive color model."
        },
        {
            "level": 3,
            "heading": "When to use CMYK",
            "text": "- Print design — business cards, brochures, packaging, posters, magazines. Any file sent to a commercial printer should be in CMYK color mode.\n- Preparing files for print in InDesign, Illustrator — these tools let you work in CMYK mode to preview how colors will look on paper (which is always less vibrant than on screen).\n- Color proofing — checking if your design's colors are reproducible in CMYK. Some vivid RGB colors (especially neon greens and electric blues) are physically impossible to print in CMYK — they fall \"out of gamut.\""
        },
        {
            "level": 3,
            "heading": "When NOT to use CMYK",
            "text": "- Anything on a screen — websites, apps, social media, presentations, emails. Screens use RGB. Specifying CMYK for a website is like giving driving directions in nautical miles — technically a distance, but useless for the journey.\n- Photography editing — edit in RGB, convert to CMYK only at the final export stage for print."
        },
        {
            "level": 3,
            "heading": "Real example",
            "text": "You designed a poster in Illustrator. Before sending to the printer, you convert your document to CMYK color mode (File → Document Color Mode → CMYK Color), check for out-of-gamut warnings, and adjust any electric blues that shifted to murky teal. The final PDF is saved as CMYK with the printer's ICC profile."
        },
        {
            "level": 2,
            "heading": "The Quick Reference Table",
            "text": "Format | Best For | Range | Supports Transparency | Human Readable | Print Safe\nHEX | Web, CSS, brand guides | #000000 – #FFFFFF | 8-digit only (#RRGGBBAA) | Medium | No\nRGB | Screens, apps, gradients | 0–255 per channel | Yes (RGBA) | Medium | No\nHSL | Design systems, theming | 0°–360°, 0%–100%, 0%–100% | Yes (HSLA) | High | No\nCMYK | Print, packaging | 0%–100% per channel | No | Low | Yes"
        },
        {
            "level": 2,
            "heading": "The Cheat Sheet: Which Format for Which Job",
            "text": "Your Project | Use This Format | Why\nWebsite CSS | HEX or HSL | HEX for simplicity; HSL for design systems with theming\nMobile app (iOS/Android) | RGB/RGBA | Native frameworks use RGB internally\nFigma / Sketch design file | HEX | Standard input in design tools\nDesign system / tokens | HSL | Scales and variants are trivial in HSL\nSocial media graphics | HEX or RGB | Digital-only; Canva/Photoshop accept both\nBusiness card / brochure | CMYK | Going to a physical printer\nProduct packaging | CMYK + Pantone | Print + brand color consistency\nEmail template | HEX | Email clients support HEX reliably\nSmart lights / LEDs | RGB | LED hardware uses RGB natively\nBrand guidelines document | All four | Different teams need different formats"
        },
        {
            "level": 2,
            "heading": "Can You Convert Between Them?",
            "text": "Yes — with caveats.\n\n- HEX ↔ RGB — lossless, they are the same data in different notation.\n- RGB ↔ HSL — lossless, it is a mathematical transformation.\n- RGB → CMYK — lossy. Some RGB colors (vivid blues, neons, bright greens) cannot be reproduced in CMYK. The conversion will shift them to the nearest printable equivalent, which often looks duller.\n- CMYK → RGB — technically possible, but the result depends on the ICC profile used. Two converters may give slightly different RGB values for the same CMYK input.\n\nFor quick conversions on the go, a phone color picker that shows all four formats simultaneously is the fastest workflow. Color Picker Camera: HEX RGB (https://apps.apple.com/us/app/color-picker-camera-hex-rgb/id6759371237) does exactly this — point your camera at any color and see HEX, RGB, HSL, and CMYK side by side. One tap copies any value. Available on iPhone (https://apps.apple.com/us/app/color-picker-camera-hex-rgb/id6759371237) and Android (https://play.google.com/store/apps/details?id=com.tomas.color_picker)."
        },
        {
            "level": 2,
            "heading": "Common Mistakes",
            "text": ""
        },
        {
            "level": 3,
            "heading": "1. Designing for print in RGB",
            "text": "This is the classic beginner error. You design a vibrant poster in Photoshop in RGB mode, send it to the printer, and the output looks washed out — especially greens and blues. Always convert to CMYK before exporting for print, and check for gamut warnings."
        },
        {
            "level": 3,
            "heading": "2. Using HEX when you need transparency",
            "text": "If your design calls for semi-transparent overlays, shadows, or glassmorphism effects, switch to RGBA or HSLA. Standard 6-digit HEX does not carry opacity information, and 8-digit HEX is rarely used because it is hard to read."
        },
        {
            "level": 3,
            "heading": "3. Building a design system in HEX",
            "text": "\"#3B82F6 but 20% lighter\" requires conversion, calculation, and re-conversion. In HSL: increase the lightness by 20%. Design tokens, theme generators, and modern CSS custom properties work significantly better in HSL."
        },
        {
            "level": 3,
            "heading": "4. Converting CMYK to HEX for web and expecting the same color",
            "text": "A brand that was defined in CMYK for print will look different when naively converted to HEX for web. The correct approach: visually match the color on screen to the printed version, then define separate HEX values for digital use. Brand guidelines should include both."
        },
        {
            "level": 2,
            "heading": "FAQ",
            "text": ""
        },
        {
            "level": 3,
            "heading": "What is the difference between HEX and RGB?",
            "text": "No difference in color — only in notation. HEX writes the same Red/Green/Blue values in base-16. #FF0000 is identical to rgb(255, 0, 0). HEX is shorter to type; RGB is easier to modify programmatically and supports an alpha channel (RGBA)."
        },
        {
            "level": 3,
            "heading": "When should I use CMYK instead of RGB?",
            "text": "Whenever your final output is printed on physical material — paper, cardboard, fabric, plastic. If it stays on a screen, use RGB (or HEX/HSL). If it gets printed, switch to CMYK at the export stage."
        },
        {
            "level": 3,
            "heading": "Is HSL better than HEX?",
            "text": "For design systems, theming, and color manipulation — yes. For quick communication and copy-pasting into tools — HEX is more practical. They describe the same colors; HSL just organizes the information in a way that maps to how humans think about color (hue → vividness → brightness)."
        },
        {
            "level": 3,
            "heading": "Can my phone show all four formats at once?",
            "text": "Yes. Color Picker Camera: HEX RGB (https://apps.apple.com/us/app/color-picker-camera-hex-rgb/id6759371237) captures a color from your camera or photo and displays HEX, RGB, HSL, and CMYK simultaneously. Tap any value to copy it. It works as a real-world color format calculator — one capture, four formats."
        },
        {
            "level": 2,
            "heading": "The Bottom Line",
            "text": "HEX for web and quick communication. RGB for app development and transparency. HSL for design systems and color manipulation. CMYK for print.\n\nYou do not need to choose one — you need to use the right one for each context. And when you need to convert between them or capture a real-world color in all four formats at once, a phone color picker is the fastest tool available.\n\nDownload Color Picker Camera for iPhone (https://apps.apple.com/us/app/color-picker-camera-hex-rgb/id6759371237) | Download for Android (https://play.google.com/store/apps/details?id=com.tomas.color_picker)"
        }
    ],
    "text": "Same Color, Four Different Languages\n\nPick any color — say, a warm coral. Now describe it in four ways:\n\n- HEX: #E8635A\n- RGB: rgb(232, 99, 90)\n- HSL: hsl(4, 75%, 63%)\n- CMYK: 0, 57, 61, 9\n\nAll four describe the exact same color. They are not competing standards — they are different representations of color optimized for different contexts. The confusion comes from not knowing which context calls for which format.\n\nThis guide breaks down each format in plain language: what it is, how it works, when to use it, and when it is the wrong choice. If you work with color in any capacity — design, development, print, marketing — this will save you from picking the wrong format for your project.\n\nHEX: The Web Standard\n\nWhat it is\n\nHEX (hexadecimal) is a six-character code preceded by a hash symbol: #E8635A. Each pair of characters represents the Red, Green, and Blue channels in base-16 notation (00 to FF).\n\nIt is functionally identical to RGB — just written differently. #E8635A is the same as rgb(232, 99, 90). HEX is simply a more compact way to write RGB values.\n\nWhen to use HEX\n\n- CSS and web development — HEX is the default color notation in CSS. Every browser understands it. color: #E8635A; is the most common way to specify color on the web.\n- Design tools — Figma, Sketch, Adobe XD, and Canva all use HEX as their primary input. When a designer says \"the blue is #3B82F6,\" everyone knows what that means.\n- Brand guidelines — digital brand guides almost always include HEX values because they are short, unambiguous, and easy to copy-paste.\n- Quick communication — \"use #333\" is faster than \"use rgb(51, 51, 51)\" in a Slack message.\n\nWhen NOT to use HEX\n\n- When you need transparency — standard 6-digit HEX does not support alpha/opacity. You need 8-digit HEX (#E8635A80) which is less readable, or switch to RGBA.\n- When you need to adjust colors programmatically — \"make this 20% lighter\" is nearly impossible to calculate in HEX mentally. HSL is far better for this.\n- Print production — printers do not use HEX. Ever.\n\nReal example\n\nYou are writing CSS for a landing page. The designer hands you a style guide with brand colors. You write:\n\n:root { --primary: #E8635A; --secondary: #2D3748; --accent: #F6AD55; }\n\nHEX is perfect here: compact, readable, and universally supported.\n\nRGB: The Screen Color Model\n\nWhat it is\n\nRGB stands for Red, Green, Blue — the three colors of light that screens mix to produce every color you see. Each channel ranges from 0 to 255. rgb(232, 99, 90) means 232 units of red, 99 units of green, and 90 units of blue.\n\nRGB is the foundation of all digital color. HEX is just RGB in a different notation. HSL is a human-friendly transformation of RGB. Everything on your screen ultimately becomes RGB values sent to pixels.\n\nWhen to use RGB\n\n- When you need transparency — RGBA adds an alpha channel: rgba(232, 99, 90, 0.5) for 50% opacity. This is cleaner than 8-digit HEX and widely supported in CSS, design tools, and programming.\n- Programming and app development — Swift, Kotlin, Flutter, React Native — app frameworks typically work with RGB/RGBA values internally.\n- LED and lighting — smart lights (Philips Hue, LED strips) use RGB values. If you are designing for physical light installations, RGB is the native format.\n- Color math — mixing colors, interpolating gradients, or generating color programmatically is straightforward in RGB.\n\nWhen NOT to use RGB\n\n- Print — screens emit light (additive mixing); paper reflects it (subtractive mixing). RGB cannot accurately represent what will come out of a printer.\n- Adjusting lightness or saturation — \"make this color 30% less saturated\" is not intuitive in RGB. You would need to convert to HSL first.\n\nReal example\n\nYou are building a React Native app and need a semi-transparent overlay:\n\nbackgroundColor: 'rgba(0, 0, 0, 0.6)'\n\nRGB with alpha is the natural choice — direct, readable, and native to the rendering engine.\n\nHSL: The Designer's Format\n\nWhat it is\n\nHSL stands for Hue, Saturation, Lightness:\n\n- Hue (0°–360°) — the color itself, as a position on the color wheel. 0° is red, 120° is green, 240° is blue.\n- Saturation (0%–100%) — how vivid the color is. 0% is gray, 100% is the purest form of the hue.\n- Lightness (0%–100%) — how light or dark. 0% is black, 100% is white, 50% is the \"true\" color.\n\nhsl(4, 75%, 63%) means: a red-ish hue (4°), very vivid (75% saturated), and slightly light (63%).\n\nWhen to use HSL\n\n- Design systems and theming — HSL is the best format for creating consistent color scales. Want 10 shades of your primary color? Keep the hue, vary the lightness from 10% to 95%. Want a muted version? Drop the saturation. This is nearly impossible to do intuitively in HEX or RGB.\n- Dark mode / light mode — switching themes means adjusting lightness and saturation, which maps directly to HSL parameters. Tailwind CSS, Radix Colors, and many modern design systems are built on HSL.\n- Programmatic color generation — generating hover states, disabled states, backgrounds, and borders from a single base color is trivial in HSL: hsl(4, 75%, 73%) for a lighter variant, hsl(4, 75%, 43%) for a darker one.\n- Accessibility — contrast ratio checks become more intuitive when you can see and adjust lightness directly.\n\nWhen NOT to use HSL\n\n- Cross-team communication — most people do not think in degrees and percentages. Saying \"the button is hsl(4, 75%, 63%)\" is less clear than \"the button is #E8635A\" in a design handoff.\n- Print — same as RGB, HSL is a screen color model.\n\nReal example\n\nYou are building a design system in Tailwind CSS and need a consistent color scale:\n\n--brand-50: hsl(4, 75%, 95%);\n--brand-100: hsl(4, 75%, 90%);\n--brand-200: hsl(4, 75%, 80%);\n--brand-500: hsl(4, 75%, 63%);\n--brand-700: hsl(4, 75%, 43%);\n--brand-900: hsl(4, 75%, 25%);\n\nSame hue, same saturation, different lightness. A perfect scale in 30 seconds. Try that in HEX.\n\nCMYK: The Print Format\n\nWhat it is\n\nCMYK stands for Cyan, Magenta, Yellow, Key (black). It describes color as a mix of ink applied to white paper. Each value ranges from 0% to 100%: 0, 57, 61, 9 means 0% cyan, 57% magenta, 61% yellow, and 9% black.\n\nUnlike RGB (which adds light to make colors), CMYK subtracts from white paper. More ink = darker color. This is why it is called a subtractive color model.\n\nWhen to use CMYK\n\n- Print design — business cards, brochures, packaging, posters, magazines. Any file sent to a commercial printer should be in CMYK color mode.\n- Preparing files for print in InDesign, Illustrator — these tools let you work in CMYK mode to preview how colors will look on paper (which is always less vibrant than on screen).\n- Color proofing — checking if your design's colors are reproducible in CMYK. Some vivid RGB colors (especially neon greens and electric blues) are physically impossible to print in CMYK — they fall \"out of gamut.\"\n\nWhen NOT to use CMYK\n\n- Anything on a screen — websites, apps, social media, presentations, emails. Screens use RGB. Specifying CMYK for a website is like giving driving directions in nautical miles — technically a distance, but useless for the journey.\n- Photography editing — edit in RGB, convert to CMYK only at the final export stage for print.\n\nReal example\n\nYou designed a poster in Illustrator. Before sending to the printer, you convert your document to CMYK color mode (File → Document Color Mode → CMYK Color), check for out-of-gamut warnings, and adjust any electric blues that shifted to murky teal. The final PDF is saved as CMYK with the printer's ICC profile.\n\nThe Quick Reference Table\n\nFormat | Best For | Range | Supports Transparency | Human Readable | Print Safe\nHEX | Web, CSS, brand guides | #000000 – #FFFFFF | 8-digit only (#RRGGBBAA) | Medium | No\nRGB | Screens, apps, gradients | 0–255 per channel | Yes (RGBA) | Medium | No\nHSL | Design systems, theming | 0°–360°, 0%–100%, 0%–100% | Yes (HSLA) | High | No\nCMYK | Print, packaging | 0%–100% per channel | No | Low | Yes\n\nThe Cheat Sheet: Which Format for Which Job\n\nYour Project | Use This Format | Why\nWebsite CSS | HEX or HSL | HEX for simplicity; HSL for design systems with theming\nMobile app (iOS/Android) | RGB/RGBA | Native frameworks use RGB internally\nFigma / Sketch design file | HEX | Standard input in design tools\nDesign system / tokens | HSL | Scales and variants are trivial in HSL\nSocial media graphics | HEX or RGB | Digital-only; Canva/Photoshop accept both\nBusiness card / brochure | CMYK | Going to a physical printer\nProduct packaging | CMYK + Pantone | Print + brand color consistency\nEmail template | HEX | Email clients support HEX reliably\nSmart lights / LEDs | RGB | LED hardware uses RGB natively\nBrand guidelines document | All four | Different teams need different formats\n\nCan You Convert Between Them?\n\nYes — with caveats.\n\n- HEX ↔ RGB — lossless, they are the same data in different notation.\n- RGB ↔ HSL — lossless, it is a mathematical transformation.\n- RGB → CMYK — lossy. Some RGB colors (vivid blues, neons, bright greens) cannot be reproduced in CMYK. The conversion will shift them to the nearest printable equivalent, which often looks duller.\n- CMYK → RGB — technically possible, but the result depends on the ICC profile used. Two converters may give slightly different RGB values for the same CMYK input.\n\nFor quick conversions on the go, a phone color picker that shows all four formats simultaneously is the fastest workflow. Color Picker Camera: HEX RGB (https://apps.apple.com/us/app/color-picker-camera-hex-rgb/id6759371237) does exactly this — point your camera at any color and see HEX, RGB, HSL, and CMYK side by side. One tap copies any value. Available on iPhone (https://apps.apple.com/us/app/color-picker-camera-hex-rgb/id6759371237) and Android (https://play.google.com/store/apps/details?id=com.tomas.color_picker).\n\nCommon Mistakes\n\n1. Designing for print in RGB\n\nThis is the classic beginner error. You design a vibrant poster in Photoshop in RGB mode, send it to the printer, and the output looks washed out — especially greens and blues. Always convert to CMYK before exporting for print, and check for gamut warnings.\n\n2. Using HEX when you need transparency\n\nIf your design calls for semi-transparent overlays, shadows, or glassmorphism effects, switch to RGBA or HSLA. Standard 6-digit HEX does not carry opacity information, and 8-digit HEX is rarely used because it is hard to read.\n\n3. Building a design system in HEX\n\n\"#3B82F6 but 20% lighter\" requires conversion, calculation, and re-conversion. In HSL: increase the lightness by 20%. Design tokens, theme generators, and modern CSS custom properties work significantly better in HSL.\n\n4. Converting CMYK to HEX for web and expecting the same color\n\nA brand that was defined in CMYK for print will look different when naively converted to HEX for web. The correct approach: visually match the color on screen to the printed version, then define separate HEX values for digital use. Brand guidelines should include both.\n\nFAQ\n\nWhat is the difference between HEX and RGB?\n\nNo difference in color — only in notation. HEX writes the same Red/Green/Blue values in base-16. #FF0000 is identical to rgb(255, 0, 0). HEX is shorter to type; RGB is easier to modify programmatically and supports an alpha channel (RGBA).\n\nWhen should I use CMYK instead of RGB?\n\nWhenever your final output is printed on physical material — paper, cardboard, fabric, plastic. If it stays on a screen, use RGB (or HEX/HSL). If it gets printed, switch to CMYK at the export stage.\n\nIs HSL better than HEX?\n\nFor design systems, theming, and color manipulation — yes. For quick communication and copy-pasting into tools — HEX is more practical. They describe the same colors; HSL just organizes the information in a way that maps to how humans think about color (hue → vividness → brightness).\n\nCan my phone show all four formats at once?\n\nYes. Color Picker Camera: HEX RGB (https://apps.apple.com/us/app/color-picker-camera-hex-rgb/id6759371237) captures a color from your camera or photo and displays HEX, RGB, HSL, and CMYK simultaneously. Tap any value to copy it. It works as a real-world color format calculator — one capture, four formats.\n\nThe Bottom Line\n\nHEX for web and quick communication. RGB for app development and transparency. HSL for design systems and color manipulation. CMYK for print.\n\nYou do not need to choose one — you need to use the right one for each context. And when you need to convert between them or capture a real-world color in all four formats at once, a phone color picker is the fastest tool available.\n\nDownload Color Picker Camera for iPhone (https://apps.apple.com/us/app/color-picker-camera-hex-rgb/id6759371237) | Download for Android (https://play.google.com/store/apps/details?id=com.tomas.color_picker)",
    "markdown": "## Same Color, Four Different Languages\n\nPick any color — say, a warm coral. Now describe it in four ways:\n\n- **HEX:** #E8635A\n- **RGB:** rgb(232, 99, 90)\n- **HSL:** hsl(4, 75%, 63%)\n- **CMYK:** 0, 57, 61, 9\n\nAll four describe the exact same color. They are not competing standards — they are different *representations* of color optimized for different contexts. The confusion comes from not knowing which context calls for which format.\n\nThis guide breaks down each format in plain language: what it is, how it works, when to use it, and when it is the wrong choice. If you work with color in any capacity — design, development, print, marketing — this will save you from picking the wrong format for your project.\n\n## HEX: The Web Standard\n\n### What it is\n\nHEX (hexadecimal) is a six-character code preceded by a hash symbol: `#E8635A`. Each pair of characters represents the Red, Green, and Blue channels in base-16 notation (00 to FF).\n\nIt is functionally identical to RGB — just written differently. `#E8635A` is the same as `rgb(232, 99, 90)`. HEX is simply a more compact way to write RGB values.\n\n### When to use HEX\n\n- **CSS and web development** — HEX is the default color notation in CSS. Every browser understands it. `color: #E8635A;` is the most common way to specify color on the web.\n- **Design tools** — Figma, Sketch, Adobe XD, and Canva all use HEX as their primary input. When a designer says \"the blue is #3B82F6,\" everyone knows what that means.\n- **Brand guidelines** — digital brand guides almost always include HEX values because they are short, unambiguous, and easy to copy-paste.\n- **Quick communication** — \"use #333\" is faster than \"use rgb(51, 51, 51)\" in a Slack message.\n\n### When NOT to use HEX\n\n- **When you need transparency** — standard 6-digit HEX does not support alpha/opacity. You need 8-digit HEX (`#E8635A80`) which is less readable, or switch to RGBA.\n- **When you need to adjust colors programmatically** — \"make this 20% lighter\" is nearly impossible to calculate in HEX mentally. HSL is far better for this.\n- **Print production** — printers do not use HEX. Ever.\n\n### Real example\n\nYou are writing CSS for a landing page. The designer hands you a style guide with brand colors. You write:\n\n`:root { --primary: #E8635A; --secondary: #2D3748; --accent: #F6AD55; }`\n\nHEX is perfect here: compact, readable, and universally supported.\n\n## RGB: The Screen Color Model\n\n### What it is\n\nRGB stands for Red, Green, Blue — the three colors of light that screens mix to produce every color you see. Each channel ranges from 0 to 255. `rgb(232, 99, 90)` means 232 units of red, 99 units of green, and 90 units of blue.\n\nRGB is the foundation of all digital color. HEX is just RGB in a different notation. HSL is a human-friendly transformation of RGB. Everything on your screen ultimately becomes RGB values sent to pixels.\n\n### When to use RGB\n\n- **When you need transparency** — RGBA adds an alpha channel: `rgba(232, 99, 90, 0.5)` for 50% opacity. This is cleaner than 8-digit HEX and widely supported in CSS, design tools, and programming.\n- **Programming and app development** — Swift, Kotlin, Flutter, React Native — app frameworks typically work with RGB/RGBA values internally.\n- **LED and lighting** — smart lights (Philips Hue, LED strips) use RGB values. If you are designing for physical light installations, RGB is the native format.\n- **Color math** — mixing colors, interpolating gradients, or generating color programmatically is straightforward in RGB.\n\n### When NOT to use RGB\n\n- **Print** — screens emit light (additive mixing); paper reflects it (subtractive mixing). RGB cannot accurately represent what will come out of a printer.\n- **Adjusting lightness or saturation** — \"make this color 30% less saturated\" is not intuitive in RGB. You would need to convert to HSL first.\n\n### Real example\n\nYou are building a React Native app and need a semi-transparent overlay:\n\n`backgroundColor: 'rgba(0, 0, 0, 0.6)'`\n\nRGB with alpha is the natural choice — direct, readable, and native to the rendering engine.\n\n## HSL: The Designer's Format\n\n### What it is\n\nHSL stands for Hue, Saturation, Lightness:\n\n- **Hue** (0°–360°) — the color itself, as a position on the color wheel. 0° is red, 120° is green, 240° is blue.\n- **Saturation** (0%–100%) — how vivid the color is. 0% is gray, 100% is the purest form of the hue.\n- **Lightness** (0%–100%) — how light or dark. 0% is black, 100% is white, 50% is the \"true\" color.\n\n`hsl(4, 75%, 63%)` means: a red-ish hue (4°), very vivid (75% saturated), and slightly light (63%).\n\n### When to use HSL\n\n- **Design systems and theming** — HSL is the best format for creating consistent color scales. Want 10 shades of your primary color? Keep the hue, vary the lightness from 10% to 95%. Want a muted version? Drop the saturation. This is nearly impossible to do intuitively in HEX or RGB.\n- **Dark mode / light mode** — switching themes means adjusting lightness and saturation, which maps directly to HSL parameters. Tailwind CSS, Radix Colors, and many modern design systems are built on HSL.\n- **Programmatic color generation** — generating hover states, disabled states, backgrounds, and borders from a single base color is trivial in HSL: `hsl(4, 75%, 73%)` for a lighter variant, `hsl(4, 75%, 43%)` for a darker one.\n- **Accessibility** — contrast ratio checks become more intuitive when you can see and adjust lightness directly.\n\n### When NOT to use HSL\n\n- **Cross-team communication** — most people do not think in degrees and percentages. Saying \"the button is hsl(4, 75%, 63%)\" is less clear than \"the button is #E8635A\" in a design handoff.\n- **Print** — same as RGB, HSL is a screen color model.\n\n### Real example\n\nYou are building a design system in Tailwind CSS and need a consistent color scale:\n\n`--brand-50: hsl(4, 75%, 95%);--brand-100: hsl(4, 75%, 90%);--brand-200: hsl(4, 75%, 80%);--brand-500: hsl(4, 75%, 63%);--brand-700: hsl(4, 75%, 43%);--brand-900: hsl(4, 75%, 25%);`\n\nSame hue, same saturation, different lightness. A perfect scale in 30 seconds. Try that in HEX.\n\n## CMYK: The Print Format\n\n### What it is\n\nCMYK stands for Cyan, Magenta, Yellow, Key (black). It describes color as a mix of ink applied to white paper. Each value ranges from 0% to 100%: `0, 57, 61, 9` means 0% cyan, 57% magenta, 61% yellow, and 9% black.\n\nUnlike RGB (which adds light to make colors), CMYK subtracts from white paper. More ink = darker color. This is why it is called a **subtractive** color model.\n\n### When to use CMYK\n\n- **Print design** — business cards, brochures, packaging, posters, magazines. Any file sent to a commercial printer should be in CMYK color mode.\n- **Preparing files for print in InDesign, Illustrator** — these tools let you work in CMYK mode to preview how colors will look on paper (which is always less vibrant than on screen).\n- **Color proofing** — checking if your design's colors are reproducible in CMYK. Some vivid RGB colors (especially neon greens and electric blues) are physically impossible to print in CMYK — they fall \"out of gamut.\"\n\n### When NOT to use CMYK\n\n- **Anything on a screen** — websites, apps, social media, presentations, emails. Screens use RGB. Specifying CMYK for a website is like giving driving directions in nautical miles — technically a distance, but useless for the journey.\n- **Photography editing** — edit in RGB, convert to CMYK only at the final export stage for print.\n\n### Real example\n\nYou designed a poster in Illustrator. Before sending to the printer, you convert your document to CMYK color mode (`File → Document Color Mode → CMYK Color`), check for out-of-gamut warnings, and adjust any electric blues that shifted to murky teal. The final PDF is saved as CMYK with the printer's ICC profile.\n\n## The Quick Reference Table\n\n| Format | Best For | Range | Supports Transparency | Human Readable | Print Safe |\n| --- | --- | --- | --- | --- | --- |\n| HEX | Web, CSS, brand guides | #000000 – #FFFFFF | 8-digit only (#RRGGBBAA) | Medium | No |\n| RGB | Screens, apps, gradients | 0–255 per channel | Yes (RGBA) | Medium | No |\n| HSL | Design systems, theming | 0°–360°, 0%–100%, 0%–100% | Yes (HSLA) | High | No |\n| CMYK | Print, packaging | 0%–100% per channel | No | Low | Yes |\n\n## The Cheat Sheet: Which Format for Which Job\n\n| Your Project | Use This Format | Why |\n| --- | --- | --- |\n| Website CSS | HEX or HSL | HEX for simplicity; HSL for design systems with theming |\n| Mobile app (iOS/Android) | RGB/RGBA | Native frameworks use RGB internally |\n| Figma / Sketch design file | HEX | Standard input in design tools |\n| Design system / tokens | HSL | Scales and variants are trivial in HSL |\n| Social media graphics | HEX or RGB | Digital-only; Canva/Photoshop accept both |\n| Business card / brochure | CMYK | Going to a physical printer |\n| Product packaging | CMYK + Pantone | Print + brand color consistency |\n| Email template | HEX | Email clients support HEX reliably |\n| Smart lights / LEDs | RGB | LED hardware uses RGB natively |\n| Brand guidelines document | All four | Different teams need different formats |\n\n## Can You Convert Between Them?\n\nYes — with caveats.\n\n- **HEX ↔ RGB** — lossless, they are the same data in different notation.\n- **RGB ↔ HSL** — lossless, it is a mathematical transformation.\n- **RGB → CMYK** — lossy. Some RGB colors (vivid blues, neons, bright greens) cannot be reproduced in CMYK. The conversion will shift them to the nearest printable equivalent, which often looks duller.\n- **CMYK → RGB** — technically possible, but the result depends on the ICC profile used. Two converters may give slightly different RGB values for the same CMYK input.\n\nFor quick conversions on the go, a phone color picker that shows all four formats simultaneously is the fastest workflow. **[Color Picker Camera: HEX RGB](https://apps.apple.com/us/app/color-picker-camera-hex-rgb/id6759371237)** does exactly this — point your camera at any color and see HEX, RGB, HSL, and CMYK side by side. One tap copies any value. Available on [iPhone](https://apps.apple.com/us/app/color-picker-camera-hex-rgb/id6759371237) and [Android](https://play.google.com/store/apps/details?id=com.tomas.color_picker).\n\n## Common Mistakes\n\n### 1. Designing for print in RGB\n\nThis is the classic beginner error. You design a vibrant poster in Photoshop in RGB mode, send it to the printer, and the output looks washed out — especially greens and blues. Always convert to CMYK before exporting for print, and check for gamut warnings.\n\n### 2. Using HEX when you need transparency\n\nIf your design calls for semi-transparent overlays, shadows, or glassmorphism effects, switch to RGBA or HSLA. Standard 6-digit HEX does not carry opacity information, and 8-digit HEX is rarely used because it is hard to read.\n\n### 3. Building a design system in HEX\n\n\"#3B82F6 but 20% lighter\" requires conversion, calculation, and re-conversion. In HSL: increase the lightness by 20%. Design tokens, theme generators, and modern CSS custom properties work significantly better in HSL.\n\n### 4. Converting CMYK to HEX for web and expecting the same color\n\nA brand that was defined in CMYK for print will look different when naively converted to HEX for web. The correct approach: visually match the color on screen to the printed version, then define separate HEX values for digital use. Brand guidelines should include both.\n\n## FAQ\n\n### What is the difference between HEX and RGB?\n\nNo difference in color — only in notation. HEX writes the same Red/Green/Blue values in base-16. `#FF0000` is identical to `rgb(255, 0, 0)`. HEX is shorter to type; RGB is easier to modify programmatically and supports an alpha channel (RGBA).\n\n### When should I use CMYK instead of RGB?\n\nWhenever your final output is printed on physical material — paper, cardboard, fabric, plastic. If it stays on a screen, use RGB (or HEX/HSL). If it gets printed, switch to CMYK at the export stage.\n\n### Is HSL better than HEX?\n\nFor design systems, theming, and color manipulation — yes. For quick communication and copy-pasting into tools — HEX is more practical. They describe the same colors; HSL just organizes the information in a way that maps to how humans think about color (hue → vividness → brightness).\n\n### Can my phone show all four formats at once?\n\nYes. [Color Picker Camera: HEX RGB](https://apps.apple.com/us/app/color-picker-camera-hex-rgb/id6759371237) captures a color from your camera or photo and displays HEX, RGB, HSL, and CMYK simultaneously. Tap any value to copy it. It works as a real-world color format calculator — one capture, four formats.\n\n## The Bottom Line\n\n**HEX** for web and quick communication. **RGB** for app development and transparency. **HSL** for design systems and color manipulation. **CMYK** for print.\n\nYou do not need to choose one — you need to use the right one for each context. And when you need to convert between them or capture a real-world color in all four formats at once, a phone color picker is the fastest tool available.\n\n[Download Color Picker Camera for iPhone](https://apps.apple.com/us/app/color-picker-camera-hex-rgb/id6759371237) | [Download for Android](https://play.google.com/store/apps/details?id=com.tomas.color_picker)",
    "html": "<h2>Same Color, Four Different Languages</h2><p>Pick any color — say, a warm coral. Now describe it in four ways:</p><ul><li><strong>HEX:</strong> #E8635A</li><li><strong>RGB:</strong> rgb(232, 99, 90)</li><li><strong>HSL:</strong> hsl(4, 75%, 63%)</li><li><strong>CMYK:</strong> 0, 57, 61, 9</li></ul><p>All four describe the exact same color. They are not competing standards — they are different <em>representations</em> of color optimized for different contexts. The confusion comes from not knowing which context calls for which format.</p><p>This guide breaks down each format in plain language: what it is, how it works, when to use it, and when it is the wrong choice. If you work with color in any capacity — design, development, print, marketing — this will save you from picking the wrong format for your project.</p><h2>HEX: The Web Standard</h2><h3>What it is</h3><p>HEX (hexadecimal) is a six-character code preceded by a hash symbol: <code>#E8635A</code>. Each pair of characters represents the Red, Green, and Blue channels in base-16 notation (00 to FF).</p><p>It is functionally identical to RGB — just written differently. <code>#E8635A</code> is the same as <code>rgb(232, 99, 90)</code>. HEX is simply a more compact way to write RGB values.</p><h3>When to use HEX</h3><ul><li><strong>CSS and web development</strong> — HEX is the default color notation in CSS. Every browser understands it. <code>color: #E8635A;</code> is the most common way to specify color on the web.</li><li><strong>Design tools</strong> — Figma, Sketch, Adobe XD, and Canva all use HEX as their primary input. When a designer says \"the blue is #3B82F6,\" everyone knows what that means.</li><li><strong>Brand guidelines</strong> — digital brand guides almost always include HEX values because they are short, unambiguous, and easy to copy-paste.</li><li><strong>Quick communication</strong> — \"use #333\" is faster than \"use rgb(51, 51, 51)\" in a Slack message.</li></ul><h3>When NOT to use HEX</h3><ul><li><strong>When you need transparency</strong> — standard 6-digit HEX does not support alpha/opacity. You need 8-digit HEX (<code>#E8635A80</code>) which is less readable, or switch to RGBA.</li><li><strong>When you need to adjust colors programmatically</strong> — \"make this 20% lighter\" is nearly impossible to calculate in HEX mentally. HSL is far better for this.</li><li><strong>Print production</strong> — printers do not use HEX. Ever.</li></ul><h3>Real example</h3><p>You are writing CSS for a landing page. The designer hands you a style guide with brand colors. You write:</p><p><code>:root { --primary: #E8635A; --secondary: #2D3748; --accent: #F6AD55; }</code></p><p>HEX is perfect here: compact, readable, and universally supported.</p><h2>RGB: The Screen Color Model</h2><h3>What it is</h3><p>RGB stands for Red, Green, Blue — the three colors of light that screens mix to produce every color you see. Each channel ranges from 0 to 255. <code>rgb(232, 99, 90)</code> means 232 units of red, 99 units of green, and 90 units of blue.</p><p>RGB is the foundation of all digital color. HEX is just RGB in a different notation. HSL is a human-friendly transformation of RGB. Everything on your screen ultimately becomes RGB values sent to pixels.</p><h3>When to use RGB</h3><ul><li><strong>When you need transparency</strong> — RGBA adds an alpha channel: <code>rgba(232, 99, 90, 0.5)</code> for 50% opacity. This is cleaner than 8-digit HEX and widely supported in CSS, design tools, and programming.</li><li><strong>Programming and app development</strong> — Swift, Kotlin, Flutter, React Native — app frameworks typically work with RGB/RGBA values internally.</li><li><strong>LED and lighting</strong> — smart lights (Philips Hue, LED strips) use RGB values. If you are designing for physical light installations, RGB is the native format.</li><li><strong>Color math</strong> — mixing colors, interpolating gradients, or generating color programmatically is straightforward in RGB.</li></ul><h3>When NOT to use RGB</h3><ul><li><strong>Print</strong> — screens emit light (additive mixing); paper reflects it (subtractive mixing). RGB cannot accurately represent what will come out of a printer.</li><li><strong>Adjusting lightness or saturation</strong> — \"make this color 30% less saturated\" is not intuitive in RGB. You would need to convert to HSL first.</li></ul><h3>Real example</h3><p>You are building a React Native app and need a semi-transparent overlay:</p><p><code>backgroundColor: 'rgba(0, 0, 0, 0.6)'</code></p><p>RGB with alpha is the natural choice — direct, readable, and native to the rendering engine.</p><h2>HSL: The Designer's Format</h2><h3>What it is</h3><p>HSL stands for Hue, Saturation, Lightness:</p><ul><li><strong>Hue</strong> (0°–360°) — the color itself, as a position on the color wheel. 0° is red, 120° is green, 240° is blue.</li><li><strong>Saturation</strong> (0%–100%) — how vivid the color is. 0% is gray, 100% is the purest form of the hue.</li><li><strong>Lightness</strong> (0%–100%) — how light or dark. 0% is black, 100% is white, 50% is the \"true\" color.</li></ul><p><code>hsl(4, 75%, 63%)</code> means: a red-ish hue (4°), very vivid (75% saturated), and slightly light (63%).</p><h3>When to use HSL</h3><ul><li><strong>Design systems and theming</strong> — HSL is the best format for creating consistent color scales. Want 10 shades of your primary color? Keep the hue, vary the lightness from 10% to 95%. Want a muted version? Drop the saturation. This is nearly impossible to do intuitively in HEX or RGB.</li><li><strong>Dark mode / light mode</strong> — switching themes means adjusting lightness and saturation, which maps directly to HSL parameters. Tailwind CSS, Radix Colors, and many modern design systems are built on HSL.</li><li><strong>Programmatic color generation</strong> — generating hover states, disabled states, backgrounds, and borders from a single base color is trivial in HSL: <code>hsl(4, 75%, 73%)</code> for a lighter variant, <code>hsl(4, 75%, 43%)</code> for a darker one.</li><li><strong>Accessibility</strong> — contrast ratio checks become more intuitive when you can see and adjust lightness directly.</li></ul><h3>When NOT to use HSL</h3><ul><li><strong>Cross-team communication</strong> — most people do not think in degrees and percentages. Saying \"the button is hsl(4, 75%, 63%)\" is less clear than \"the button is #E8635A\" in a design handoff.</li><li><strong>Print</strong> — same as RGB, HSL is a screen color model.</li></ul><h3>Real example</h3><p>You are building a design system in Tailwind CSS and need a consistent color scale:</p><p><code>--brand-50: hsl(4, 75%, 95%);<br>--brand-100: hsl(4, 75%, 90%);<br>--brand-200: hsl(4, 75%, 80%);<br>--brand-500: hsl(4, 75%, 63%);<br>--brand-700: hsl(4, 75%, 43%);<br>--brand-900: hsl(4, 75%, 25%);</code></p><p>Same hue, same saturation, different lightness. A perfect scale in 30 seconds. Try that in HEX.</p><h2>CMYK: The Print Format</h2><h3>What it is</h3><p>CMYK stands for Cyan, Magenta, Yellow, Key (black). It describes color as a mix of ink applied to white paper. Each value ranges from 0% to 100%: <code>0, 57, 61, 9</code> means 0% cyan, 57% magenta, 61% yellow, and 9% black.</p><p>Unlike RGB (which adds light to make colors), CMYK subtracts from white paper. More ink = darker color. This is why it is called a <strong>subtractive</strong> color model.</p><h3>When to use CMYK</h3><ul><li><strong>Print design</strong> — business cards, brochures, packaging, posters, magazines. Any file sent to a commercial printer should be in CMYK color mode.</li><li><strong>Preparing files for print in InDesign, Illustrator</strong> — these tools let you work in CMYK mode to preview how colors will look on paper (which is always less vibrant than on screen).</li><li><strong>Color proofing</strong> — checking if your design's colors are reproducible in CMYK. Some vivid RGB colors (especially neon greens and electric blues) are physically impossible to print in CMYK — they fall \"out of gamut.\"</li></ul><h3>When NOT to use CMYK</h3><ul><li><strong>Anything on a screen</strong> — websites, apps, social media, presentations, emails. Screens use RGB. Specifying CMYK for a website is like giving driving directions in nautical miles — technically a distance, but useless for the journey.</li><li><strong>Photography editing</strong> — edit in RGB, convert to CMYK only at the final export stage for print.</li></ul><h3>Real example</h3><p>You designed a poster in Illustrator. Before sending to the printer, you convert your document to CMYK color mode (<code>File → Document Color Mode → CMYK Color</code>), check for out-of-gamut warnings, and adjust any electric blues that shifted to murky teal. The final PDF is saved as CMYK with the printer's ICC profile.</p><h2>The Quick Reference Table</h2><table><thead><tr><th>Format</th><th>Best For</th><th>Range</th><th>Supports Transparency</th><th>Human Readable</th><th>Print Safe</th></tr></thead><tbody><tr><td><strong>HEX</strong></td><td>Web, CSS, brand guides</td><td>#000000 – #FFFFFF</td><td>8-digit only (#RRGGBBAA)</td><td>Medium</td><td>No</td></tr><tr><td><strong>RGB</strong></td><td>Screens, apps, gradients</td><td>0–255 per channel</td><td>Yes (RGBA)</td><td>Medium</td><td>No</td></tr><tr><td><strong>HSL</strong></td><td>Design systems, theming</td><td>0°–360°, 0%–100%, 0%–100%</td><td>Yes (HSLA)</td><td>High</td><td>No</td></tr><tr><td><strong>CMYK</strong></td><td>Print, packaging</td><td>0%–100% per channel</td><td>No</td><td>Low</td><td>Yes</td></tr></tbody></table><h2>The Cheat Sheet: Which Format for Which Job</h2><table><thead><tr><th>Your Project</th><th>Use This Format</th><th>Why</th></tr></thead><tbody><tr><td>Website CSS</td><td>HEX or HSL</td><td>HEX for simplicity; HSL for design systems with theming</td></tr><tr><td>Mobile app (iOS/Android)</td><td>RGB/RGBA</td><td>Native frameworks use RGB internally</td></tr><tr><td>Figma / Sketch design file</td><td>HEX</td><td>Standard input in design tools</td></tr><tr><td>Design system / tokens</td><td>HSL</td><td>Scales and variants are trivial in HSL</td></tr><tr><td>Social media graphics</td><td>HEX or RGB</td><td>Digital-only; Canva/Photoshop accept both</td></tr><tr><td>Business card / brochure</td><td>CMYK</td><td>Going to a physical printer</td></tr><tr><td>Product packaging</td><td>CMYK + Pantone</td><td>Print + brand color consistency</td></tr><tr><td>Email template</td><td>HEX</td><td>Email clients support HEX reliably</td></tr><tr><td>Smart lights / LEDs</td><td>RGB</td><td>LED hardware uses RGB natively</td></tr><tr><td>Brand guidelines document</td><td>All four</td><td>Different teams need different formats</td></tr></tbody></table><h2>Can You Convert Between Them?</h2><p>Yes — with caveats.</p><ul><li><strong>HEX ↔ RGB</strong> — lossless, they are the same data in different notation.</li><li><strong>RGB ↔ HSL</strong> — lossless, it is a mathematical transformation.</li><li><strong>RGB → CMYK</strong> — lossy. Some RGB colors (vivid blues, neons, bright greens) cannot be reproduced in CMYK. The conversion will shift them to the nearest printable equivalent, which often looks duller.</li><li><strong>CMYK → RGB</strong> — technically possible, but the result depends on the ICC profile used. Two converters may give slightly different RGB values for the same CMYK input.</li></ul><p>For quick conversions on the go, a phone color picker that shows all four formats simultaneously is the fastest workflow. <strong><a href=\"https://apps.apple.com/us/app/color-picker-camera-hex-rgb/id6759371237\">Color Picker Camera: HEX RGB</a></strong> does exactly this — point your camera at any color and see HEX, RGB, HSL, and CMYK side by side. One tap copies any value. Available on <a href=\"https://apps.apple.com/us/app/color-picker-camera-hex-rgb/id6759371237\">iPhone</a> and <a href=\"https://play.google.com/store/apps/details?id=com.tomas.color_picker\">Android</a>.</p><h2>Common Mistakes</h2><h3>1. Designing for print in RGB</h3><p>This is the classic beginner error. You design a vibrant poster in Photoshop in RGB mode, send it to the printer, and the output looks washed out — especially greens and blues. Always convert to CMYK before exporting for print, and check for gamut warnings.</p><h3>2. Using HEX when you need transparency</h3><p>If your design calls for semi-transparent overlays, shadows, or glassmorphism effects, switch to RGBA or HSLA. Standard 6-digit HEX does not carry opacity information, and 8-digit HEX is rarely used because it is hard to read.</p><h3>3. Building a design system in HEX</h3><p>\"#3B82F6 but 20% lighter\" requires conversion, calculation, and re-conversion. In HSL: increase the lightness by 20%. Design tokens, theme generators, and modern CSS custom properties work significantly better in HSL.</p><h3>4. Converting CMYK to HEX for web and expecting the same color</h3><p>A brand that was defined in CMYK for print will look different when naively converted to HEX for web. The correct approach: visually match the color on screen to the printed version, then define separate HEX values for digital use. Brand guidelines should include both.</p><h2>FAQ</h2><h3>What is the difference between HEX and RGB?</h3><p>No difference in color — only in notation. HEX writes the same Red/Green/Blue values in base-16. <code>#FF0000</code> is identical to <code>rgb(255, 0, 0)</code>. HEX is shorter to type; RGB is easier to modify programmatically and supports an alpha channel (RGBA).</p><h3>When should I use CMYK instead of RGB?</h3><p>Whenever your final output is printed on physical material — paper, cardboard, fabric, plastic. If it stays on a screen, use RGB (or HEX/HSL). If it gets printed, switch to CMYK at the export stage.</p><h3>Is HSL better than HEX?</h3><p>For design systems, theming, and color manipulation — yes. For quick communication and copy-pasting into tools — HEX is more practical. They describe the same colors; HSL just organizes the information in a way that maps to how humans think about color (hue → vividness → brightness).</p><h3>Can my phone show all four formats at once?</h3><p>Yes. <a href=\"https://apps.apple.com/us/app/color-picker-camera-hex-rgb/id6759371237\">Color Picker Camera: HEX RGB</a> captures a color from your camera or photo and displays HEX, RGB, HSL, and CMYK simultaneously. Tap any value to copy it. It works as a real-world color format calculator — one capture, four formats.</p><h2>The Bottom Line</h2><p><strong>HEX</strong> for web and quick communication. <strong>RGB</strong> for app development and transparency. <strong>HSL</strong> for design systems and color manipulation. <strong>CMYK</strong> for print.</p><p>You do not need to choose one — you need to use the right one for each context. And when you need to convert between them or capture a real-world color in all four formats at once, a phone color picker is the fastest tool available.</p><p><a href=\"https://apps.apple.com/us/app/color-picker-camera-hex-rgb/id6759371237\">Download Color Picker Camera for iPhone</a> | <a href=\"https://play.google.com/store/apps/details?id=com.tomas.color_picker\">Download for Android</a></p>"
}
