Chrome DevTools converts all HEX Colors to RGB
Asked Answered
E

4

80

Recently, Chrome DevTools has begun converting all elements' HEX colors to their RGB values, regardless of whether that HEX color is set in CSS or through the DevTools itself. How to stop that?

I am aware of the hold down Shift + click the color icon method of converting colors to other formats, but I find this inconvenient. I am wondering if anyone knows how to stop this from happening?

Extensometer answered 25/4, 2015 at 19:1 Comment(0)
P
105

Step 1, click the gear icon

enter image description here

Step 2, change Color format

enter image description here

Original answer

Open Chrome DevTools panel:

Click 3 dots icon at the far right corner, select Settings, and in the Preferences panel find Elements > Color format, select the option you wish to have, As authored is the default option.

screenshot

Pokey answered 25/4, 2015 at 21:57 Comment(7)
This option no longer appears in Chrome 77.0.3865.90, and I'm getting everything converted to RGB.Tegan
As of 78.0.3904.108, it's in Appearance, not Elements (inside DevToolsPreferences.)Asur
After IE its Chrome's turn to turn developers lives complexChemotropism
This option seems to currently not be honored :(Geanticlinal
The option is available but Aaron is right, it's not honored. But only if you pick "As authored". You can select "Hex" and it will show the colors as hex values. Not the greatest but at least you can get colors one way or the other.Boutis
This feature seems to be removed now. Hex codes are so much better once your wrap your head around them. Please stop trying to herd us into using RGBAberrant
Color format setting doesn't work for me. Still lists color properties as rgb valuesTuantuareg
S
17

As of Chrome 114.0.5735.199 (July 2023).

  1. Hover mouse over color in DevTools, it gives a hint to Shift-click. Tooltip shows to shift-click

  2. Shift-click the color, select the color format you want. Menu shows all format options

  3. Select and copy the value in the selected format. Selected value in new format

Stalk answered 13/7, 2023 at 13:21 Comment(2)
Hex is not an option on my side. I have rgb, hsl, hwb, and many others, but the hex code does not appear in the listTuantuareg
Great. Now I have to click 30 more times a day. Why the h*ll would you shoehorn this setting to all your users, and remove the "as authored" option. This seems like one of these Adobe programmers, that never use their own tools themselves and then make terrible UX decisions .Turkic
H
2

Either click of the updown arrow ↕ , there will be different formats from which we can choose from to show the colors or press shift and click the color palette to choose a different format.



Hail answered 12/4, 2023 at 8:53 Comment(0)
T
0

So there's no positive answer for Chrome/Brave/Edge. If you are on Mac, you can use Safari where you can see the HEX underneath.

Tippets answered 28/2 at 16:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.