Learn about complementary colors:
Color theory and its impact on design is a deep topic and only the basics are covered in the following challenges.
On a website, color can draw attention to content, evoke emotions, or create visual harmony.
Using different combinations of colors can really change the look of a website, and a lot of thought can go into picking a color palette that works with your content.
The color wheel is a useful tool to visualize how colors relate to each other - it's a circle where similar hues are neighbors and different hues are farther apart.
When two colors are opposite each other on the wheel, they are called complementary colors.
They have the characteristic that if they are combined, they "cancel" each other out and create a gray color.
However, when placed side-by-side, these colors appear more vibrant and produce a strong visual contrast.
Some examples of complementary colors with their hex codes are:
COLOR HEX-CODES
red #FF0000
cyan #00FFFF
green #00FF00
magenta #FF00FF
blue #0000FF
yellow #FFFF00
This is different than the outdated RYB color model that many of us were taught in school, which has different primary and complementary colors.
The modern color theory uses the additive RGB model (like on a computer screen) and the subtractive CMY(K) model (like in printing).
There are many color-picking tools available online that have an option to find the complement of a color.
The syntax for this is:
.blue {
Note:
Using color can be a powerful way to add visual interest to a page.
However, color alone should not be used as the only way to convey important information because users with visual impairments may not understand that content. This issue will be covered in more detail in the Applied Accessibility challenges.
No comments:
Post a Comment