Every color has a perfect contrast color black=white, yellow=blue,purple=green, etc.. So how can I find a perfect contrast color for any give rgb value? Is there a formula or something I can use?

#### Linked Questions

- multidimensional images raw data format
- How to calculate time span from timestamps?
- Where can I find a "Math topic dependency tree" to assist my self-guided refresher on the subject?
- What does the term "BODMAS" mean?
- How do you calculate the height of a triangle given only the hypotenuse and the ratio of the other two sides?
- Mathematical problem
- Determine position of number in a grid of numbers centered around 0 and increasing in spiral
- Interview question: f(f(x)) == 1/x
- Is programming a subset of math?
- How can I best fill the gaps of my mathematics knowledge?
- Formula for percentage
- Pascal's Theorem for non-unique sets?
- Essential Math for excelling as a Programmer?
- In what areas of programming is a knowledge of mathematics helpful?
- Generate my own algebra worksheets to print and use

#### Popular Questions

- Dynamic partition in hive
- Woocommerce Different Products Different Currency
- Rails render js file but can't execute it
- My rotated TextView is cut off. What i have to do?
- Store object created by gson in greenDao
- Clicking on array of images to add them to Konva stage
- How to sort a Google Charts DataTable or DataView using a function?
- 2 column layout looping through MVC model c#
- Integrating SVN with TFS
- Rails - after_initialize or initializer

## 1 Answers

#### Related Questions

- Find number range intersection
- Calculating determinant of a matrix
- Is mathematics necessary for programming?
- Which particular software development tasks have you used math for? And which branch of math did you use?
- How to calculate percentages?
- How many candles are in the box?
- Math, programming, and learning
- Ellipse bounding a rectangle
- Coordinate system Transitions
- Scalar triple product and the Determinate
- Determine place values for any base
- Math question: How know section number on a list
- When is it appropriate to use floating precision data types?
- Add distance onto coordinate
- Is there a way to find the row of a given cell in an ordered matrix?

Inverting all bits in RGBA will get you an opposite color