RGB 转 HEX — Uttir
Skip to main content

RGB 转 HEX

将 RGB 值(0–255)转换为 HEX 颜色代码。

RGB 转 HEX — Enter red, green, and blue channel values from 0 to 255 and get the matching HEX code, ready to paste into CSS or a design tool. A live swatch shows the color as you type.

Conversion runs locally in your browser.

Was RGB 转 HEX useful?

RGB 转 HEX是什么?

Enter red, green, and blue channel values from 0 to 255 and get the matching HEX code, ready to paste into CSS or a design tool. A live swatch shows the color as you type.

Out-of-range or non-numeric channels are flagged instead of silently clamped, so you always know what you are copying.

使用方法

  1. Enter R, G, B values

    Whole numbers from 0 to 255.

  2. Copy the HEX

    The code appears next to the preview swatch.

示例

A familiar indigo

Common channel values map to a tidy code.

79, 70, 229

结果: #4f46e5

常见问题

相关指南

相关工具

Last reviewed: 2026-11-21