Scroll to top
Read Time: 8 min

In the following tutorial, you'll learn how to create a lock icon with some effects, opacity masks, gradients, and simple shapes in Illustrator. Many of these techniques can be applied easily to other icon designs.

Final Image

Below is the final vector image we'll be making in this tutorial. For further research in lock icon designs, check out PSDTUTS's Create a Shiny Lock Icon Design, as there are many ways to create this kind of design.

Final ImageFinal ImageFinal Image

Step 1

Create a new documents 8.5 inches wide by 11 inches tall. Then use the Rectangle Tool (M) to create a rectangle 3.5 inches wide by 2.75 inches tall.

Step 1Step 1Step 1

Step 2

With the Rectangle still selected, go to Filter > Stylize > Round Corners to bring up the Round Corners dialog. Change the Radius to .375 inches.

Step 3

Create a Liner Gradient in the Gradient Panel. Next, add three more swatches on the Gradient by clicking below the Gradient Slider. Now you should have five swatches, including the original two swatches.

Change the color of the far left swatch to a light gold color (I used these CMYK values: C=0 M=6 Y=28 K=0). Change the second swatch from the left to a darker gold color (C=8 M=12 Y=27 K=0). Change the third swatch from the left an even darker gold color (C=18 M=27 Y=55 K=0). Change the fourth swatch to the darkest gold (C=25 M=35 Y=63 K=0). Finally, change the last swatch to match your first light gold color.

Step 3Step 3Step 3

Step 4

Create a rectangle that is .25 inches wide by 2.75 inches tall. Then fill it with a 40% black. With the new rectangle selected, go to Effect > Sketch > Graphic Pen, to open up the Graphic Pen Dialog. Change the Stroke Length to 15, the Light/Dark Balance to 10, and the Stroke Direction to Horizontal.

Step 4Step 4Step 4

Step 5

Expand the graphic pen effect by going to Object > Expand. Once the shape is expanded, go to Object > Live Trace > Tracing Options, to bring up the Live Trace dialog. All the default Adjustments settings in the right of the dialog stay the same.

In the Trace Setting side of the dialog, change the Path Fitting to 1 px, the Minimum Area to 1 px, the Corner angle to 1 px, check the Ignore White checkbox, and then press the Trace button. Next, go to Object > Live Trace > Expand.

Step 5Step 5Step 5

Step 6

After you have expanded the Graphic Pen Effect, change the dimensions of texture to 3.5 inches wide and keep the height the same size. Copy (Command + C) the original rectangle gradient and Paste it in Front (Command + F). Select the newly copied gradient shape and the texture. Then press the Intersect Shape Areas button from the Pathfinder Panel.

Step 6Step 6Step 6

Step 7

With the texture selected, grab the Eyedropper Tool (I). Then click on your first gradient to load the gradient attributes. Add another swatch to the texture gradient in between the first two swatches. Your texture gradient should have 6 swatches now.

Change the first two swatches to you first light gold color (C=0 M=6 Y=28 K=0). Change the third swatch to a darker gold (C=8 M=12 Y=27 K=0). Change the third and fourth swatch to your darkest gold color (C=25 M=35 Y=63 K=0). Finally, change the last swatch to your original third swatch color (C=8 M=12 Y=27 K=0).

Step 7Step 7Step 7

Step 8

With the Ellipse Tool (L), draw an ellipse 4.5 inches wide by one inch tall. Place the ellipse over the lock body so the center of the ellipse is slightly higher than the top of the lock body.

Select the lock body and ellipse and align them by pressing the Horizontal Align Center Button. Next Copy (Command + C) the original lock shape (not the texture) and Paste in Front (Command + P). With the copied shape and the ellipse selected, Intersect the shapes in the Pathfinder Panel.

Step 8Step 8Step 8

Step 9

With the new shape selected, create a Linear Gradient from the Gradient Panel. Change the first swatch to one of your lighter gold colors (C=8 M=12 Y=27 K=0). Then change the second swatch to your dark gold color (C=25 M=35 Y=63 K=0). With the Gradient Tool (G), adjust the gradient by clicking at the top of the shape and drag to the bottom of the shape.

Step 9Step 9Step 9

Step 10

Next comes the top of the lock icon. Start by drawing a 2 inch by two inch ellipse with the Ellipse Tool (L). Also, draw a 2 inch by 1 inch rectangle with the Rectangle Tool (M). Select both shapes, Horizontally Align them and Vertically Align the Bottom. Next, press the Add To Shape Area button in the Pathfinder Panel and Expand.

Step 10Step 10Step 10

Step 11

With the Direct Selection Tool, select the bottom line of the shape and delete it. Next, change the Stroke Weight to 26 pt and Expand the Appearance.

Step 11Step 11Step 11

Step 12

With the top lock shape selected create a Linear Gradient. Then change the first swatch to a 22% black and the second swatch a 72% black. With the Gradient Tool (G), adjust the gradient by clicking from the top of the shape and drag to the bottom.

Step 12Step 12Step 12

Step 13

With the shape still selected, go to Object > Path > Offset Path to bring up the Offset dialog. Change to Offset to -.075 in and press OK. Select the new offset path and create a Linear Gradient. Fill the first swatch with white and the second swatch with a 50% black. Adjust the gradient with the Gradient Tool (G), as in the previous step.

Step 13Step 13Step 13

Step 14

With the newest offset still selected, create a second offset the same as before, giving you three total shapes. The inside shape should still be a gradient, but you are going to add two swatches to the Gradient Slider. Change the first swatch to 60% black, the second to 30% black, the third to 20% black, and the fourth to an 85% black. Also, adjust the gradient as in the previous steps.

Step 14Step 14Step 14

Step 15

Select the two inner offsets and stretch them down slightly. This helps the highlight not look so perfect.

Step 15Step 15Step 15

Step 16

Select all three objects of the lock top. Then send them behind the lock body.

Step 16Step 16Step 16

Step 17

Draw an ellipse that is 4.5 inches by 4.5 inches. Then create a Radial Gradient in the Gradient Panel. Make the first swatch (inner radial swatch) a 65% black and the last swatch (outside radial swatch) a white color. Next, scale the ellipse down to .5 inches tall, while keeping the same length. Set the shape to multiply and place it behind all the lock artwork.

Step 18

Select everything but the drop shadow. Then Copy (Command/Ctrl + C), Paste in Front (Command/Ctrl + F), and select Flip Vertical from the pop-up menu in the Transform Panel. Drag the copied artwork to the bottom of the original artwork. Then send it behind all other artwork including the drop shadow.

Step 18Step 18Step 18

Step 19

Draw a rectangle that is slightly bigger than the flipped lock artwork. Create a Linear Gradient. Keep the default white and black for the swatches. Adjust the gradient so the white is at the top of the gradient and black is at the bottom.

Step 19Step 19Step 19

Step 20

Select all the flipped artwork, the gradient, and select Make Opacity Mask from the pop-up menu in the Transparency Panel.

Step 20Step 20Step 20

Step 21

For the background, create a rectangle to the size of your document. Fill it with a 8% black. Then send it behind all the other artwork. You can change the color of the background to any color you prefer, if you are not to excited about the grey color.

Step 21Step 21Step 21

Step 22

For the typography you can choose any font, lettering, and branding. Once you've type in your brand, outline the type by going to Type > Create Outlines (Command + Shift+O).

Step 22Step 22Step 22

Step 23

Place the lettering over the desired area of the artwork.

Step 24

Copy (Command + C) both the lock texture and outlined type. Then Paste in Front (Command + F). Select both copies and Intersect the shapes. Use the Eyedropper Tool and sample the textures gradient. Next, select the original outlined text. Then use the Eyedropper to copy the color of the lock body gradient.

Step 24Step 24Step 24

Step 25

Select the original outlined text, and offset the path as before, but this time set the Offset in the Offset dialog to .075 inches. Create a Linear Gradient with the first swatch being your dark gold color (C=25 M=35 Y=63 K=0) and your second swatch an even darker gold color (C=33 M=47 Y=85 K=25). Adjust the gradient so the darkest color is on the top.

Step 25Step 25Step 25

Step 26

Select the original text outline with the Selection Tool (V), while holding down the Alt button (to copy the object), and drag slightly down and to the right. Change the color to your darkest gold. This will give the text some depth.

Step 26Step 26Step 26

Step 27

Select the text offset and Copy (Command + C) and Paste in Back (Command + B). Then change the color to you light gold color. Move it down slightly.

Step 27Step 27Step 27

Final Image

All done! The final vector lock icon design is below.

Final ImageFinal ImageFinal Image
Did you find this post useful?
Want a weekly email summary?
Subscribe below and we’ll send you a weekly email summary of all new Design & Illustration tutorials. Never miss out on learning about the next big thing.
One subscription. Unlimited Downloads.
Get unlimited downloads