CSS Colours Cheatsheet

Additive RGB Model

Primary Colours

  • Colors that, when combined create pure white
  • Each color must be at its maximum intensity.
red
green
blue

Secondary Colours

  • These are the colors you get when you combine primary colours
  • red + green = yellow rgb (255, 255, 0)
  • blue + green = cyan rgb (0, 255, 255)
  • red + blue = magenta rgb (255, 0, 255)
yellow
cyan
magenta

Tertiary Colours

  • These are the colors you get when you combine primary colour with a nearby secondary colour
  • orange
    • red & yellow
    • rgb (255, 127, 0)
  • spring green
    • cyan & green
    • rgb (127, 0, 255)
  • violet
    • magenta & blue
    • rgb (127, 0, 255)
orange
spring-green
violet

Other Tertiary Colors

  • chartreuse green
    • green & yellow
    • rgb (127, 255, 0)
  • azure
    • blue & cyan
    • rgb (0, 127, 255)
  • Rose
    • red & magenta
    • rgb (255, 0, 127)
chartreuse green
azure
rose

Complementary Colours

*** Notice that the red and cyan colors are very bright right next to each other. This contrast can be distracting if it's overused on a website, and can make text hard to read if it's placed on a complementary-colored background. It's better practice to choose one color as the dominant color, and use its complementary color as an accent to bring attention to certain content on the page. ***

We use complementary colours to attract the readers attention to certain parts of the webpage.

RED
CYAN

HSL Colour Model

Hue Saturation Lightness

HSL function hsl()

hue wheel 1 hue wheel 2
a colour wheel