Foreground and background colors in Photoshop: teal gradient icon of two overlapping squares over a faded photo of icy mountains and water.

How to Use Foreground & Background Colors in Photoshop

Included in PHLEARN PRO

Join PHLEARN PRO for instant access to this course and every tutorial on PHLEARN.

  • Stream in up to 4K on any device
  • Closed captions and chapters on every course
  • Download all sample images and PSDs
  • New PRO tutorials every month
  • Cancel anytime
Start Watching

Description

Photoshop keeps two active colors, the foreground and background colors, at all times, and there is a very good reason for it: when you are working on a layer mask, black and white are the only two colors that matter, and one keystroke flips between them. This lesson covers the two shortcuts every Photoshop user should know, why the pair exists, and a full tour of the Color Picker – sampling from your image, color models, Pantone libraries, hex values and swatches.

Table of Contents

Foreground & Background Colors
  • 01 - Foreground & Background Colors
    9:31m

Course Downloads

Learn Foreground and Background Colors

Photoshop Basics - Foreground and Background Colors

D and X: Reset and Swap the Foreground and Background Colors

These two keys do most of the work. D resets to the default colors – black foreground, white background. X swaps the foreground and background. Want to paint white? Press D then X. Need black again? Press X. The foreground color is what every brush, fill and gradient uses.

Why Photoshop Has Foreground and Background Colors

The pairing exists for layer masks. Paint a retouch on its own layer, add a mask, and now white reveals that work while black hides it – the exact two colors sitting in your swatches by default. Tap X to switch between hiding and revealing without ever going near the color picker. Once that becomes automatic, masking gets dramatically faster.

The Color Picker for Foreground and Background Colors

Click either of the foreground and background colors swatches to open it. Drag inside the large field to pick a color and use the vertical slider to change hue. While the picker is open you can move your cursor out onto the image and click to sample any color from your photo – the fastest way to pull a color that already belongs in the scene.

Color Models

The radio buttons change what the slider and field represent: H (hue) is the standard and most intuitive arrangement, while S and B put saturation or brightness on the slider instead. You can also work in individual R, G, B channels or in Lab. Most people leave it on H.

Libraries and Hex

Color Libraries opens Pantone and other named systems – useful when a client specifies a brand color by number. The hex value field at the bottom is the same code used in HTML and CSS, so you can paste a color straight from a website into Photoshop or copy one out to use on the web.

Saving Foreground and Background Colors as Swatches

Add to Swatches saves a color you want to reuse; Window > Swatches shows them all, and clicking one loads it as your foreground color. Checking Add to my Library at the same time syncs it through Creative Cloud so the same color is available in Illustrator, InDesign and Premiere.

Foreground and Background Colors Quick Reference

  • D – default colors (black foreground, white background)
  • X – swap foreground and background
  • Foreground color is what brushes, fills and gradients use
  • Alt/Option + Delete fills with foreground; Ctrl/Cmd + Delete fills with background
  • Click outside an open picker to sample a color from your image
  • Hex values match web colors; Add to Swatches to keep a color
Aaron Nace
Class Instructor

Aaron Nace

PHLEARN Founder & Lead Instructor

Aaron Nace is a photographer, digital artist, and founder of PHLEARN. Driven by a deep passion for image creation and a dedication to sharing knowledge, he founded PHLEARN in 2011 to empower creators around the globe. With over 2 million YouTube subscribers, 8+ seasons speaking at Adobe MAX, and hundreds of tutorials published, Aaron continues to produce free weekly lessons alongside new in-depth PRO courses every month.

Reviews

There are no reviews yet.

200+
PRO COURSES & MASTERCLASSES
100+
PRESETS, LUTS, ACTIONS & BRUSHES
1,000+
DOWNLOADABLE PSDs & RAW FILES
4K
ULTRA HD STREAMING
4.93
AVERAGE STAR RATING
3,900+
PRO TUTORIAL REVIEWS
2M+
SUBSCRIBERS & STUDENTS

Unlock This Course & Every PRO Tutorial.

200+ courses. 1,000+ practice files. One membership.

JOIN PHLEARN PRO

$12.99 a month or $99.99 a year

Cancel anytime · 100% money-back guarantee

Unlimited access to every PRO course

New PRO courses every month

Layered PSDs and RAW files to follow along

100+ Lightroom Presets, LUTs, Actions and Brushes

Stream in up to 4K, with captions and chapters

Watch on any device: desktop, tablet or phone

4.93 average from 3,900+ reviews · 2M+ students