HSL color adjusting bars do not match RGB

Bug #750503 reported by Charlie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Wishlist
Unassigned

Bug Description

Honestly, I am no expert in colors, but I have been trying to work with them, and doing so, I think I found a problem in Inkscape. When I adjust the colors in RGB, the HSL colors do not match what I expect based on what I find on web pages which explain color conversions between RGB and HSL - for example a really nice one for easy comparison is <http://www.workwithcolor.com/hsl-color-picker-01.htm>
If you get a chance, please check it out....

Tags: color ui
Revision history for this message
su_v (suv-lp) wrote :

> When I adjust the colors in RGB, the HSL colors do not match what I expect

Could you please add more details about your expectations and what you get in Inkscape, and how it differs?
Do note that Inkscape uses values ranging from 1-255 in the HSL dialog (unlike e.g. <http://www.workwithcolor.com/hsl-color-picker-01.htm>, which uses 1-100%).

Possibly duplicate of bug #551254 “HSL Granularity (8-bit x 3 -vs- 360/100/100)”.

tags: added: color ui
Changed in inkscape:
status: New → Incomplete
description: updated
Revision history for this message
Charlie (charlie-hahs) wrote : Re: [Bug 750503] Re: HSL color adjusting bars do not match RGB

Maybe I am just confused - on the workwithcolor web page, when I enter 30
50 60 for rgb I get 200 33 18 for HSL, but I get 142 85 45 for HSL in
Inkscape.

Charlie Hahs
Diehl Controls Polska sp.z o.o.
pl. Wolnosci 7
50-071 Wroclaw
Phone: +48-71-77-49-768

~suv <email address hidden>
Sent by: <email address hidden>
04/04/2011 07:30 PM
Please respond to
Bug 750503 <email address hidden>

To
<email address hidden>
cc

Subject
[Bug 750503] Re: HSL color adjusting bars do not match RGB

> When I adjust the colors in RGB, the HSL colors do not match what I
expect

Could you please add more details about your expectations and what you get
in Inkscape, and how it differs?
Do note that Inkscape uses values ranging from 1-255 in the HSL dialog
(unlike e.g. <http://www.workwithcolor.com/hsl-color-picker-01.htm>, which
uses 1-100%).

Possibly duplicate of bug #551254 “HSL Granularity (8-bit x 3 -vs-
360/100/100)”.

** Tags added: color ui

** Changed in: inkscape
       Status: New => Incomplete

** Description changed:

- Honestly, I am no expert in colors, but I have been trying to work with
them, and doing so, I think I found a problem in Inkscape. When I adjust
the colors in RGB, the HSL colors do not match what I expect based on what
I find on web pages which explain color conversions between RGB and HSL -
for example a really nice one for easy comparison is
www.workwithcolor.com/hsl-color-picker-01.htm
+ Honestly, I am no expert in colors, but I have been trying to work with
them, and doing so, I think I found a problem in Inkscape. When I adjust
the colors in RGB, the HSL colors do not match what I expect based on what
I find on web pages which explain color conversions between RGB and HSL -
for example a really nice one for easy comparison is <
http://www.workwithcolor.com/hsl-color-picker-01.htm>
  If you get a chance, please check it out....

--
You received this bug notification because you are a direct subscriber
of the bug.
https://bugs.launchpad.net/bugs/750503

Title:
  HSL color adjusting bars do not match RGB

Status in Inkscape: A Vector Drawing Tool:
  Incomplete

Bug description:
  Honestly, I am no expert in colors, but I have been trying to work with
them, and doing so, I think I found a problem in Inkscape. When I adjust
the colors in RGB, the HSL colors do not match what I expect based on what
I find on web pages which explain color conversions between RGB and HSL -
for example a really nice one for easy comparison is <
http://www.workwithcolor.com/hsl-color-picker-01.htm>
  If you get a chance, please check it out....

To unsubscribe from this bug, go to:
https://bugs.launchpad.net/inkscape/+bug/750503/+subscribe

Revision history for this message
Charlie (charlie-hahs) wrote :

Let me add one thing to what I wrote below - I can see that the S and L
values on the web page are percentages of 255, but the H value is what is
I do not understand.

Maybe I am just confused - on the workwithcolor web page, when I enter 30
50 60 for rgb I get 200 33 18 for HSL, but I get 142 85 45 for HSL in
Inkscape.

Charlie Hahs
Diehl Controls Polska sp.z o.o.
pl. Wolnosci 7
50-071 Wroclaw
Phone: +48-71-77-49-768

~suv <email address hidden>
Sent by: <email address hidden>
04/04/2011 07:30 PM
Please respond to
Bug 750503 <email address hidden>

To
<email address hidden>
cc

Subject
[Bug 750503] Re: HSL color adjusting bars do not match RGB

> When I adjust the colors in RGB, the HSL colors do not match what I
expect

Could you please add more details about your expectations and what you get
in Inkscape, and how it differs?
Do note that Inkscape uses values ranging from 1-255 in the HSL dialog
(unlike e.g. <http://www.workwithcolor.com/hsl-color-picker-01.htm>, which
uses 1-100%).

Possibly duplicate of bug #551254 “HSL Granularity (8-bit x 3 -vs-
360/100/100)”.

** Tags added: color ui

** Changed in: inkscape
       Status: New => Incomplete

** Description changed:

- Honestly, I am no expert in colors, but I have been trying to work with
them, and doing so, I think I found a problem in Inkscape. When I adjust
the colors in RGB, the HSL colors do not match what I expect based on what
I find on web pages which explain color conversions between RGB and HSL -
for example a really nice one for easy comparison is
www.workwithcolor.com/hsl-color-picker-01.htm
+ Honestly, I am no expert in colors, but I have been trying to work with
them, and doing so, I think I found a problem in Inkscape. When I adjust
the colors in RGB, the HSL colors do not match what I expect based on what
I find on web pages which explain color conversions between RGB and HSL -
for example a really nice one for easy comparison is <
http://www.workwithcolor.com/hsl-color-picker-01.htm>
  If you get a chance, please check it out....

--
You received this bug notification because you are a direct subscriber
of the bug.
https://bugs.launchpad.net/bugs/750503

Title:
  HSL color adjusting bars do not match RGB

Status in Inkscape: A Vector Drawing Tool:
  Incomplete

Bug description:
  Honestly, I am no expert in colors, but I have been trying to work with
them, and doing so, I think I found a problem in Inkscape. When I adjust
the colors in RGB, the HSL colors do not match what I expect based on what
I find on web pages which explain color conversions between RGB and HSL -
for example a really nice one for easy comparison is <
http://www.workwithcolor.com/hsl-color-picker-01.htm>
  If you get a chance, please check it out....

To unsubscribe from this bug, go to:
https://bugs.launchpad.net/inkscape/+bug/750503/+subscribe

Revision history for this message
su_v (suv-lp) wrote :

<off-topic>
Please trim your comments if answering via email interface (no need to fully include the the previous messages(s)).
</off-topic>

Calculation example:
R 30 -> Hue 200° -> 200 / 360 * 255 = 141.67 -> 142
G 50 -> Saturation 33% -> 33 / 100 * 255 = 84.15 -> 85
B 60 -> Lightness 18% -> 18 / 100 * 255 = 45.9 -> 45

Please note that the Hue on the web page uses degrees ('°') - i.e. 360° for the full range of color hues.

AFAICT there is nothing wrong with Inkscape's calcuations (there might be differences how the values are rounded in the GUI).

Revision history for this message
Charlie (charlie-hahs) wrote :

Thank you very much for clarifying it for me.... I love using Inkscape!

Calculation example:
R 30 -> Hue 200° -> 200 / 360 * 255 = 141.67 -> 142
G 50 -> Saturation 33% -> 33 / 100 * 255 = 84.15 -> 85
B 60 -> Lightness 18% -> 18 / 100 * 255 = 45.9 -> 45

Please note that the Hue on the web page uses degrees ('°') - i.e. 360°
for the full range of color hues.

AFAICT there is nothing wrong with Inkscape's calcuations (there might
be differences how the values are rounded in the GUI).

Charlie Hahs
Diehl Controls Polska sp.z o.o.
pl. Wolnosci 7
50-071 Wroclaw
Phone: +48-71-77-49-768

Revision history for this message
su_v (suv-lp) wrote :

Sorry - there's a small detail wrong in my previous example (math isn't my strongest side either ;) - Inkscape's HSL ranging from 0-255 can have 256 distinct values):
R 30 -> Hue 200° -> 200 / 360 * 256 = 142.22 (-> 142)
G 50 -> Saturation 33% -> 33 / 100 * 256 = 84.48 (-> 85)
B 60 -> Lightness 18% -> 18 / 100 * 256 = 46.08 (-> 45)

Revision history for this message
Charlie (charlie-hahs) wrote :

I suppose after I think about it, it would make more sense to me for hue
to be in terms of degrees - I imagine there is a standard or a lot of
standards. Maybe there is an svg standard that for some reason requires
having the values in what seems to me to be odd. Probably if it were up
to me, I would make the Hue go from zero to 360

Sorry - there's a small detail wrong in my previous example (math isn't my
strongest side either ;) - Inkscape's HSL ranging from 0-255 can have 256
distinct values):
R 30 -> Hue 200° -> 200 / 360 * 256 = 142.22 (-> 142)
G 50 -> Saturation 33% -> 33 / 100 * 256 = 84.48 (-> 85)
B 60 -> Lightness 18% -> 18 / 100 * 256 = 46.08 (-> 45)

Revision history for this message
su_v (suv-lp) wrote :

> it would make more sense to me for hue to be in terms of degrees (…)
> Probably if it were up to me, I would make the Hue go from zero to 360

In this case, I will link your report as duplicate to bug #551254 “HSL Granularity (8-bit x 3 -vs- 360/100/100)” which -as far as I understand- is asking for 360°/100%/100% ranges in the HSL color settings tab instead of the currently used 0-255 ranges.

Please add a comment here and revert the duplicate status if you don't agree and think these are unrelated feature requests.

Changed in inkscape:
importance: Undecided → Wishlist
status: Incomplete → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.