INTRO

INTRO

New

Intro to the Designer

Intro to the Designer

New

2:48

Intro to HTML & CSS

Intro to HTML & CSS

New

3:38

HTML Structure

HTML Structure

New

1:55

WEB STRUCTURE

WEB STRUCTURE

New

The Box Model

The Box Model

New

1:54

Element Hierarchy

Element Hierarchy

New

3:57

Navigator Panel

Navigator Panel

New

2:45

ELEMENTS

ELEMENTS

New

Element Panel

Element Panel

New

1:49

Section

Section

New

4:14

Container

Container

New

2:44

Columns

Columns

New

2:22

Div block

Div block

New

3:37

Buttons & Links

Buttons & Links

New

Button

Button

New

14:08

Link Block

Link Block

New

9:35

Text Link

Text Link

New

1:16

Typography

Typography

New

3:20

Heading

Heading

New

2:02

Paragraph

Paragraph

New

4:42

Rich Text

Rich Text

New

3:52

Text Block

Text Block

New

0:56

Block Quote

Block Quote

New

0:42

List

List

New

2:31

Media

Media

New

Image

Image

New

3:39

Image File Types

Image File Types

New

2:22

Image Resolution

Image Resolution

New

3:28

Assets Panel

Assets Panel

New

3:08

Video

Video

New

1:20

Background Video

Background Video

New

3:15

Components

Components

New

Intro to Forms

Intro to Forms

New

4:55

Styling Forms

Styling Forms

New

2:55

Navbar

Navbar

New

9:38

Styling a Navbar

Styling a Navbar

New

4:34

Navbar Menu Button

Navbar Menu Button

New

4:51

Slider

Slider

New

4:56

Tabs

Tabs

New

4:38

Lightbox

Lightbox

New

3:44

Map

Map

New

2:58

Dropdown

Dropdown

New

4:38

Social Media Buttons

Social Media Buttons

New

2:49

Custom Code Embed

Custom Code Embed

New

1:24

Symbols

Symbols

New

3:47

Styling Basics

Styling Basics

New

Intro to Style Panel

Intro to Style Panel

New

3:15

HTML Tags

HTML Tags

New

3:59

Classes

Classes

New

2:46

Combo Classes

Combo Classes

New

4:05

Text Style Inheritance

Text Style Inheritance

New

3:18

Style Manager

Style Manager

New

1:56

States

States

New

2:47

Transitions

Transitions

New

2:40

Color Picker & Swatches

Color Picker & Swatches

New

3:51

Color Values

Color Values

New

3:22

Layout Basics

Layout Basics

New

Intro to Web Layout

Intro to Web Layout

New

2:27

Display Settings

Display Settings

New

2:54

Padding & Margin

Padding & Margin

New

2:48

Width & Height Units

Width & Height Units

New

3:59

Floats & Clears

Floats & Clears

New

1:52

Flexbox & Grid

Flexbox & Grid

New

Intro to Flexbox

Intro to Flexbox

New

2:27

Centering elements with Flexbox

Centering elements with Flexbox

New

1:20

Equal height layouts with Flexbox

Equal height layouts with Flexbox

New

1:47

Grid layouts overview

Grid layouts overview

New

4:18

Flexbox vs. Grid

Flexbox vs. Grid

New

4:00

Advanced Layout

Advanced Layout

New

Positioning Overview

Positioning Overview

New

1:48

Relative Positioning

Relative Positioning

New

1:43

Absolute Positioning

Absolute Positioning

New

1:43

Fixed Positioning

Fixed Positioning

New

1:27

Z-Index

Z-Index

New

1:49

Overflow

Overflow

New

1:49

Styling Typography

Styling Typography

New

Intro to Web Typography

Intro to Web Typography

New

3:20

Typography Units

Typography Units

New

2:43

Line Height

Line Height

New

1:38

Advanced Typography Styles

Advanced Typography Styles

New

3:01

Google Fonts

Google Fonts

New

1:18

Custom Fonts

Custom Fonts

New

1:27

Text Shadow

Text Shadow

New

2:36

Background & Border Styles

Background & Border Styles

New

Background Styles Overview

Background Styles Overview

New

2:20

Background Image

Background Image

New

2:04

Background Gradient

Background Gradient

New

3:02

Border

Border

New

3:07

Border Radius

Border Radius

New

3:22

Box Shadow

Box Shadow

New

3:34

3D Styles

3D Styles

New

Intro to 3D

Intro to 3D

New

2:25

3D Perspective

3D Perspective

New

4:01

2D & 3D Transforms

2D & 3D Transforms

New

4:53

EFFECTS

EFFECTS

New

Opacity

Opacity

New

1:44

Filters

Filters

New

2:59

Cursors

Cursors

New

1:45

Responsive Design

Responsive Design

New

new course
CSS grid landing page tutorial (36min)

Lesson info

Lesson info

Sometimes, using Webflow's color picker is all you need to choose a color to work with. But if you need precision, you want to get more specific by using a color name, hex code, or RGBA value. In this video, we'll explain all three options and how to use them in Webflow.

Explore this project

Want to dig into the project featured in this video and see how everything is put together? We've included the full project we used when making this lesson, and we've shared the link right under this very paragraph.

View and clone this projectDownload lesson assets
Clone this projectDownload project assets

Transcript

Using a color picker can be helpful, and sometimes it's all we need. But for precision, we often want to get more specific.

And there are three common ways that colors are represented on the web. We have color names, hex codes (or hex triplets), and RGBA.

Let's start with names. These are the common color names for 140 colors that are supported by modern browsers. For instance, sometimes we see 1E90FF, which might be more challenging to remember than DodgerBlue. So if we type in DodgerBlue, we're all set. But the names and the colors are somewhat arbitrary, like LawnGreen, PeachPuff, BlanchedAlmond, and of course, LemonChiffon.

Because these presets—because HTML color names aren’t a full representation of what's entirely possible with web colors, sometimes it can be a bit more freeing to use one of the other formats. With that being said...

We have hex codes. And these are usually six-digit codes that correspond with a precise color output. And the reason they're also called hex triplets is because there are three sets of two digits. Red, green, and blue. The same three colors that make up each pixel in a display.

As you increase the value of a particular color? The more of that color you get in your output. Set all values to zero? We got black. Ramp up the red? We got red. And if we add blue, we approach magenta. Add in some green, now we have full white. You can play with the red, and the green, and the blue to get virtually any color you can think of.

The hex part of this is pretty simple if you're a fan of counting. In traditional counting, base-10, we count 0 through 9 in the ones place. Then we switch the tens place to a 1, counting 0 through 9 again. We repeat each time we pass 9.

When we count hexidecimally, which is not a real word, we just add the letters A through F after our nines. That's it. Before we switch to 10, we're going to do A, B, C, D, E, F. Then, we switch the digit to the left after we count past F. We’re just adding A through F after our nines. Same thing in the tens place, when our numbers get large enough.

Sometimes designers and developers will use shorthand hex. On Google, the background attribute is FFF and the color attribute, which affects text color, is 222.

You can use shorthand hex—if you’re working with a color that has repeating digits in all three of the color values. Like AA-BB-CC or 44-11-EE. You can simply omit the second digit for each color, making it ABC or 41E.Now if hexadecimals aren’t your thing, you don’t need them. In fact, if you prefer to think numerically, you’re in luck, because RGBA uses good old-fashioned base-10. Normal numbers. What’s after 9? 10. What’s after 99? 100. What’s after six...

RGBA uses the values 0 through 255 to represent each color—that’s 256 levels of red if we include zero. Same control here as hex. Red, green, blue…and in this case, the A, of course, is for Alpha. This is incredible freedom right here when we’re setting colors. So we can control the opacity from completely transparent to fully opaque. The lower the alpha, the more transparent the color. The higher the alpha? The more opaque.

So. We have color names for some of our more specific colors like Chocolate and BurlyWood, we have hex codes or hex triplets, which let us specify red, green, and blue values hexidecimally, and RGBA: numerical control over each color and the ability to adjust opacity.