Hexadecimal Notation: Colors are often represented in hexadecimal notation (#RRGGBB), where RR, GG, and BB are two-digit hexadecimal values for red, green, and blue components, respectively. Example: #FF0000 for red, #00FF00 for green, #0000FF for blue.
RGB Values Colors can also be represented using RGB values, where each component ranges from 0 to 255. Example: rgb(255, 0, 0) for red, rgb(0, 255, 0) for green, rgb(0, 0, 255) for blue.
RGBA Values: Similar to RGB, but with an additional alpha channel representing opacity. Example: rgba(255, 0, 0, 0.5) for semi-transparent red.
HSL Values: Colors can be represented using the HSL model, where H stands for hue, S for saturation, and L for lightness. Example: hsl(0, 100%, 50%) for red, hsl(120, 100%, 50%) for green, hsl(240, 100%, 50%) for blue.
HSLA Values: Similar to HSL, but with an additional alpha channel for controlling opacity. Example: hsla(0, 100%, 50%, 0.5) for semi-transparent red.
Named Colors: CSS supports a set of named colors like red, green, blue, etc.
Representation: Colors are defined by combining varying intensities of red, green, and blue light.
Values: Each color channel (R, G, B) typically ranges from 0 to 255.
Example: rgb(255, 0, 0) for red, rgb(0, 255, 0) for green, rgb(0, 0, 255) for blue.
Representation: Colors are defined by specifying the Hue (type of color), Saturation (intensity of color), and Lightness (brightness).
Values: Hue is represented in degrees (0 to 360), while Saturation and Lightness are percentages (0% to 100%).
Example: hsl(0, 100%, 50%) for red, hsl(120, 100%, 50%) for green, hsl(240, 100%, 50%) for blue.
These models provide different ways to express and manipulate colors, and each has its advantages:
RGB is additive: It is suitable for representing colors on digital screens where colors are created by combining different intensities of red, green, and blue light.
HSL is more intuitive: It is often preferred by designers because it separates color information into components that are more perceptually relevant (hue, saturation, lightness), making it easier to work with.
color: #663399; // or #639 color: rgb(102, 51, 153); color: hsl(270deg, 49%, 40%);
Source: Read color hex codes by David DeSandro
Look at the shortcode to determine colour strength.

RGB channels range from 1-255
Hex channels range from 0-f (in double digits)

In RGB/Hex neutrals and grays contain near equal amount of each colour. This can be hard to control in code.

Provides an human-friendly format that is also easily controlled with Javascript. See: blend mode visualizer

Hue is the type of color, often described by the name of the color itself (red, green, blue, etc.).
It is measured in degrees on the color wheel, typically ranging from 0 to 360.
An example is hsl(0, 100%, 50%) represents a color with a hue of 0 degrees, full saturation, and 50% lightness, which is red.
Saturation is the intensity or purity of a color. Higher saturation means more vivid and vibrant colors, while lower saturation results in more muted or grayscale tones.
It is measured as a percentage, ranging from 0% (completely grayscale) to 100% (fully saturated).
An example is hsl(120, 100%, 50%) represents a color with a hue of 120 degrees, full saturation, and 50% lightness, which is a vivid green.
Lightness represents the amount of white or black mixed with a color. It determines how light or dark the color appears. It is the key for predictable contrast ratios.
It is measured as a percentage, ranging from 0% (black) to 100% (white), with 50% being the mid-point representing the original color.
An example is hsl(120, 100%, 50%) represents a color with a hue of 120 degrees, full saturation, and 50% lightness, which is a vivid green at its mid-point brightness.
The 60-30-10 rule is a basic principle used in design, including web design, to create visually appealing color schemes. The rule suggests allocating percentages to different colors as follows:
60% - Dominant Color: The primary color that dominates the design. This color sets the overall tone and is usually applied to the majority of the design elements, such as the background.
30% - Secondary Color: A complementary or contrasting color to the dominant color. This color is used for secondary elements, such as accents, borders, or secondary backgrounds.
10% - Accent Color: A vibrant or contrasting color that adds a pop of interest. This color is used sparingly for small details, highlights, or call-to-action elements.
Start with white, black and a "punch" colour.

/* Example in CSS */
body {
background-color: #F5F5F5; /* 60% - Dominant color (light gray) */
}
.header {
color: #333333; /* 30% - Secondary color (dark gray) */
}
.button {
background-color: #FF0000; /* 10% - Accent color (red) */
}
Vary hue angle to match a harmony

Rules, find the color declaration of the text;/* Examples in CSS with different hues */
.element1 {
background-color: hsl(0, 100%, 50%);
}
.element2 {
background-color: hsl(120, 100%, 50%);
}
.element3 {
background-color: hsl(240, 100%, 50%);
}.element1 {
background-color: hsl(120, 100%, 50%);
}
.element2 {
background-color: hsl(120, 50%, 50%);
}
.element3 {
background-color: hsl(120, 0%, 50%);
}
/* Examples in CSS with different lightness values */
.element1 {
background-color: hsl(120, 100%, 50%);
}
.element2 {
background-color: hsl(120, 100%, 25%);
}
.element3 {
background-color: hsl(120, 100%, 75%);
}