Html 简明教程
HTML - Color Code Builder
有时我们需要使用不同的颜色装饰我们的 HTML 页面。HTML 提供了广泛的属性,可用于设置背景颜色、字体颜色等。
Sometimes we need to decorate our HTML pages using different colors. HTML provides a wide range of attributes that can be used to set background color, font color and so on.
为了在 HTML 页面中使用颜色,我们需要选择有效的颜色代码。找到颜色代码总是很困难。如果您有任何颜色,您就可以使用以下工具,将其转换为 rgb 和十六进制代码。
To use colors in your HTML pages, we are required to choose valid color codes. It is always difficult to find colors code. If you have any color in you have any color in your mind the below tool helps to convert that to rgb and hexadecimal code.
HTML Color Picker
我们可以使用 RED、GREEN 和 BLUE 组合来制作任何颜色。如果我们为所有三种颜色的强度设置最大值,则所得颜色将为白色。同样,如果我们为所有 RGB 值提供零强度,我们将得到黑色。
We can make any colors using combination RED, GREEN, and BLUE. If we set maximum intensity of all three colors, then the resulting color will be white. Similarly, if we give zero intensity for all RGB values, we will get black color.
-
rgb()* 函数采用三个参数,即红色值、绿色值和蓝色值。每个值都使用一个整数指定,该整数可以从 0 到 255,其中 0 表示无颜色,255 表示完全的色彩强度。混合这些值将创建其他不同的颜色。
The rgb() function takes three parameters namely the red value, the green value, and the blue value. Each value is specified using an integer which can range from 0 to 255, where 0 means no color and 255 means full color intensity. Mixing these values will create other different colors.
HSL Color Code Generator
HSL 色彩模型代表色调、饱和度和亮度。色调是颜色的类型,以 0 到 360 度的度数测量。饱和度是颜色的强度,从 0%(灰色)到 100%(全彩)。亮度是颜色的亮度,从 0%(黑色)到 100%(白色)。通过调整这三个值,我们可以创建广泛的色彩。与 RGB 模型相比,该模型通常被认为在选择颜色时更直观。
The HSL color model stands for Hue, Saturation, and Lightness. Hue is the type of color, measured in degrees from 0 to 360. Saturation is the intensity of the color, from 0% (gray) to 100% (full color). Lightness is the brightness of the color, from 0% (black) to 100% (white). By adjusting these three values, we can create a wide range of colors. This model is often considered more intuitive for selecting colors compared to the RGB model.