首页Home › 颜色工具Color Tools

🎨 Web 安全色(216 色表与最接近的安全色)Web Safe Colors

查看全部 216 种 Web 安全色(每个通道取 00、33、66、99、CC、FF),点击即可复制 HEX;输入任意颜色(HEX、RGB 或取色器),找出最接近的 Web 安全色并显示差值和三位简写。Browse all 216 web-safe colors (each channel 00, 33, 66, 99, CC or FF) and click one to copy its HEX, or enter any color (HEX, RGB or the picker) to find the nearest web-safe color with its difference and 3-digit shorthand.

使用说明与常见问题How-to & FAQ

「Web 安全色(216 色表与最接近的安全色)」是什么?What is the Web Safe Colors tool?

查看全部 216 种 Web 安全色(每个通道取 00、33、66、99、CC、FF),点击即可复制 HEX;输入任意颜色(HEX、RGB 或取色器),找出最接近的 Web 安全色并显示差值和三位简写。Browse all 216 web-safe colors (each channel 00, 33, 66, 99, CC or FF) and click one to copy its HEX, or enter any color (HEX, RGB or the picker) to find the nearest web-safe color with its difference and 3-digit shorthand.

如何使用「Web 安全色(216 色表与最接近的安全色)」?How do I use the Web Safe Colors tool?

在「Web 安全色(216 色表与最接近的安全色)」中,在上方填写或选择所需内容,结果会实时显示在下方;所有处理都在浏览器本地完成。In the Web Safe Colors: Fill in or choose the options above and the result appears below instantly; everything runs locally in your browser.

什么是 Web 安全色?What are web-safe colors?

Web 安全色是 1990 年代为 256 色(8 位)显示器定下的 216 种颜色:红、绿、蓝每个通道只取 0、51、102、153、204、255(十六进制 00、33、66、99、CC、FF)六个值,6 × 6 × 6 = 216。当时这些颜色在 Windows 和 Mac 的系统调色板里都存在,显示时不会被抖动。Web-safe colors are the 216 colors defined in the 1990s for 256-color (8-bit) displays: each of red, green and blue takes only the six values 0, 51, 102, 153, 204 and 255 (hex 00, 33, 66, 99, CC, FF), and 6 × 6 × 6 = 216. Those colors existed in both the Windows and Mac system palettes, so they displayed without dithering.

现在还需要用 Web 安全色吗?Do I still need web-safe colors?

一般不需要。如今几乎所有屏幕都是 24 位真彩色,任何颜色都能准确显示。Web 安全色现在主要用于复古像素风格、极简调色板、需要三位简写 HEX(如 #36C)的场合,或者给只支持少量颜色的设备和格式(如低色数 GIF)选色。Usually not. Practically every screen today is 24-bit true color and shows any color accurately. Web-safe colors are now mostly used for retro or pixel-art looks, very small palettes, places where a 3-digit HEX shorthand such as #36C is wanted, or for devices and formats limited to few colors (such as low-color GIFs).

最接近的安全色是怎么算的?How is the nearest web-safe color found?

每个通道分别取最接近的 51 的倍数(0、51、102、153、204、255),即四舍五入 值 ÷ 51;这在 RGB 空间里正好是欧氏距离最近的安全色。通道值是整数,每个通道最多相差 25,所以 RGB 距离最大约 43.3。结果显示 ΔR/ΔG/ΔB,正值表示安全色更亮。Each channel is rounded separately to the nearest multiple of 51 (0, 51, 102, 153, 204, 255), i.e. round(value ÷ 51); in RGB space that is exactly the closest web-safe color by Euclidean distance. Channel values are whole numbers, so each channel moves by at most 25 and the RGB distance is at most about 43.3. The result shows ΔR/ΔG/ΔB, where a positive value means the web-safe color is brighter in that channel.

可以输入哪些格式?Which formats can I enter?

#RRGGBB、#RGB(# 可省略)、rgb(r, g, b) 或 rgba(…)(透明度会被忽略),也可以直接写三个数,如 58 123 213;通道值 0–255,或用 0%–100%。也可以用取色器选色。点击色表中的任意格子会复制它的 HEX。#RRGGBB, #RGB (the # is optional), rgb(r, g, b) or rgba(…) (alpha is ignored), or just three numbers such as 58 123 213; channels are 0–255 or 0%–100%. You can also use the picker. Clicking any cell in the chart copies its HEX.

「Web 安全色(216 色表与最接近的安全色)」免费吗?需要注册吗?Is the Web Safe Colors free? Do I need an account?

「Web 安全色(216 色表与最接近的安全色)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Web Safe Colors is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.

相关工具Related tools

🎨 颜色转换器Color Converter (HEX/RGB/HSL)🌓 颜色对比度检测Color Contrast Checker (WCAG)🌈 颜色深浅色阶生成Color Shades & Tints Generator🎨 配色方案生成器Color Palette Generator🎲 随机颜色生成器Random Color Generator🧪 颜色混合器Color Mixer🖨️ RGB 与 CMYK 互转RGB to CMYK Converter🏷️ 颜色名称查询(最接近的 CSS 颜色名)Color Name Finder🌡️ 色温转 RGB(开尔文)Color Temperature to RGB (Kelvin)🎨 HEX 转 RGBHEX to RGB Converter🎨 RGB 转 HEXRGB to HEX Converter🔃 颜色反转(反色计算器)Invert Colors

← 全部工具All tools