The best way to know if your color combination is right for people with color blindness is to convert the image to gray scale.
Of course, most people with color blindness will see color. But depending on the type of colorblindness, it's hard to find a combination that will work.
Guidlines for using color
- Distinguish colors by saturation and brightness, as well as hue.
- Use distinctive colors.
- Avoid color pairs that color-blind people cannot distinguish. (see bottom part of this answer)
- Use color redundantly with other cues.
- Separate strong opponent colors.
I can elaborate these points if you want.
Source: "Designing with the mind in mind", Jeff Johnson.
These points not only optimize color usage for colorblind people, but it also helps every other visitor to distinguish colors more quickly.
Different types of colorblindness:
I rendered your example through a colorblindness generator.
Deuteranopia (a.k.a. Red-Green colorblindness) - Most common:
Blue Cone Monochromacy:
Achromatopsia / Monochromacy:
Green-Blind/Deuteranopia:
Red-Weak/Protanomaly:
Blue-Weak/Tritanomaly:
Blue-Blind/Tritanopia:
Source: http://www.color-blindness.com/coblis-color-blindness-simulator/
Conclusion
In most cases, you're okay. But to be more clear, I would focus on saturation and brightness to show the difference better. Also, as Andrew Martin already said, don't only use colors to display a difference.