# HPCOLOR System Variable [GstarCAD 2026](Help%20System/GSTARCAD/2026/Index.md) → [System Variables](Help%20System/GSTARCAD/2026/System%20Variables/(System%20Variables).md) → [H](Help%20System/GSTARCAD/2026/System%20Variables/H/(H).md) ## Function Description: The HPCOLOR system variable is used to set the default color for new hatch patterns. | | | | --- | --- | | Type | Strings | | Saved in | Drawing | | Initial value | Current value | **Valid value including:** "." is used to apply current color set in CECOLOR system variable ByLayer or ByBlock Index Color: an integer between 1 and 255, or color name of the front seven colors True Color: a RGB or HSL value between 000 and 255, the format is "RGB:000,000,000" Color Books: standard color system, wizard, and set text. --- [Original help](https://www.gstarcad.net/help/GstarCAD_2026_en-US/detail/systemVariables/HPCOLOR.html) · © Gstarsoft Co., Ltd.