![How to Use Color Choosers (The Java™ Tutorials > Creating a GUI With Swing > Using Swing Components) How to Use Color Choosers (The Java™ Tutorials > Creating a GUI With Swing > Using Swing Components)](https://docs.oracle.com/javase/tutorial/figures/uiswing/components/ColorChooserDemoMetal.png)
How to Use Color Choosers (The Java™ Tutorials > Creating a GUI With Swing > Using Swing Components)
Derives a color by adding the specified offsets to the base color's hue, saturation, and brightness values : Color « 2D Graphics « Java Tutorial
![user interface - Given a background color, how to get a foreground color that makes it readable on that background color? - Stack Overflow user interface - Given a background color, how to get a foreground color that makes it readable on that background color? - Stack Overflow](https://i.stack.imgur.com/4sPqP.jpg)
user interface - Given a background color, how to get a foreground color that makes it readable on that background color? - Stack Overflow
![Digital postprocessing and image segmentation for objective analysis of colorimetric reactions | Nature Protocols Digital postprocessing and image segmentation for objective analysis of colorimetric reactions | Nature Protocols](https://media.springernature.com/lw685/springer-static/image/art%3A10.1038%2Fs41596-020-00413-0/MediaObjects/41596_2020_413_Fig1_HTML.png)