Illustrator colour shortcuts are most useful when you know whether the fill or the stroke is active. Use this guide to change the right attribute, restore a predictable starting point and practise without altering finished artwork.
Essential fill and stroke shortcuts
- X: switch the active target between fill and stroke.
- Shift + X: swap the fill and stroke values.
- D: restore the default white fill and black stroke.
- / (forward slash): apply None to the active fill or stroke.
Correction: D resets the fill and stroke. Ctrl + D on Windows or Command + D on macOS repeats a transformation; it is not the colour reset shortcut.
Try the shortcuts on a practice shape
- Create a new document and draw a rectangle. Keep it selected, with no text cursor active.
- Press D to establish a white fill and black stroke.
- Click the Fill swatch in the toolbar and choose a visible colour, such as orange.
- Press X to target the stroke. Choose a different colour, such as teal, and give the stroke enough weight to see.
- Press Shift + X and compare the result: the two colours should exchange places.
- Click the Stroke swatch, then press /. The outline disappears because the stroke is now None.
- Undo the last change, or press D to return to the default appearance.
Check the active swatch:
The front swatch indicates the attribute you are editing. X changes that target; Shift + X changes the artwork by exchanging its fill and stroke. This distinction helps prevent an accidental outline change when you intended to recolour the inside of a shape.
Colour, gradients and keyboard layouts
Adobe’s shortcut reference lists < for colour fill mode and > for gradient fill mode. Keyboard layouts and custom shortcut sets can differ, so check your assignment in Edit > Keyboard Shortcuts. You can also use the toolbar’s Color, Gradient and None controls directly.
For a worked gradient example, follow our guide to creating different types of gradients in Illustrator.
In the Color panel, Shift-clicking the colour bar cycles colour modes. Open the panel from Window > Color if it is hidden. Changing a panel’s colour controls should not be confused with preparing an entire document for a particular print or screen output.
If a shortcut does not behave as expected
- Leave text editing before trying a single-letter shortcut; otherwise you may type the character.
- Confirm that the intended object is selected and the correct fill or stroke swatch is in front.
- Check whether a customised shortcut set or keyboard layout changes the assignment.
- Try the same operation with the visible toolbar or panel control, then compare the result.
See Adobe’s Illustrator keyboard shortcut reference for the full current list.
Build your Illustrator skills
Practise colour, shapes and vector editing with Academy Class Illustrator courses. If you need help choosing a course, contact our team with your experience and learning goals.