a11y.skipToMainContent
1

RGB 到 HEX 转换器

在RGB,HEX,HSL和RGBA色彩格式之间进行转换,并预览活色. 以任何格式输入一个值,并立即看到所有转换.

#2563EB

R
37
G
99
B
235
Was this tool helpful?
Send output to:
Advertisement

How to use RGB to HEX Converter

  1. 在HEX,RGB,RGBA或HSL格式中输入颜色值.
  2. 或用取色相相相和滑相相相.
  3. 所有格式的产出都实时更新.
  4. 复制所需的格式.

{姓名}是什么来着?

这个色彩转换器支持四种格式:HEX(#FF5733),RGB(255,87,51),RGBA(255,87,51,1)和HSL(14,100%,60%). 以任何格式输入一个值, 其他则自动更新 。

包括活色表预览,本地取色器,以及用于视觉色彩调整的RGB滑行器. 用一击复制任意格式。

Advertisement

FAQ

RGB和RGBA有什么区别?
RGB有三个频道(红色,绿色,蓝色). RGBA为透明增加了一个α通道(0=完全透明,1=完全不透明).
什么是HSL吗?
HSL代表Hue(彩色轮子位置,0-360°),饱和度(活度,0-100%)和光度(亮度,0-100%). 色彩选择往往比RGB更直观.

Related tools

Author

MW
Marcus Webb"The DevTool Craftsman"

Full-Stack Developer & Tools Architect

Marcus has been writing code since the dial-up era. He has contributed to open-source developer tools, built CI/CD pipelines for startups, and debugged production incidents at 3 AM more times than he would like to admit. His philosophy is that the best developer tool is the one that gets out of your way, and he writes about practical tooling that helps teams ship faster with fewer headaches.

← Back to Developer Tools · All tags

Last updated:

Advertisement