Mercury Posted October 21, 2016 Share Posted October 21, 2016 When using the Colour panel's option to "Copy Colour to Clipboard as Hex," the resulting value may have five digits if the red value is less than 16. For instance, RGB(15,12,9) copies to the clipboard as "#F0C09". It should be "#0F0C09". Link to comment Share on other sites More sharing options...
Staff Sean P Posted October 21, 2016 Staff Share Posted October 21, 2016 Thanks for that Mercury! I'll get this reported to the developers. Link to comment Share on other sites More sharing options...
Alfred Posted October 21, 2016 Share Posted October 21, 2016 When using the Colour panel's option to "Copy Colour to Clipboard as Hex," the resulting value may have five digits if the red value is less than 16. For instance, RGB(15,12,9) copies to the clipboard as "#F0C09". It should be "#0F0C09". It's even worse for a colour such as RGB(0,12,9), which copies to the clipboard as "#C09". For CSS purposes, this is shorthand for "#CC0099" (which has no green, and a large red component instead of none at all). Alfred Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen) Link to comment Share on other sites More sharing options...
Staff Sean P Posted October 21, 2016 Staff Share Posted October 21, 2016 It's even worse for a colour such as RGB(0,12,9), which copies to the clipboard as "#C09". For CSS purposes, this is shorthand for "#CC0099" (which has no green, and a large red component instead of none at all). That value is actually correct/valid in HTML/CSS. Hex colours formatted like that is valid in websites - however if the 2 digits of each component is different then you will have to use a 6digit value. That said I think IE had problems with them, not sure if it still does mind! Link to comment Share on other sites More sharing options...
Alfred Posted October 21, 2016 Share Posted October 21, 2016 That value is actually correct/valid in HTML/CSS. Yes, that's what I meant by my "this is shorthand" comment. The colour specified by "#000C09" is almost black, since it comprises no red and only a small amount of green and blue; the colour specified by "#C09" is heliotrope, with lots of red, no green, and a healthy dollop of blue. Alfred Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen) Link to comment Share on other sites More sharing options...
Staff Sean P Posted October 21, 2016 Staff Share Posted October 21, 2016 Yes, that's what I meant by my "this is shorthand" comment. The colour specified by "#000C09" is almost black, since it comprises no red and only a small amount of green and blue; the colour specified by "#C09" is heliotrope, with lots of red, no green, and a healthy dollop of blue. Ahh yes of course! I get you now :) Link to comment Share on other sites More sharing options...
Recommended Posts