{"id":100,"date":"2026-09-02T18:40:36","date_gmt":"2026-09-02T09:40:36","guid":{"rendered":"https:\/\/motoki-design.co.jp\/tools\/contrast-check\/"},"modified":"2026-09-02T18:50:17","modified_gmt":"2026-09-02T09:50:17","slug":"contrast-check","status":"publish","type":"page","link":"https:\/\/motoki-design.co.jp\/tools\/contrast-check\/","title":{"rendered":"\u30ab\u30e9\u30fc\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\u5224\u5b9a\u30c4\u30fc\u30eb"},"content":{"rendered":"\n<div id=\"wt-contrast\" class=\"wt-tool\">\n\t<p class=\"wt-lead\">\u6587\u5b57\u8272\u3068\u80cc\u666f\u8272\u3092\u9078\u3076\u3060\u3051\u3067\u3001<strong>\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\u6bd4\u3068WCAG\uff08\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u57fa\u6e96\uff09\u306e\u5408\u5426<\/strong>\u3092\u5224\u5b9a\u3057\u307e\u3059\u3002\u57fa\u6e96\u3092\u6e80\u305f\u3055\u306a\u3044\u5834\u5408\u306f<strong>\u5408\u683c\u3059\u308b\u8272\u3092\u81ea\u52d5\u3067\u63d0\u6848<\/strong>\u3059\u308b\u306e\u3067\u3001\u30c7\u30b6\u30a4\u30f3\u306e\u96f0\u56f2\u6c17\u3092\u4fdd\u3063\u305f\u307e\u307e\u8abf\u6574\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\t<div class=\"wt-policy\" style=\"border-color:#cfe3cf;background:#f3faf3;margin-top:0\">\n\t\t<p class=\"wt-policy-title\">\ud83d\udd12 \u3053\u306e\u51e6\u7406\u306f\u30d6\u30e9\u30a6\u30b6\u306e\u4e2d\u3060\u3051\u3067\u5b8c\u7d50\u3057\u307e\u3059<\/p>\n\t\t<ul>\n\t\t\t<li>\u5165\u529b\u3057\u305f\u8272\u306f\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3055\u308c\u307e\u305b\u3093\u3002\u8a08\u7b97\u306f\u3059\u3079\u3066\u304a\u4f7f\u3044\u306e\u30d6\u30e9\u30a6\u30b6\u306e\u4e2d\u3067\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/li>\n\t\t<\/ul>\n\t<\/div>\n\n\t<form class=\"wt-form\" style=\"margin-top:1.2em\" onsubmit=\"return false\">\n\t\t<div class=\"wt-fields\">\n\t\t\t<div class=\"wt-field\">\n\t\t\t\t<label for=\"wt-ct-fg\">\u6587\u5b57\u8272<\/label>\n\t\t\t\t<input type=\"color\" id=\"wt-ct-fg\" value=\"#6b7684\">\n\t\t\t<\/div>\n\t\t\t<div class=\"wt-field\">\n\t\t\t\t<label for=\"wt-ct-fgh\">\u6587\u5b57\u8272\uff08\u30b3\u30fc\u30c9\uff09<\/label>\n\t\t\t\t<input type=\"text\" id=\"wt-ct-fgh\" value=\"#6b7684\" spellcheck=\"false\">\n\t\t\t<\/div>\n\t\t\t<div class=\"wt-field\">\n\t\t\t\t<label for=\"wt-ct-bg\">\u80cc\u666f\u8272<\/label>\n\t\t\t\t<input type=\"color\" id=\"wt-ct-bg\" value=\"#ffffff\">\n\t\t\t<\/div>\n\t\t\t<div class=\"wt-field\">\n\t\t\t\t<label for=\"wt-ct-bgh\">\u80cc\u666f\u8272\uff08\u30b3\u30fc\u30c9\uff09<\/label>\n\t\t\t\t<input type=\"text\" id=\"wt-ct-bgh\" value=\"#ffffff\" spellcheck=\"false\">\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<div class=\"wt-row\" style=\"margin-top:.9em\">\n\t\t\t<button class=\"wt-btn\" type=\"button\" id=\"wt-ct-swap\" style=\"background:#6b7684\">\u6587\u5b57\u8272\u3068\u80cc\u666f\u8272\u3092\u5165\u308c\u66ff\u3048\u308b<\/button>\n\t\t<\/div>\n\t<\/form>\n\n\t<div class=\"wt-result\" hidden><\/div>\n\n\t<div class=\"wt-disclaimer\">\n\t\t<strong>\u57fa\u6e96\u306b\u3064\u3044\u3066<\/strong><br>\n\t\tWCAG 2.1 \u3067\u306f\u3001<strong>\u901a\u5e38\u306e\u6587\u5b57\u306f\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\u6bd4 4.5:1 \u4ee5\u4e0a\uff08AA\uff09<\/strong>\u3001\u5927\u304d\u3044\u6587\u5b57\uff0818pt\u225224px\u4ee5\u4e0a\u3001\u307e\u305f\u306f\u592a\u5b5714pt\u225218.66px\u4ee5\u4e0a\uff09\u306f 3:1 \u4ee5\u4e0a\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002\u3088\u308a\u53b3\u3057\u3044 AAA \u306f\u901a\u5e38\u6587\u5b57\u3067 7:1\u3001\u5927\u304d\u3044\u6587\u5b57\u3067 4.5:1 \u3067\u3059\u3002\u30dc\u30bf\u30f3\u306e\u67a0\u7dda\u3084\u30a2\u30a4\u30b3\u30f3\u306a\u3069<strong>\u6587\u5b57\u4ee5\u5916\u306eUI\u90e8\u54c1\u3082 3:1 \u4ee5\u4e0a<\/strong>\u304c\u5fc5\u8981\u3067\u3059\u3002\u65e5\u672c\u3067\u306f\u300c\u307f\u3093\u306a\u306e\u516c\u5171\u30b5\u30a4\u30c8\u904b\u7528\u30ac\u30a4\u30c9\u30e9\u30a4\u30f3\u300d\u3067JIS X 8341-3\uff08WCAG 2.0\u76f8\u5f53\uff09\u306eAA\u6e96\u62e0\u304c\u63a8\u5968\u3055\u308c\u3066\u304a\u308a\u3001\u516c\u5171\u30fb\u81ea\u6cbb\u4f53\u6848\u4ef6\u3067\u306f\u5b9f\u8cea\u7684\u306a\u8981\u4ef6\u306b\u306a\u308a\u307e\u3059\u3002\n\t<\/div>\n\n\t<div class=\"wt-faq\">\n\t\t<details>\n\t\t\t<summary>\u8584\u3044\u30b0\u30ec\u30fc\u306e\u6587\u5b57\u306f\u306a\u305c\u554f\u984c\u306a\u306e\u3067\u3059\u304b\uff1f<\/summary>\n\t\t\t<p>\u30c7\u30b6\u30a4\u30f3\u4e0a\u306f\u4e0a\u54c1\u306b\u898b\u3048\u3066\u3082\u3001<strong>\u9ad8\u9f62\u306e\u65b9\u30fb\u8996\u529b\u306e\u5f31\u3044\u65b9\u30fb\u5c4b\u5916\u3067\u30b9\u30de\u30db\u3092\u898b\u3066\u3044\u308b\u4eba\u306b\u306f\u8aad\u3081\u306a\u304f\u306a\u308a\u307e\u3059<\/strong>\u3002\u767d\u80cc\u666f\u306b <code>#999999<\/code> \u306e\u30b0\u30ec\u30fc\u306f\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\u6bd42.85\u3067\u3001AA\u306e4.5\u306b\u5c4a\u304d\u307e\u305b\u3093\u3002\u88dc\u8db3\u30c6\u30ad\u30b9\u30c8\u3084\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u30fc\u306b\u3088\u304f\u4f7f\u308f\u308c\u308b\u8272\u3067\u3059\u304c\u3001\u8aad\u3081\u306a\u304f\u3066\u3088\u3044\u6587\u5b57\u306f\u305d\u3082\u305d\u3082\u8868\u793a\u3059\u308b\u610f\u5473\u304c\u306a\u3044\u3001\u3068\u3044\u3046\u8003\u3048\u65b9\u3092\u3059\u308b\u3068\u3088\u3044\u3067\u3059\u3002<\/p>\n\t\t<\/details>\n\t\t<details>\n\t\t\t<summary>\u30d6\u30e9\u30f3\u30c9\u30ab\u30e9\u30fc\u304c\u57fa\u6e96\u3092\u6e80\u305f\u3057\u307e\u305b\u3093<\/summary>\n\t\t\t<p>\u3088\u304f\u3042\u308b\u60a9\u307f\u3067\u3059\u3002\u73fe\u5b9f\u7684\u306a\u5bfe\u51e6\u306f3\u3064\u3042\u308a\u307e\u3059\u3002(1) <strong>\u305d\u306e\u30d6\u30e9\u30f3\u30c9\u30ab\u30e9\u30fc\u306f\u9762\u7a4d\u306e\u5927\u304d\u3044\u80cc\u666f\u3084\u898b\u51fa\u3057\u306b\u4f7f\u3044\u3001\u672c\u6587\u306e\u6587\u5b57\u8272\u306b\u306f\u4f7f\u308f\u306a\u3044<\/strong>\u3001(2) \u6587\u5b57\u306b\u4f7f\u3046\u7528\u306e\u300c\u6fc3\u3044\u3081\u306e\u6d3e\u751f\u8272\u300d\u3092\u30d6\u30e9\u30f3\u30c9\u30ab\u30e9\u30fc\u3068\u306f\u5225\u306b\u5b9a\u7fa9\u3059\u308b\u3001(3) \u767d\u629c\u304d\u6587\u5b57\u306b\u3067\u304d\u308b\u6fc3\u3055\u307e\u3067\u843d\u3068\u3059\u3002\u591a\u304f\u306e\u4f01\u696d\u304c\u30d6\u30e9\u30f3\u30c9\u30ab\u30e9\u30fc\u3068\u306f\u5225\u306b\u300c\u30c6\u30ad\u30b9\u30c8\u7528\u306e\u8272\u300d\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\t\t<\/details>\n\t\t<details>\n\t\t\t<summary>\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\u6bd4\u306f\u3069\u3046\u8a08\u7b97\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3059\u304b\uff1f<\/summary>\n\t\t\t<p>\u5404\u8272\u306e\u76f8\u5bfe\u8f1d\u5ea6\uff08\u4eba\u9593\u306e\u76ee\u306e\u611f\u3058\u65b9\u306b\u5408\u308f\u305b\u3066RGB\u3092\u91cd\u307f\u4ed8\u3051\u3057\u305f\u660e\u308b\u3055\uff09\u3092\u6c42\u3081\u3001<code>(\u660e\u308b\u3044\u65b9 + 0.05) \u00f7 (\u6697\u3044\u65b9 + 0.05)<\/code> \u3067\u7b97\u51fa\u3057\u307e\u3059\u30021:1\uff08\u540c\u3058\u8272\uff09\u304b\u308921:1\uff08\u9ed2\u3068\u767d\uff09\u306e\u7bc4\u56f2\u306b\u306a\u308a\u307e\u3059\u3002\u5358\u7d14\u306a\u660e\u5ea6\u5dee\u3067\u306f\u306a\u304f\u3001<strong>\u7dd1\u304c\u660e\u308b\u304f\u3001\u9752\u304c\u6697\u304f\u8a55\u4fa1\u3055\u308c\u308b<\/strong>\u306e\u304c\u7279\u5fb4\u3067\u3059\u3002<\/p>\n\t\t<\/details>\n\t<\/div>\n<\/div>\n\n<div class=\"wt-tool\"><div class=\"wt-policy\"><p class=\"wt-policy-title\">\ud83d\udd12 \u8abf\u3079\u305f\u5185\u5bb9\u306f\u8a18\u9332\u30fb\u516c\u958b\u3057\u307e\u305b\u3093<\/p><ul><li><strong>\u691c\u7d22\u3057\u305f\u5185\u5bb9\u3092\u4fdd\u5b58\u30fb\u4e00\u89a7\u5316\u30fb\u516c\u958b\u3057\u307e\u305b\u3093\u3002<\/strong>\u8abf\u67fb\u7d50\u679c\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5316\u3057\u3066\u691c\u7d22\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u308a\u3001\u4ed6\u306e\u5229\u7528\u8005\u306b\u898b\u305b\u305f\u308a\u3059\u308b\u3053\u3068\u306f\u4e00\u5207\u3042\u308a\u307e\u305b\u3093\u3002<\/li><li><strong>\u691c\u7d22\u5c65\u6b74\u3092\u6b8b\u3057\u307e\u305b\u3093\u3002<\/strong>\u8ab0\u304c\u4f55\u3092\u8abf\u3079\u305f\u304b\u3092\u7d10\u3065\u3051\u3066\u84c4\u7a4d\u3059\u308b\u3053\u3068\u306f\u3057\u307e\u305b\u3093\u3002\u4f1a\u54e1\u767b\u9332\u30fb\u30ed\u30b0\u30a4\u30f3\u3082\u4e0d\u8981\u3067\u3059\u3002<\/li><li><strong>\u7b2c\u4e09\u8005\u306b\u63d0\u4f9b\u30fb\u8ca9\u58f2\u3057\u307e\u305b\u3093\u3002<\/strong>\u55b6\u696d\u30ea\u30b9\u30c8\u3084\u5e83\u544a\u76ee\u7684\u3067\u306e\u5229\u7528\u3082\u3042\u308a\u307e\u305b\u3093\u3002<\/li><li>\u30b5\u30fc\u30d0\u30fc\u8ca0\u8377\u3092\u6291\u3048\u308b\u305f\u3081\u3001<strong>\u5224\u5b9a\u7d50\u679c\u306e\u307f\u6700\u59271\u6642\u9593\u306e\u4e00\u6642\u30ad\u30e3\u30c3\u30b7\u30e5<\/strong>\u306b\u4fdd\u6301\u3057\u3001\u6642\u9593\u306e\u7d4c\u904e\u3067\u81ea\u52d5\u7684\u306b\u6d88\u3048\u307e\u3059\u3002\u9023\u7d9a\u30a2\u30af\u30bb\u30b9\u306e\u5236\u9650\u7528\u306bIP\u30a2\u30c9\u30ec\u30b9\u3092<strong>\u30cf\u30c3\u30b7\u30e5\u5316\u3057\u305f\u5024<\/strong>\u3092\u6700\u592710\u5206\u9593\u3060\u3051\u4fdd\u6301\u3057\u307e\u3059\uff08\u5143\u306eIP\u30a2\u30c9\u30ec\u30b9\u306f\u4fdd\u5b58\u3057\u307e\u305b\u3093\uff09\u3002<\/li><li>\u8abf\u3079\u305f\u5bfe\u8c61\u306f\u5171\u6709\u7528\u306bURL\u306e<code>#<\/code>\u4ee5\u964d\u306b\u4ed8\u304d\u307e\u3059\u304c\u3001\u3053\u306e\u90e8\u5206\u306f\u30b5\u30fc\u30d0\u30fc\u306b\u3082\u30a2\u30af\u30bb\u30b9\u89e3\u6790\u306b\u3082\u9001\u4fe1\u3055\u308c\u307e\u305b\u3093\u3002<\/li><\/ul><\/div><\/div>\n\n<script>\n(function () {\n\tvar root = document.getElementById('wt-contrast');\n\tif (!root || !window.WT) return;\n\tvar W = WT;\n\tvar resultBox = root.querySelector('.wt-result');\n\n\tfunction toRgb(hex) {\n\t\tvar m = String(hex).trim().replace(\/^#\/, '');\n\t\tif (m.length === 3) m = m[0] + m[0] + m[1] + m[1] + m[2] + m[2];\n\t\tif (!\/^[0-9a-f]{6}$\/i.test(m)) return null;\n\t\treturn [parseInt(m.slice(0, 2), 16), parseInt(m.slice(2, 4), 16), parseInt(m.slice(4, 6), 16)];\n\t}\n\tfunction toHex(rgb) {\n\t\treturn '#' + rgb.map(function (v) {\n\t\t\treturn Math.max(0, Math.min(255, Math.round(v))).toString(16).padStart(2, '0');\n\t\t}).join('');\n\t}\n\t\/\/ \u76f8\u5bfe\u8f1d\u5ea6\uff08WCAG\u306e\u5b9a\u7fa9\uff09\n\tfunction luminance(rgb) {\n\t\tvar a = rgb.map(function (v) {\n\t\t\tv \/= 255;\n\t\t\treturn v <= 0.03928 ? v \/ 12.92 : Math.pow((v + 0.055) \/ 1.055, 2.4);\n\t\t});\n\t\treturn 0.2126 * a[0] + 0.7152 * a[1] + 0.0722 * a[2];\n\t}\n\tfunction ratio(a, b) {\n\t\tvar l1 = luminance(a), l2 = luminance(b);\n\t\treturn (Math.max(l1, l2) + 0.05) \/ (Math.min(l1, l2) + 0.05);\n\t}\n\t\/\/ \u660e\u308b\u3055\u3060\u3051\u3092\u52d5\u304b\u3057\u3066\u57fa\u6e96\u3092\u6e80\u305f\u3059\u8272\u3092\u63a2\u3059\n\tfunction adjust(fg, bg, target) {\n\t\tvar toDark = luminance(bg) > 0.5;\n\t\tvar best = null;\n\t\tfor (var step = 0; step <= 100; step++) {\n\t\t\tvar t = step \/ 100;\n\t\t\tvar candidate = fg.map(function (v) { return toDark ? v * (1 - t) : v + (255 - v) * t; });\n\t\t\tif (ratio(candidate, bg) >= target) { best = candidate; break; }\n\t\t}\n\t\treturn best;\n\t}\n\n\tfunction render() {\n\t\tvar fg = toRgb(document.getElementById('wt-ct-fgh').value);\n\t\tvar bg = toRgb(document.getElementById('wt-ct-bgh').value);\n\t\tif (!fg || !bg) {\n\t\t\tresultBox.innerHTML = '<div class=\"wt-status is-error\">\u8272\u30b3\u30fc\u30c9\u306e\u5f62\u5f0f\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\uff08\u4f8b\uff1a#1769d3\uff09\u3002<\/div>';\n\t\t\tresultBox.hidden = false;\n\t\t\treturn;\n\t\t}\n\n\t\tvar r = ratio(fg, bg);\n\t\tvar rounded = Math.round(r * 100) \/ 100;\n\t\tvar fgHex = toHex(fg), bgHex = toHex(bg);\n\n\t\tvar levels = [\n\t\t\t{ label: '\u901a\u5e38\u306e\u6587\u5b57\uff08AA\uff09', need: 4.5, note: '\u672c\u6587\u30fb\u30ad\u30e3\u30d7\u30b7\u30e7\u30f3\u306a\u306924px\u672a\u6e80\u306e\u6587\u5b57' },\n\t\t\t{ label: '\u5927\u304d\u3044\u6587\u5b57\uff08AA\uff09', need: 3, note: '24px\u4ee5\u4e0a\u3001\u307e\u305f\u306f\u592a\u5b5718.66px\u4ee5\u4e0a' },\n\t\t\t{ label: '\u901a\u5e38\u306e\u6587\u5b57\uff08AAA\uff09', need: 7, note: '\u3088\u308a\u53b3\u3057\u3044\u57fa\u6e96' },\n\t\t\t{ label: '\u5927\u304d\u3044\u6587\u5b57\uff08AAA\uff09', need: 4.5, note: '' },\n\t\t\t{ label: 'UI\u90e8\u54c1\u30fb\u56f3\uff08AA\uff09', need: 3, note: '\u30dc\u30bf\u30f3\u306e\u67a0\u7dda\u30fb\u30a2\u30a4\u30b3\u30f3\u30fb\u30b0\u30e9\u30d5\u306a\u3069' }\n\t\t];\n\n\t\tvar passAA = r >= 4.5;\n\t\tvar status = passAA ? 'ok' : (r >= 3 ? 'warn' : 'ng');\n\t\tvar title = passAA ? '\u901a\u5e38\u306e\u6587\u5b57\u3067\u3082AA\u3092\u6e80\u305f\u3057\u3066\u3044\u307e\u3059'\n\t\t\t: (r >= 3 ? '\u5927\u304d\u3044\u6587\u5b57\u306a\u3089\u4f7f\u3048\u307e\u3059\u304c\u3001\u672c\u6587\u306b\u306f\u4e0d\u8db3\u3067\u3059' : '\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\u304c\u8db3\u308a\u307e\u305b\u3093');\n\n\t\tvar html = W.head(status, '\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\u6bd4', '<span style=\"font-size:1.3em\">' + rounded + ' : 1<\/span>', [title]);\n\n\t\t\/\/ \u30d7\u30ec\u30d3\u30e5\u30fc\n\t\thtml += '<h3 class=\"wt-h\">\u898b\u3048\u65b9<\/h3>';\n\t\thtml += '<div class=\"wt-swatch\" style=\"background:' + bgHex + ';color:' + fgHex + ';flex-direction:column;gap:.5em\">';\n\t\thtml += '<span style=\"font-size:1.6em\">\u5927\u304d\u3044\u6587\u5b57\u306e\u30b5\u30f3\u30d7\u30eb 24px<\/span>';\n\t\thtml += '<span style=\"font-size:1em;font-weight:400\">\u901a\u5e38\u306e\u6587\u5b57\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002\u3053\u306e\u6587\u7ae0\u304c\u554f\u984c\u306a\u304f\u8aad\u3081\u308b\u304b\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/span>';\n\t\thtml += '<span style=\"font-size:.82em;font-weight:400\">\u5c0f\u3055\u3081\u306e\u88dc\u8db3\u30c6\u30ad\u30b9\u30c8 13px<\/span>';\n\t\thtml += '<\/div>';\n\n\t\thtml += '<h3 class=\"wt-h\">\u57fa\u6e96\u3054\u3068\u306e\u5224\u5b9a<\/h3>';\n\t\thtml += W.checks(levels.map(function (l) {\n\t\t\treturn {\n\t\t\t\tstatus: r >= l.need ? 'ok' : 'ng',\n\t\t\t\ttitle: l.label + '\uff1a' + (r >= l.need ? '\u5408\u683c' : '\u4e0d\u5408\u683c') + '\uff08\u5fc5\u8981 ' + l.need + ':1 \/ \u73fe\u5728 ' + rounded + ':1\uff09',\n\t\t\t\tnote: l.note\n\t\t\t};\n\t\t}));\n\n\t\t\/\/ \u6539\u5584\u63d0\u6848\n\t\tif (!passAA) {\n\t\t\tvar fixed = adjust(fg, bg, 4.5);\n\t\t\tvar fixedLarge = adjust(fg, bg, 3);\n\t\t\thtml += '<h3 class=\"wt-h\">\u5408\u683c\u3059\u308b\u8272\u306e\u63d0\u6848<\/h3>';\n\t\t\thtml += '<p class=\"wt-note\" style=\"margin:0 0 .8em\">\u8272\u307f\u306f\u4fdd\u3063\u305f\u307e\u307e\u3001\u660e\u308b\u3055\u3060\u3051\u3092\u8abf\u6574\u3057\u305f\u8272\u3067\u3059\u3002<\/p>';\n\t\t\thtml += '<div class=\"wt-cards\">';\n\t\t\tif (fixed) {\n\t\t\t\thtml += '<div class=\"wt-card\"><dl><dt>\u901a\u5e38\u306e\u6587\u5b57\u3067AA\u3092\u6e80\u305f\u3059\u6587\u5b57\u8272<\/dt><dd>' +\n\t\t\t\t\t'<span class=\"wt-mono\">' + toHex(fixed) + '<\/span>' +\n\t\t\t\t\t'<div class=\"wt-swatch\" style=\"margin-top:.5em;background:' + bgHex + ';color:' + toHex(fixed) + ';padding:.9em;font-size:.9em\">\u30b5\u30f3\u30d7\u30eb\u30c6\u30ad\u30b9\u30c8\uff08' + (Math.round(ratio(fixed, bg) * 100) \/ 100) + ':1\uff09<\/div>' +\n\t\t\t\t\t'<\/dd><\/dl><\/div>';\n\t\t\t}\n\t\t\tif (fixedLarge) {\n\t\t\t\thtml += '<div class=\"wt-card\"><dl><dt>\u5927\u304d\u3044\u6587\u5b57\u3067AA\u3092\u6e80\u305f\u3059\u6587\u5b57\u8272<\/dt><dd>' +\n\t\t\t\t\t'<span class=\"wt-mono\">' + toHex(fixedLarge) + '<\/span>' +\n\t\t\t\t\t'<div class=\"wt-swatch\" style=\"margin-top:.5em;background:' + bgHex + ';color:' + toHex(fixedLarge) + ';padding:.9em;font-size:1.1em\">\u30b5\u30f3\u30d7\u30eb\uff08' + (Math.round(ratio(fixedLarge, bg) * 100) \/ 100) + ':1\uff09<\/div>' +\n\t\t\t\t\t'<\/dd><\/dl><\/div>';\n\t\t\t}\n\t\t\thtml += '<\/div>';\n\t\t\tif (fixed) {\n\t\t\t\thtml += '<div class=\"wt-toolbar\" style=\"margin-top:.8em\"><button type=\"button\" class=\"wt-mini\" id=\"wt-ct-apply\">\u63d0\u6848\u3055\u308c\u305f\u8272\u3092\u53cd\u6620\u3059\u308b<\/button>' +\n\t\t\t\t\t'<button type=\"button\" class=\"wt-mini\" id=\"wt-ct-copy\">' + toHex(fixed) + ' \u3092\u30b3\u30d4\u30fc<\/button><\/div>';\n\t\t\t}\n\t\t}\n\n\t\thtml += '<h3 class=\"wt-h\">CSS<\/h3>';\n\t\thtml += '<div class=\"wt-toolbar\"><button type=\"button\" class=\"wt-mini\" id=\"wt-ct-copycss\">\u30b3\u30d4\u30fc<\/button><\/div>';\n\t\tvar css = 'color: ' + fgHex + ';\\nbackground-color: ' + bgHex + ';';\n\t\thtml += '<pre class=\"wt-code\">' + W.esc(css) + '<\/pre>';\n\n\t\tresultBox.innerHTML = html;\n\t\tresultBox.hidden = false;\n\n\t\tvar copyBtn = document.getElementById('wt-ct-copy');\n\t\tif (copyBtn) {\n\t\t\tcopyBtn.addEventListener('click', function () { W.copy(toHex(adjust(fg, bg, 4.5)), this); });\n\t\t}\n\t\tvar applyBtn = document.getElementById('wt-ct-apply');\n\t\tif (applyBtn) {\n\t\t\tapplyBtn.addEventListener('click', function () {\n\t\t\t\tvar hex = toHex(adjust(fg, bg, 4.5));\n\t\t\t\tdocument.getElementById('wt-ct-fgh').value = hex;\n\t\t\t\tdocument.getElementById('wt-ct-fg').value = hex;\n\t\t\t\trender();\n\t\t\t});\n\t\t}\n\t\tdocument.getElementById('wt-ct-copycss').addEventListener('click', function () { W.copy(css, this); });\n\t}\n\n\t\/\/ \u30ab\u30e9\u30fc\u30d4\u30c3\u30ab\u30fc\u3068\u30b3\u30fc\u30c9\u5165\u529b\u3092\u76f8\u4e92\u306b\u540c\u671f\u3055\u305b\u308b\n\tfunction link(pickerId, hexId) {\n\t\tvar picker = document.getElementById(pickerId), hex = document.getElementById(hexId);\n\t\tpicker.addEventListener('input', function () { hex.value = picker.value; render(); });\n\t\thex.addEventListener('input', function () {\n\t\t\tvar rgb = toRgb(hex.value);\n\t\t\tif (rgb) picker.value = toHex(rgb);\n\t\t\trender();\n\t\t});\n\t}\n\tlink('wt-ct-fg', 'wt-ct-fgh');\n\tlink('wt-ct-bg', 'wt-ct-bgh');\n\n\tdocument.getElementById('wt-ct-swap').addEventListener('click', function () {\n\t\tvar fg = document.getElementById('wt-ct-fgh'), bg = document.getElementById('wt-ct-bgh');\n\t\tvar tmp = fg.value; fg.value = bg.value; bg.value = tmp;\n\t\tdocument.getElementById('wt-ct-fg').value = fg.value;\n\t\tdocument.getElementById('wt-ct-bg').value = bg.value;\n\t\trender();\n\t});\n\n\trender();\n})();\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u5b57\u8272\u3068\u80cc\u666f\u8272\u3092\u9078\u3076\u3060\u3051\u3067\u3001\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\u6bd4\u3068WCAG\uff08\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u57fa\u6e96\uff09\u306e\u5408\u5426\u3092\u5224\u5b9a\u3057\u307e\u3059\u3002\u57fa\u6e96\u3092\u6e80\u305f\u3055\u306a\u3044\u5834\u5408\u306f\u5408\u683c\u3059\u308b\u8272\u3092\u81ea\u52d5\u3067\u63d0\u6848\u3059\u308b\u306e\u3067\u3001\u30c7\u30b6\u30a4\u30f3\u306e\u96f0\u56f2\u6c17\u3092\u4fdd\u3063\u305f\u307e\u307e\u8abf\u6574\u3067\u304d\u307e\u3059\u3002 \ud83d\udd12 \u3053\u306e\u51e6\u7406\u306f\u30d6\u30e9\u30a6\u30b6\u306e\u4e2d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"swell_btn_cv_data":"","ssp_meta_description":"\u6587\u5b57\u8272\u3068\u80cc\u666f\u8272\u3092\u9078\u3076\u3060\u3051\u3067\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\u6bd4\u3092\u8a08\u7b97\u3057\u3001WCAG\uff08AA\u30fbAAA\uff09\u306e\u5408\u5426\u3092\u5224\u5b9a\u3057\u307e\u3059\u3002\u57fa\u6e96\u3092\u6e80\u305f\u3055\u306a\u3044\u5834\u5408\u306f\u8272\u307f\u3092\u4fdd\u3063\u305f\u307e\u307e\u5408\u683c\u3059\u308b\u8272\u3092\u81ea\u52d5\u63d0\u6848\u3002\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u5bfe\u5fdc\u306b\u3002\u4f1a\u54e1\u767b\u9332\u4e0d\u8981\u3002","ssp_meta_title":"\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\u6bd4\u30c1\u30a7\u30c3\u30af\uff5cWCAG\u5224\u5b9a\u3068\u6539\u5584\u8272\u3092\u7121\u6599\u63d0\u6848","ssp_meta_robots":"","ssp_meta_canonical":"","ssp_meta_image":"","ssp_meta_keyword":"","footnotes":""},"class_list":["post-100","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/pages\/100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/comments?post=100"}],"version-history":[{"count":1,"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/pages\/100\/revisions"}],"predecessor-version":[{"id":107,"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/pages\/100\/revisions\/107"}],"wp:attachment":[{"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/media?parent=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}