0

Encoded

Color Name

About Color Names

Color names are a way to represent colors using named colors defined in CSS. Because colors can be specified with keywords such as red, blue, and orange, common colors used in HTML and CSS can be written readably.

For example, major colors such as red can be represented as follows.

ColorColor nameRGB notationHex notation
Redredrgb(255 0 0)#ff0000
Limelimergb(0 255 0)#00ff00
Bluebluergb(0 0 255)#0000ff
Whitewhitergb(255 255 255)#ffffff
Blackblackrgb(0 0 0)#000000
Orangeorangergb(255 165 0)#ffa500
Transparenttransparentrgb(0 0 0 / 0)#00000000

transparent is a special color name that represents transparent black.

Color names, except for transparent, do not contain transparency information. In DenCode, when a color with transparency can be represented as a named color, it is displayed using CSS relative color syntax. For example, semi-transparent red is represented as rgb(from red r g b / 0.5).

Difference between color names and RGB

Color names represent common colors with human-readable keywords. In contrast, RGB specifies red, green, and blue component values and can represent many more colors numerically. Color names are often used when readability in CSS or HTML is important, while RGB notation is often used for detailed color specification or color conversion.