-
Notifications
You must be signed in to change notification settings - Fork 27
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
Support RAL and FS595C color formats #180
Comments
Thanks for the suggestion! Could you tell me a bit more about where these formats are used and how popular they are? I would like to avoid adding support for something that almost nobody uses :) |
Thx for your reply. where these formats are used and how popular they are? RAL has been used since the 1920s across Europe, North America, and now China as one of the most universal standards for color charts and reference cards. It is a NGO that only provides a color system and sells color charts. If you have the RAL code for a specific color, you—or a company—can easily buy, order, collaborate with any paint or color related business to create a custom mix tailored to your needs, whether for artwork, animation & comics, wall painting, fabric production, fashion industry, or other applications. In contrast, digital color formats like RGB or HEX codes aren’t typically used in such contexts. Physical color standards like RAL serve as essential references for real-world applications, whereas digital charts are more aligned with the computer related tasks. Given your app's capability to extract and translate color codes from web images and social media, it could further serve as a powerful open-source bridge between digital and physical color spaces. By integrating support for RAL (and potentially others like presented below), your app could connect the virtual and real-world design ecosystems seamlessly. It could be used by schools, industries, architects, or even the average Joe to create his own paint mix using the color code he extracted with your tool from the website he was browsing. Although RAL is the historical and most widely used code system, here are supplementary option to consider:
|
Is your feature request related to a problem? Please describe.
Add options for color code systems like RAL (standard in Europe), Federal Standard 595C colour range (standard in the US)
Describe the solution you'd like
The model of conversion could be based e.g. on CIELAB -> RAL (Classic or design ...) using this website: https://convertingcolors.com/ral-colors.html
Color conversion between systems like RGB/HEX and RAL or FS595C is typically done through color-matching algorithms, which compare the input color to a database of standard colors and return the closest match. This can be achieved by:
Delta E (CIEDE2000): A perceptual metric used for assessing color differences, which is more complex but provides more reliable results than Euclidean distance:
Open-source libraries: Some libraries in Python (e.g., colormath, Pillow) can help convert colors between RGB, Lab, and other spaces, making it easier to calculate the nearest match.
Describe alternatives you've considered
#NA
Additional context
#NA
The text was updated successfully, but these errors were encountered: