Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color Picker wrong hex value #25138

Closed
nilvanlopes opened this issue Mar 31, 2023 · 21 comments
Closed

Color Picker wrong hex value #25138

nilvanlopes opened this issue Mar 31, 2023 · 21 comments
Labels
Issue-Bug Something isn't working Needs-Repro We can't figure out how to make this happen. Please help find a simplified repro. Product-Color Picker All things around the Color Picker utility Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@nilvanlopes
Copy link

Microsoft PowerToys version

0.68.1

Installation method

Microsoft Store

Running as admin

Yes

Area(s) with issue?

ColorPicker

Steps to reproduce

Using win-shift-c
image
The color picker does not return the correct value when selecting the colors in hexadecimal, it always returns a lighter value. Anywhere in the system.

✔️ Expected Behavior

the correct value of the color

❌ Actual Behavior

returns a fainter color

Other Software

No response

@nilvanlopes nilvanlopes added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Mar 31, 2023
@nilvanlopes
Copy link
Author

I found that this only occurs on my main monitor. An AOC Agon 32, connected by displayport on an AMD RX6700XT.
I reset the monitor settings on Windows and on the monitor itself, with no results.
On my LG TV 4k the result goes as expected the hexadecimal value shown presents the value I wrote. Also on my secondary screen full hd.
I think something in the displayport is causing this result. Because the 2 secondary screens are connected in hdmi.

@Jay-o-Way
Copy link
Collaborator

I don't think it's a matter of the receiving hardware, but more likely: Do you have any kind of software on your device that could adjust the color? Like #11585

@nilvanlopes
Copy link
Author

AMD Adrenalin Software, or Windows.
I checked the settings and the difference is only in this part
image
image
I switched to the same setting for all screens, but the colors are correct only on the secondary screen (which is connected in hdmi)

@Jay-o-Way
Copy link
Collaborator

Okay. I never use things like this, so I'm guessing here... Maybe it has something to do with the color format (RGB versus Ypbpr) or the bits per pixel (8 versus 10). If that is not it, I don't know. Maybe @martinchrzan ?

@nilvanlopes
Copy link
Author

@Jay-o-Way The point is, even leaving the settings like the screen 2 (8 BPC and YCbCr 4:4:4), does not change anything, the color picker still returns the wrong value. And I can't imagine that another program could be affecting the colors of the screen. And only on a monitor.

@ghost
Copy link

ghost commented May 9, 2023

I got the same problem. Windows 11 x64 latest build (same on Win 10 latest build), AMD Radeon 6600, hardware calibrated profile for my AOC monitor (which should not be relevant I guess). See screenshots. This really sucks, since I do a lot of stuff designing and editing ... I was glad to have that power toys feature, but if it's broken, well ...
ryder203_screenshot-2023-05-09 17_14_43
ryder203_screenshot-2023-05-09 17_14_34
ryder203_screenshot-2023-05-09 17_14_17

@nilvanlopes
Copy link
Author

I was trying to fix RX6700XT error of black screen and blue screen, computer crashing and etc. I took advantage that I bought a new ssd and formatted the pc, after much research I found that windows was overwriting the AMD video driver that I installed by adrenalin. I disabled windows update, in windows policies, following some tutorials that I do not remember anymore and oddly enough it seems the wrong color error by powertoys was fixed.

@AbhiMayadam
Copy link

AbhiMayadam commented May 29, 2023

Same issue here, but on V 0.70.0 and using intel Iris Xe integrated graphics on the latest driver. If I color-pick a website, the color does not match the actual hex code in the HTML file. (Edit: it fixed itself somehow) (Edit 2: it did not, lighter colors it has issue with, but deep colors it doesn't)

@Pandicon
Copy link

Pandicon commented Aug 5, 2023

Still an issue on v0.72.0 and Windows 10. I wanted to convert a colour from the google colour picker to a custom format but noticed that the powertoys value is always darker and sometimes a different shade - in some instances all of the rbg values are lower, but in some other cases one of them is slighly higher than it should while the rest is lower. I don't think I've ever touched any colour settings on my screen.
image
image

@Jay-o-Way
Copy link
Collaborator

@Pandicon I don't know what the app you are using, but the two colored dots in each image: they have a different color. I think the bottom rainbow line is only to pick a base color, and the 2D area above that is to pick a specific shade. The values that are show are the colors of the dots in the rainbow row, not the actual picked color. I bet the app you are using is the problem here.

@Jay-o-Way
Copy link
Collaborator

@nilvanlopes Have you tried turning off FreeSync, and tried different color pickers/creators?

@Pandicon
Copy link

Pandicon commented Sep 3, 2023

@Pandicon I don't know what the app you are using, but the two colored dots in each image: they have a different color. I think the bottom rainbow line is only to pick a base color, and the 2D area above that is to pick a specific shade. The values that are show are the colors of the dots in the rainbow row, not the actual picked color. I bet the app you are using is the problem here.

The base app used in the example is the colour picker that comes up when you Google "#000000". The big rectangle on the left actually shows the chosen colour, else it would be quite useless. And I launched the powertoys colour picker, hovered my mouse above the big rectangle, and the hex value shown from the powertoys tool was different from the one the Google tool was saying it was showing.
I tried it with multiple colour pickers but decided to post screenshots from the Google one because I felt it has the biggest authority out of the ones I tried (it is the one I would most expect to work correctly on a wide variety of devices).

@Jay-o-Way Jay-o-Way added Needs-Repro We can't figure out how to make this happen. Please help find a simplified repro. Product-Color Picker All things around the Color Picker utility and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Sep 3, 2023
@nilvanlopes
Copy link
Author

@nilvanlopes Have you tried turning off FreeSync, and tried different color pickers/creators?

think it's a error related to windows update and amd drivers, i formatted the pc and the error not occur anymore.

@vexplained
Copy link

@nilvanlopes
I found that this only occurs on my main monitor. An AOC Agon 32

It seems like your main monitor is HDR-capable (at least from what I could find online since it seems like AOC no longer offers detailed information about that specific display).
Could it be possible that you have HDR enabled in your Windows settings and adjusted your SDR brightness balance?
Since I don't have an HDR monitor myself, could you try disabling HDR and check if that resolves the issue? To turn off HDR, navigate to Settings > System > Display and turn off HDR (see image below).

Source: https://uk.pcmag.com/monitors/138652/in-windows-hdr-can-make-games-and-video-pop-heres-how-to-get-it-going
(Source: https://i.pcmag.com/imagery/articles/02nD3uGfHfM8RGbluOJc0c8-15.png
from article https://uk.pcmag.com/monitors/138652/in-windows-hdr-can-make-games-and-video-pop-heres-how-to-get-it-going)

Alternatively, follow the instructions from HDR settings in Windows - Microsoft Support.

@crutkas
Copy link
Member

crutkas commented Aug 12, 2024

From #26170 (comment), @Pandicon reminded me of this issue as have the same color picker UX screenshots.
This could be Chrome

  • Go to chrome://flags/
  • Search for Force color profile
  • Select scRGB linear (HDR where available)

MS Paint verified the hex code is correct for the purple. That is what the pixel color is.
image

does shifting those settings in chrome help? /needinfo

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Status-No recent activity no activity in the past 5 days when follow up's are needed labels Aug 12, 2024
@Sash0l
Copy link

Sash0l commented Aug 18, 2024

Having this issue too, bumping the issue so it doesn't get marked as requiring author feedback

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Status-No recent activity no activity in the past 5 days when follow up's are needed label Aug 18, 2024
@nilvanlopes
Copy link
Author

@nilvanlopes
I found that this only occurs on my main monitor. An AOC Agon 32

It seems like your main monitor is HDR-capable (at least from what I could find online since it seems like AOC no longer offers detailed information about that specific display). Could it be possible that you have HDR enabled in your Windows settings and adjusted your SDR brightness balance? Since I don't have an HDR monitor myself, could you try disabling HDR and check if that resolves the issue? To turn off HDR, navigate to Settings > System > Display and turn off HDR (see image below).

Hi @vexplained. I never use HDR, at the time my tv and secondary monitor have HDR too, bove deactivated, and in them the color picker shows the correct value.

Like I say before, i reinstall windows and change my hardware many times after that so i can't reproduce this again.
I leave the issue open because i'm not the only one to have this error.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Aug 20, 2024
@e11world
Copy link

I've also had the same issue on multiple PCs and screens. Something about it just chooses wrong hex than what I can see on the website's css values for example. Anyone know of a fix?

@Jay-o-Way
Copy link
Collaborator

Anyone know of a fix?

@e11world depends on the cause.

@crutkas
Copy link
Member

crutkas commented Dec 20, 2024

This is due to color profiles on the monitor. we leverage whatever the rendered pixel on the screen is. /dup #11585 would be the tracking issue to account for the color profile on the screen.

Copy link
Contributor

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service microsoft-github-policy-service bot added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Needs-Repro We can't figure out how to make this happen. Please help find a simplified repro. Product-Color Picker All things around the Color Picker utility Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
Development

No branches or pull requests

8 participants