this post was submitted on 16 Dec 2025
5 points (100.0% liked)

No Stupid Questions

3515 readers
155 users here now

There is no such thing as a Stupid Question!

Don't be embarrassed of your curiosity; everyone has questions that they may feel uncomfortable asking certain people, so this place gives you a nice area not to be judged about asking it. Everyone here is willing to help.


Reminder that the rules for lemmy.ca still apply!


Thanks for reading all of this, even if you didn't read all of this, and your eye started somewhere else, have a watermelon slice 🍉.


founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] berdandy@lemmy.ca 6 points 1 day ago* (last edited 1 day ago) (2 children)

"Pure Orange" is generally:

  • red: 100%
  • green: 50%
  • blue: 0%

So a linear equivalent in hex to that extremely dark red would be: #0F0800

However, perceptual colour rules are rarely so simple. The correct way for any colour would be to do a mathematical transformation to HSV, make the hue shift from 0° (red) to 30° (orange), and transform it back. Surprise, you get the same value.

[–] hikaru755@lemmy.world 2 points 1 day ago* (last edited 1 day ago)

If you want perceptual accuracy, HSV won't do anything for you, under the hood it still operates in the same RGB space so any math you do in it won't be perceptually linear. You'll want to transform into a perceptually based color space like OKLCH first.

The dark red in question, #0f0000, corresponds to oklch(0.1058 0.0434 29.23), in which 29.23 is the hue component that we need to change to get from red to orange. Pure orange (#ffa500) is oklch(0.7927 0.171 70.67), so we can take the 70.67 from that and plug it into the dark red value to get oklch(0.1058 0.0434 70.67). That would be the orange that has perceptually the same* brightness and saturation as the dark red. Unfortunately, that color is so dark and saturated that current displays can't show it. The closest color to it in the RGB space would be #0c0200 which is only half as saturated, but that's the closest you're gonna get.

Here's a super cool online tool that let's you play around in the OKLCH color space with nice visualizations: https://oklch.com/#0.1058,0.0434,70.67,100

* color perception is really difficult, and there are several perceptual color spaces that will all give you slightly different "proper" results, but all of them are vastly better than just using RGB/HSV.

load more comments (1 replies)