We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to choose right color combination to the Barcode?

Platform: Xamarin.Android |
Control: SfBarcode

How to choose right color combination to the Barcode?

While customizing the barcode main thing to consider color combinations, which is important to choose right color combination to the barcode for recognizing with scanner. This article explains you about how to choose right color combination to the Barcode in Xamarin Android.


Barcode color can be customized by the DarkBarBrush and LightBarBrush properties. It’s important to use light colors for the background and dark colors for the barcode.


Right color combination

Below are color combinations are scan-able. The best contrast is obtained when the background reflects all the light and the bars reflect none which can that can work for barcode labels. Dark and light color combination will always work with all type of Barcodes.



D:\Documents_Subbu\April\Color Barcode\Screenshot_2016-04-15-14-56-30.pngD:\Documents_Subbu\April\Color Barcode\Screenshot_2016-04-15-14-56-54.pngD:\Documents_Subbu\April\Color Barcode\Screenshot_2016-04-15-14-57-16.png


Black on White                                Blue on White                                                Green on White





D:\Documents_Subbu\April\Color Barcode\Screenshot_2016-04-15-14-58-09.png D:\Documents_Subbu\April\Color Barcode\Screenshot_2016-04-15-14-58-32.png D:\Documents_Subbu\April\Color Barcode\Screenshot_2016-04-15-14-58-58.png


Black on Yellow                                Blue on Yellow                                                Green on Yellow




 D:\Documents_Subbu\April\Color Barcode\Screenshot_2016-04-15-14-59-55.png D:\Documents_Subbu\April\Color Barcode\Screenshot_2016-04-15-15-00-18.png D:\Documents_Subbu\April\Color Barcode\Screenshot_2016-04-15-15-00-38.png


Black on Red                                                Blue on Red                                Green on Red



Wrong Color Combination


If the background and bar colors, both are too light or too dark, the scanner won’t be able to read the barcode label. Below are color combinations are Non scan-able.




  D:\Documents_Subbu\April\Color Barcode\Screenshot_2016-04-15-15-02-09.pngD:\Documents_Subbu\April\Color Barcode\Screenshot_2016-04-15-15-02-30.pngD:\Documents_Subbu\April\Color Barcode\Screenshot_2016-04-15-15-03-31.png


Red on White                                                Yellow on White                                Light Brown on White




  D:\Documents_Subbu\April\Color Barcode\Screenshot_2016-04-15-15-04-37.png D:\Documents_Subbu\April\Color Barcode\Screenshot_2016-04-15-15-05-44.png D:\Documents_Subbu\April\Color Barcode\Screenshot_2016-04-15-15-06-08.png


Black on Yellow                                                Black on Green                                Black on Blue




   D:\Documents_Subbu\April\Color Barcode\Screenshot_2016-04-15-15-06-36.pngD:\Documents_Subbu\April\Color Barcode\Screenshot_2016-04-15-15-07-00.png D:\Documents_Subbu\April\Color Barcode\Screenshot_2016-04-15-15-07-47.png


Red on Blue                                                Green on Blue                                                Brown on Blue



2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile