# foregroundColor's are Undefined!

**URL:** <https://forums.creativeclouddeveloper.com/t/foregroundcolors-are-undefined/5723>\
**Category:** UXP Plugin API\
**Created:** [January 19, 2023, 9:45pm UTC](https://forums.creativeclouddeveloper.com/t/foregroundcolors-are-undefined/5723 "2023-01-19T21:45:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jyoon](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jyoon](https://forums.creativeclouddeveloper.com/u/jyoon)\
**Post date:** [January 19, 2023, 9:45pm UTC](https://forums.creativeclouddeveloper.com/t/foregroundcolors-are-undefined/5723/1 "2023-01-19T21:45:07Z")

</div>

When I run this command `require('photoshop').app.foregroundColor` the object returns RGB colors that are undefined, even though other color formats such as HSB, CMYK values exist?

What is the problem?

 ![Screenshot 2023-01-19 at 4.44.51 PM](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/c/c67c1a4636dc5226f21522bed4b611f9393557e6.png)

---

<div class="post-metadata">

**Author:** ![Karmalakas](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/karmalakas/32/1048_2.png) [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)\
**Post date:** [January 19, 2023, 10:12pm UTC](https://forums.creativeclouddeveloper.com/t/foregroundcolors-are-undefined/5723/2 "2023-01-19T22:12:53Z")

</div>

It’s a [known bug](http://forums.creativeclouddeveloper.com/t/get-code-from-foregroundcolor/5506/19) and seems like in review since November. Maybe it’s already in a beta version, would need to test

---

<div class="post-metadata">

**Author:** ![Jarda](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/jarda/32/1909_2.png) [@Jarda](https://forums.creativeclouddeveloper.com/u/Jarda)\
**Post date:** [February 9, 2023, 7:42pm UTC](https://forums.creativeclouddeveloper.com/t/foregroundcolors-are-undefined/5723/3 "2023-02-09T19:42:29Z")

</div>

It passed review and should land with PS 24.3 …along with other color-related bugs fixed: [Get code from foregroundColor - #19 by Jarda](http://forums.creativeclouddeveloper.com/t/get-code-from-foregroundcolor/5506/19)

So fix will be there soon 🙂

---

<div class="post-metadata">

**Author:** ![Jarda](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/jarda/32/1909_2.png) [@Jarda](https://forums.creativeclouddeveloper.com/u/Jarda)\
**Post date:** [March 6, 2023, 5:40pm UTC](https://forums.creativeclouddeveloper.com/t/foregroundcolors-are-undefined/5723/4 "2023-03-06T17:40:35Z")

</div>

Should be fixed in the latest PS 24.3.0 build (m2087)
