# set pen color to (#) — Scratch Block Guide > Sets the exact pen stroke color using a color picker. How to use the "set pen color to (#)" block in Scratch 3.0 (Extensions): clear explanation, working block example, and debugging tips. ## What this block does Sets the exact pen stroke color using a color picker. Color-code shapes, HP bars (green/yellow/red), or palette buttons in a paint app. - Category: Extensions - Key tip: Pair with color palette buttons so users can pick their favorite brush color. ## Working Scratch example Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it. **Example using set pen color to (#)** - When green flag clicked - Set pen color to (blue) - Set pen size to (5) Try it: Draws bold blue lines. ## Related block guides Explore other blocks in the same category or return to the full English Block Dictionary. - [Back to Extensions](/en/dictionary/extensions/): See the overview and patterns for Extensions. - [Scratch Block Dictionary (All Categories)](/en/dictionary/): Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Updated: 2026-11-24 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/dictionary/extensions/pen-set-color/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)