# Javascript & Python RGB values prefix is wrong

**URL:** https://forum.makecode.com/t/javascript-python-rgb-values-prefix-is-wrong/14634
**Category:** Jacdac
**Created:** [July 28, 2022, 4:30pm UTC](https://forum.makecode.com/t/javascript-python-rgb-values-prefix-is-wrong/14634 "2022-07-28T16:30:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dsssssssss9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dsssssssss9/32/861_2.png) [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)
#### Post date: [July 28, 2022, 4:30pm UTC](https://forum.makecode.com/t/javascript-python-rgb-values-prefix-is-wrong/14634/1 "2022-07-28T16:30:18Z")

</div>

if in python or javascript - dragging code with RGB value results in the colour value having prefix of “#” when it should be 0x

Setting this manually to “0x” resolves the issue

Reported 14 days ago via GitHub …

> <https://github.com/microsoft/jacdac/issues/1184#issue-1305409249>
>
> \*\*Describe the bug\*\*
> if in python or javascript - dragging code with RGB value… results in the colour value having prefix of "#" when it should be 0x
> 
> Setting this manually to "0x" resolves the issue
> 
> 
> !\[wrong prefix\](https://user-images.githubusercontent.com/30810847/179118109-0266e27b-8408-4c24-9b4d-fc1a6671f129.png)

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [August 9, 2022, 6:14pm UTC](https://forum.makecode.com/t/javascript-python-rgb-values-prefix-is-wrong/14634/2 "2022-08-09T18:14:17Z")

</div>

Thanks for reporting and filing a bug in Github! @richard also answered in this thread [New version Jacdac, Same color error - #3 by frank\_schmidt](https://forum.makecode.com/t/new-version-jacdac-same-color-error/14635/3)
