[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/gd/ - Graphic Design

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • Additional supported file types are: PDF

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: buttons-hsl-vs-oklch.png (9 KB, 343x218)
9 KB
9 KB PNG
I'm a frontend dev and just recently found out about color spaces with "perceptually uniform lightness", like LCH or LAB. I started reading on OKLCH and how it's a 'game changer' for accessible colors and dynamic hue swaps since it just got implemented into CSS last year.

Basically, hues in RGB spaces don't have uniform brightness to the eye and if you want to say, change the hue of a blue button to yellow, you have to modify its brightness too. I was promised through all the articles I read I could just change the hue slider and perceptual brightness would remain the same on LCH, but that doesn't seem to be the case in some palettes.

Is this how it's supposed to work or what's going on? I made a quick test and the contrast variation between hues is still quite noticeable

https://codepen.io/throwawaytrash/pen/ExzwGJe
>>
lol bro trying to answer an aesthetic/art theoretical question with code
>>
fuck the bloat and big slow, de-facto proprietary software. of course calculating color values this way sounds very useful for maintaining good contrast e.g. swapping accent colors in some ui toolkit without manual tweaking, but the web browser itself is a horrible out-of-happenstance contraption from software design, performance and user privacy standpoint, the w3c standards organization is basically google inc. throwing more shit at chromium. it doesn't matter what they add, i find it very difficult to be excited about anything additional that gets thrown into the infinitely long and complex web "standards" document which defines the infinite feature creep of chromium which is basically proprietary due to this complexity, making the web page renderer contrary to the original intent, a very non-open, non-portable and centralized technology. besides something more minimal that can replace a web browser, i hope platorm native, actually performant software makes a comeback and can use some of the webshitter ideas better.
>>
>>455474
wdym? isn't perceivable brightness similar in the right example???
>>
File: image (7).jpg (38 KB, 469x242)
38 KB
38 KB JPG
>>455477
same birghness, same chroma, if i change hue perceivable brightness in oklch still differs in some cases, sometimes more than i was expecting. articles and videos keep selling oklch as a solution to the brightness difference present in rgb/hsl
>>
File: images (5) (1).jpg (40 KB, 554x554)
40 KB
40 KB JPG
>>455474
I don't know why zoomers want to make everything so complicated. Just use a color wheel bro
>>
File: 1717867359379777.gif (1.2 MB, 312x346)
1.2 MB
1.2 MB GIF
>>455479
i dont think you know what the thread is about
>>
File: LAB.png (371 KB, 1082x490)
371 KB
371 KB PNG
>>455478
gotcha! I mean it is a lot better than HSL, but yea... pretty bad according to LAB!

don't do web stuff a lot, so I am ignorant which protocols are available there.
but if you are interested in digital color science OKLAB might be interesting as well? one of the most true to eye color spaces that I know of (not that this would be worth particularly much, but eyyyyy, das life). of course regular LAB being the standard photoshop solution to these issues.

>>455481
don't be ageist! they can't help the cognitive symptoms of physiological dicline.
it will happen to us as well!

>>455479
don't worry!
we are just talking about something dumb like pokemon and hope to one day be as knowledgeable as you are!



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.