{"id":12449,"date":"2026-01-06T17:27:49","date_gmt":"2026-01-06T08:27:49","guid":{"rendered":"https:\/\/rakkoserver.com\/plus\/?p=12282"},"modified":"2026-01-06T17:27:49","modified_gmt":"2026-01-06T08:27:49","slug":"tool-rgb-to-cmyk","status":"publish","type":"post","link":"https:\/\/rakkokeyword.com\/techo\/tool-rgb-to-cmyk\/","title":{"rendered":"RGB \u21d2 CMYK \u5909\u63db\u30c4\u30fc\u30eb"},"content":{"rendered":"\n<div class=\"rcc_tool_container\">\n    <div class=\"rcc_link_area_tab\">\n        <div class=\"rcc_tab_container\">\n            <span class=\"rcc_tab_item rcc_tab_active\">RGB \u21d2 CMYK<\/span>\n            <a href=\"https:\/\/rakkokeyword.com\/techo\/tool-cmyk-to-rgb\/\" class=\"rcc_tab_item rcc_tab_link\">CMYK \u21d2 RGB<\/a>\n        <\/div>\n    <\/div>\n\n    <div class=\"rcc_section rcc_input_bg\">\n        <p class=\"rcc_section_title\">RGB\u3092\u5165\u529b<\/p>\n        <div class=\"rcc_input_container\">\n            <div class=\"rcc_input_row\">\n                <label>R<\/label>\n                <input type=\"range\" id=\"rcc_range_r\" min=\"0\" max=\"255\" value=\"255\" class=\"rcc_slider\">\n                <div class=\"rcc_num_wrap\"><input type=\"number\" id=\"rcc_input_r\" min=\"0\" max=\"255\" value=\"255\"><\/div>\n            <\/div>\n            <div class=\"rcc_input_row\">\n                <label>G<\/label>\n                <input type=\"range\" id=\"rcc_range_g\" min=\"0\" max=\"255\" value=\"255\" class=\"rcc_slider\">\n                <div class=\"rcc_num_wrap\"><input type=\"number\" id=\"rcc_input_g\" min=\"0\" max=\"255\" value=\"255\"><\/div>\n            <\/div>\n            <div class=\"rcc_input_row\">\n                <label>B<\/label>\n                <input type=\"range\" id=\"rcc_range_b\" min=\"0\" max=\"255\" value=\"255\" class=\"rcc_slider\">\n                <div class=\"rcc_num_wrap\"><input type=\"number\" id=\"rcc_input_b\" min=\"0\" max=\"255\" value=\"255\"><\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <div class=\"rcc_flow_arrow\">\n        <svg width=\"30\" height=\"30\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#ccc\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\" \/><polyline points=\"19 12 12 19 5 12\" \/><\/svg>\n    <\/div>\n\n    <div class=\"rcc_section\">\n        <p class=\"rcc_section_title\">CMYK \u5909\u63db\u7d50\u679c<\/p>\n        <div id=\"rcc_preview_box\" class=\"rcc_preview_full\">\n            <div id=\"rcc_preview_text\">\n                <p style=\"font-size:12px;margin:0;\">Preview<\/p>\n                <p style=\"font-size:20px;font-weight:bold;margin:0;\">SAMPLE TEXT<\/p>\n            <\/div>\n        <\/div>\n\n        <div class=\"rcc_cmyk_display_grid\">\n            <div class=\"rcc_cmyk_item\"><span class=\"rcc_cmyk_label\">C<\/span><span class=\"rcc_cmyk_val\"><span id=\"rcc_val_c\">0<\/span><small>%<\/small><\/span><\/div>\n            <div class=\"rcc_cmyk_item\"><span class=\"rcc_cmyk_label\">M<\/span><span class=\"rcc_cmyk_val\"><span id=\"rcc_val_m\">0<\/span><small>%<\/small><\/span><\/div>\n            <div class=\"rcc_cmyk_item\"><span class=\"rcc_cmyk_label\">Y<\/span><span class=\"rcc_cmyk_val\"><span id=\"rcc_val_y\">0<\/span><small>%<\/small><\/span><\/div>\n            <div class=\"rcc_cmyk_item\"><span class=\"rcc_cmyk_label\">K<\/span><span class=\"rcc_cmyk_val\"><span id=\"rcc_val_k\">0<\/span><small>%<\/small><\/span><\/div>\n        <\/div>\n\n        <div class=\"rcc_action_area\">\n            <button type=\"button\" id=\"rcc_copy_cmyk\" class=\"rcc_main_btn\">CMYK\u5024\u3092\u30b3\u30d4\u30fc<\/button>\n        <\/div>\n\n        <div class=\"rcc_css_output\">\n            <p class=\"rcc_label_sm\">CSS \/ \u30d7\u30ed\u30b0\u30e9\u30e0\u7528\u66f8\u5f0f (device-cmyk)<\/p>\n            <div class=\"rcc_flex_center\">\n                <input type=\"text\" id=\"rcc_output_css\" readonly value=\"device-cmyk(0%, 0%, 0%, 0%)\">\n                <button type=\"button\" id=\"rcc_copy_css\" class=\"rcc_icon_btn\" title=\"\u66f8\u5f0f\u3092\u30b3\u30d4\u30fc\">\n                    <svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"9\" y=\"9\" width=\"13\" height=\"13\" rx=\"2\" ry=\"2\" \/><path d=\"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\" \/><\/svg>\n                <\/button>\n            <\/div>\n        <\/div>\n        <button type=\"button\" id=\"rcc_reset_btn\" class=\"rcc_reset_link\">\u3059\u3079\u3066\u306e\u6570\u5024\u3092\u30ea\u30bb\u30c3\u30c8<\/button>\n    <\/div>\n\n    <style>\n    .rcc_tool_container { width: 100%; max-width: 720px; margin: 0 auto; font-family: sans-serif; color: #333; text-align: center; }\n    .rcc_tool_container * { box-sizing: border-box; }\n\n    \/* \u65b0\u8a2d\uff1a\u30bf\u30d6UI\u30b9\u30bf\u30a4\u30eb *\/\n    .rcc_link_area_tab { margin-bottom: 25px; }\n    .rcc_tab_container { display: flex; width: 100%; gap: 8px; }\n    .rcc_tab_item {\n        flex: 1; display: flex; align-items: center; justify-content: center;\n        height: 50px; font-size: 14px; font-weight: bold; text-decoration: none;\n        border-radius: 0; \/* \u89d2\u4e38\u306a\u3057 *\/\n    }\n    .rcc_tab_link { background-color: #f8f9fa; color: #333 !important; border: 1px solid #ddd; transition: 0.2s; }\n    .rcc_tab_link:hover { background-color: #eee; text-decoration: none; }\n    .rcc_tab_active { background-color: #13284B; color: #fff !important; border: 1px solid #13284B; cursor: default; }\n\n    .rcc_section { padding: 20px 0; }\n    .rcc_input_bg { background-color: #f8f9fa; border-radius: 12px; padding: 30px 20px; }\n    .rcc_section_title { font-size: 14px; font-weight: bold; color: #666; margin: 0 0 20px 0; letter-spacing: 0.05em; }\n    .rcc_input_container { max-width: 500px; margin: 0 auto; }\n    .rcc_input_row { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }\n    .rcc_input_row label { width: 15px; font-weight: bold; color: #13284B; font-size: 16px; margin:0; }\n    .rcc_slider { flex-grow: 1; height: 6px; cursor: pointer; }\n    .rcc_num_wrap { width: 75px; }\n    .rcc_num_wrap input[type=\"number\"] { width: 100%; height: 36px; text-align: center; border: 1px solid #ccc; border-radius: 4px; font-size: 15px; padding: 0; }\n    .rcc_flow_arrow { padding: 10px 0; }\n    .rcc_preview_full { width: 100%; max-width: 450px; height: 100px; margin: 0 auto 25px; border-radius: 10px; display: flex; align-items: center; justify-content: center; border: 1px solid #eee; }\n    .rcc_cmyk_display_grid { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; }\n    .rcc_cmyk_item { display: flex; flex-direction: column; min-width: 60px; }\n    .rcc_cmyk_label { font-size: 12px; color: #999; margin-bottom: 4px; }\n    .rcc_cmyk_val { font-size: 22px; font-weight: bold; color: #444; }\n    .rcc_cmyk_val small { font-size: 12px; color: #888; margin-left: 1px; }\n    .rcc_main_btn { height: 44px; padding: 0 30px; background: #13284B; color: #fff; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 14px; }\n    .rcc_icon_btn { width: 44px; height: 44px; background: #fff; border: 1px solid #ccc; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }\n    .rcc_flex_center { display: flex; justify-content: center; gap: 8px; max-width: 320px; margin: 0 auto; }\n    .rcc_css_output { margin-top: 20px; padding-top: 25px; border-top: 1px dashed #eee; }\n    .rcc_css_output input { height: 44px; border: 1px solid #ccc; border-radius: 6px; padding: 0 12px; font-size: 14px; width: 100%; text-align: center; background: #fafafa; }\n    .rcc_label_sm { font-size: 12px; color: #888; margin-bottom: 8px; font-weight: bold; }\n    .rcc_reset_link { background: none; border: none; color: #999; text-decoration: underline; cursor: pointer; margin-top: 35px; font-size: 13px; padding: 0; }\n    @media (max-width: 500px) { .rcc_cmyk_display_grid { gap: 10px; } .rcc_cmyk_val { font-size: 18px; } }\n    <\/style>\n\n    <script>\n    (function() {\n        document.addEventListener('DOMContentLoaded', function() {\n            const el = {\n                rNum: document.getElementById('rcc_input_r'), gNum: document.getElementById('rcc_input_g'), bNum: document.getElementById('rcc_input_b'),\n                rRange: document.getElementById('rcc_range_r'), gRange: document.getElementById('rcc_range_g'), bRange: document.getElementById('rcc_range_b'),\n                cVal: document.getElementById('rcc_val_c'), mVal: document.getElementById('rcc_val_m'), yVal: document.getElementById('rcc_val_y'), kVal: document.getElementById('rcc_val_k'),\n                css: document.getElementById('rcc_output_css'), preview: document.getElementById('rcc_preview_box'), previewText: document.getElementById('rcc_preview_text'),\n                reset: document.getElementById('rcc_reset_btn'), copyCmyk: document.getElementById('rcc_copy_cmyk'), copyCss: document.getElementById('rcc_copy_css')\n            };\n\n            function rgbToCmyk(r, g, b) {\n                let r1 = r \/ 255, g1 = g \/ 255, b1 = b \/ 255;\n                let k = 1 - Math.max(r1, g1, b1);\n                if (k === 1) return { c: 0, m: 0, y: 0, k: 100 };\n                let c = Math.round((1 - r1 - k) \/ (1 - k) * 100);\n                let m = Math.round((1 - g1 - k) \/ (1 - k) * 100);\n                let y = Math.round((1 - b1 - k) \/ (1 - k) * 100);\n                return { c, m, y, k: Math.round(k * 100) };\n            }\n\n            function update(src) {\n                let r = parseInt(src === 'num' ? el.rNum.value : el.rRange.value) || 0;\n                let g = parseInt(src === 'num' ? el.gNum.value : el.gRange.value) || 0;\n                let b = parseInt(src === 'num' ? el.bNum.value : el.bRange.value) || 0;\n                r = Math.min(255, Math.max(0, r)); g = Math.min(255, Math.max(0, g)); b = Math.min(255, Math.max(0, b));\n                el.rNum.value = el.rRange.value = r; el.gNum.value = el.gRange.value = g; el.bNum.value = el.bRange.value = b;\n\n                const cmyk = rgbToCmyk(r, g, b);\n                el.cVal.textContent = cmyk.c; el.mVal.textContent = cmyk.m; el.yVal.textContent = cmyk.y; el.kVal.textContent = cmyk.k;\n                el.css.value = `device-cmyk(${cmyk.c}%, ${cmyk.m}%, ${cmyk.y}%, ${cmyk.k}%)`;\n                el.preview.style.backgroundColor = `rgb(${r},${g},${b})`;\n                const lum = (0.299 * r + 0.587 * g + 0.114 * b) \/ 255;\n                el.previewText.style.color = lum > 0.5 ? '#000' : '#fff';\n            }\n\n            function copy(txt, btn) {\n                navigator.clipboard.writeText(txt).then(() => {\n                    const original = btn.textContent;\n                    btn.textContent = '\u30b3\u30d4\u30fc\u5b8c\u4e86\uff01';\n                    setTimeout(() => btn.textContent = original, 1200);\n                });\n            }\n\n            const inputs = [el.rNum, el.gNum, el.bNum, el.rRange, el.gRange, el.bRange];\n            inputs.forEach(i => i.addEventListener('input', () => update(i.type === 'number' ? 'num' : 'range')));\n            el.reset.addEventListener('click', () => { el.rRange.value = 255; el.gRange.value = 255; el.bRange.value = 255; update('range'); });\n            el.copyCmyk.addEventListener('click', () => copy(`${el.cVal.textContent}%, ${el.mVal.textContent}%, ${el.yVal.textContent}%, ${el.kVal.textContent}%`, el.copyCmyk));\n            el.copyCss.addEventListener('click', () => copy(el.css.value, el.copyCss));\n            update('range');\n        });\n    })();\n    <\/script>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30c4\u30fc\u30eb\u306f\u3001WEB\u3084\u30b9\u30de\u30db\u306a\u3069\u306e\u30c7\u30b8\u30bf\u30eb\u753b\u9762\u3067\u4f7f\u308f\u308c\u308b\u300cRGB\u30ab\u30e9\u30fc\u300d\u3092\u3001\u30d1\u30f3\u30d5\u30ec\u30c3\u30c8\u3084\u540d\u523a\u306a\u3069\u306e\u5370\u5237\u306b\u4f7f\u308f\u308c\u308b\u300cCMYK\u30ab\u30e9\u30fc\u300d\u3078\u5909\u63db\u3059\u308b\u30b7\u30df\u30e5\u30ec\u30fc\u30bf\u30fc\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-0\">\u3053\u306e\u30c4\u30fc\u30eb\u3067\u3067\u304d\u308b\u3053\u3068<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>RGB\u5024\uff080\u301c255\uff09\u3092CMYK\u5024\uff080\u301c100%\uff09\u3078\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u5909\u63db<\/li>\n\n\n\n<li>HEX\uff08#\u30ab\u30e9\u30fc\u30b3\u30fc\u30c9\uff09\u304b\u3089CMYK\u3078\u306e\u4e00\u62ec\u5909\u63db<\/li>\n\n\n\n<li>\u30d7\u30ec\u30d3\u30e5\u30fc\u753b\u9762\u3067\u5b9f\u969b\u306e\u8272\u306e\u898b\u3048\u65b9\u3092\u78ba\u8a8d<\/li>\n\n\n\n<li>\u300cdevice-cmyk\u300d\u5f62\u5f0f\u306a\u3069\u3001CSS\u3084\u30c7\u30b6\u30a4\u30f3\u30bd\u30d5\u30c8\u3067\u4f7f\u3048\u308b\u66f8\u5f0f\u306e\u30b3\u30d4\u30fc<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-1\">\u3053\u306e\u30c4\u30fc\u30eb\u3067\u53d6\u5f97\u3059\u308b\u60c5\u5831\u306e\u57fa\u790e\u77e5\u8b58<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>RGB\u3068\u306f<\/strong>: Red\uff08\u8d64\uff09\u3001Green\uff08\u7dd1\uff09\u3001Blue\uff08\u9752\uff09\u306e3\u8272\u3092\u6df7\u305c\u3066\u8272\u3092\u4f5c\u308b\u300c\u52a0\u6cd5\u6df7\u8272\u300d\u3067\u3059\u3002PC\u30e2\u30cb\u30bf\u30fc\u3084\u30b9\u30de\u30db\u306a\u3069\u3001\u5149\u3067\u8272\u3092\u8868\u73fe\u3059\u308b\u30c7\u30d0\u30a4\u30b9\u3067\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>CMYK\u3068\u306f<\/strong>: Cyan\uff08\u30b7\u30a2\u30f3\uff09\u3001Magenta\uff08\u30de\u30bc\u30f3\u30bf\uff09\u3001Yellow\uff08\u30a4\u30a8\u30ed\u30fc\uff09\u3001Key plate\uff08\u9ed2\uff09\u306e4\u8272\u306e\u30a4\u30f3\u30af\u3092\u6df7\u305c\u3066\u8272\u3092\u4f5c\u308b\u300c\u6e1b\u6cd5\u6df7\u8272\u300d\u3067\u3059\u3002\u4e3b\u306b\u30ab\u30e9\u30fc\u5370\u5237\u7269\u3067\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u8272\u306e\u518d\u73fe\u7bc4\u56f2\uff08\u30ac\u30de\u30c3\u30c8\uff09<\/strong>: RGB\u306fCMYK\u3088\u308a\u3082\u8868\u73fe\u3067\u304d\u308b\u8272\u306e\u7bc4\u56f2\u304c\u5e83\u3044\u305f\u3081\u3001\u753b\u9762\u4e0a\u3067\u9bae\u3084\u304b\u306b\u898b\u3048\u3066\u3082\u5370\u5237\u3059\u308b\u3068\u8272\u304c\u304f\u3059\u3093\u3067\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30c4\u30fc\u30eb\u3067\u6570\u5024\u3092\u628a\u63e1\u3059\u308b\u3053\u3068\u3067\u3001\u5370\u5237\u6642\u306e\u30c8\u30e9\u30d6\u30eb\u3092\u9632\u3052\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-2\">\u3053\u306e\u30c4\u30fc\u30eb\u304c\u5f79\u7acb\u3064\u3068\u304d\u306f\u3069\u3093\u306a\u3068\u304d\uff1f\uff08\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\uff09<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>WEB\u30b5\u30a4\u30c8\u3067\u4f7f\u3063\u3066\u3044\u308b\u8272\u3068\u540c\u3058\u8272\u3067\u30c1\u30e9\u30b7\u3084\u540d\u523a\u3092\u4f5c\u308a\u305f\u3044\u3068\u304d<\/li>\n\n\n\n<li>Photoshop\u3084Illustrator\u306a\u3069\u306e\u30c7\u30b6\u30a4\u30f3\u30bd\u30d5\u30c8\u3092\u6301\u3063\u3066\u3044\u306a\u3044\u74b0\u5883\u3067\u3001CMYK\u5024\u3092\u8abf\u3079\u305f\u3044\u3068\u304d<\/li>\n\n\n\n<li>WEB\u4f1a\u8b70\u306e\u8cc7\u6599\u3084\u5199\u771f\u3092\u3001\u5370\u5237\u3057\u305f\u969b\u306e\u8272\u5473\u306b\u8fd1\u3065\u3051\u305f\u3044\u3068\u304d<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-3\">RGB\u3068CMYK\u3092\u5909\u63db\u3059\u308b\u969b\u306e\u6ce8\u610f\u70b9<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c7\u30b8\u30bf\u30eb\u753b\u9762\uff08\u767a\u5149\uff09\u3068\u5370\u5237\u7269\uff08\u53cd\u5c04\uff09\u3067\u306f\u3001\u7269\u7406\u7684\u306b\u8272\u306e\u8868\u73fe\u65b9\u6cd5\u304c\u7570\u306a\u308a\u307e\u3059\u3002<br>\u305d\u306e\u305f\u3081\u3001\u8a08\u7b97\u4e0a\u306e\u5909\u63db\u7d50\u679c\u3068\u5b9f\u969b\u306e\u5370\u5237\u7d50\u679c\u306b\u306f\u82e5\u5e72\u306e\u8aa4\u5dee\u304c\u751f\u3058\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u91cd\u8981\u306a\u5370\u5237\u7269\u306e\u5834\u5408\u306f\u3001\u5fc5\u305a\u8a66\u3057\u5237\u308a\uff08\u8272\u6821\u6b63\uff09\u3092\u884c\u3046\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>RGB \u21d2 CMYK CMYK \u21d2 RGB RGB\u3092\u5165\u529b R G B CMYK \u5909\u63db\u7d50\u679c Preview SAMPLE TEXT C0% M0% Y0% K0% CMYK\u5024\u3092\u30b3\u30d4\u30fc CSS \/ \u30d7\u30ed\u30b0\u30e9\u30e0\u7528\u66f8\u5f0f (dev &#8230; <\/p>\n","protected":false},"author":4,"featured_media":13541,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,56],"tags":[],"class_list":["post-12449","post","type-post","status-publish","format-standard","has-post-thumbnail","category-tool","category-conversion","entry"],"_links":{"self":[{"href":"https:\/\/rakkokeyword.com\/techo\/wp-json\/wp\/v2\/posts\/12449","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rakkokeyword.com\/techo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rakkokeyword.com\/techo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rakkokeyword.com\/techo\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/rakkokeyword.com\/techo\/wp-json\/wp\/v2\/comments?post=12449"}],"version-history":[{"count":0,"href":"https:\/\/rakkokeyword.com\/techo\/wp-json\/wp\/v2\/posts\/12449\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rakkokeyword.com\/techo\/wp-json\/wp\/v2\/media\/13541"}],"wp:attachment":[{"href":"https:\/\/rakkokeyword.com\/techo\/wp-json\/wp\/v2\/media?parent=12449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rakkokeyword.com\/techo\/wp-json\/wp\/v2\/categories?post=12449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rakkokeyword.com\/techo\/wp-json\/wp\/v2\/tags?post=12449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}