#28A745 Hex Color
Online color picker to view shades, tints, color codes, and complementary colors

This saturated, high-intensity green commands attention without feeling aggressive. It works best as a functional accent, such as for success states or call-to-action buttons, rather than a large background. Pair #28a745 with deep charcoals to maximize legibility. Because it provides excellent contrast against black text, the hex code #28a745 remains a reliable choice for accessible UI components.
Questions about #28a745
What is #28a745 in RGB, HSL and CMYK?
In RGB, #28a745 is rgb(40, 167, 69), in HSL hsl(134, 61%, 41%) and in CMYK 76%, 0%, 59%, 35%.
Why is #28a745 so popular for user interfaces?
The #28a745 hex color strikes a perfect balance between vibrancy and legibility, serving as the standard choice for success indicators. It effectively draws attention to valid actions without overwhelming the UI, providing a clear visual signal that remains accessible on most interface backgrounds.
Which colors pair well with #28a745?
High-contrast neutrals like charcoal make #28a745 pop without clashing, which is critical for maintaining readable text. If you need a secondary accent to balance your palette, use desaturated blues to keep the design grounded while allowing this green to remain the primary functional focus.
Is #28a745 readable on white or black?
#28a745 has a 3.13:1 contrast ratio on white and 6.70:1 on black. WCAG asks for 4.5:1 for body text and 3:1 for large text, so on white it works only for large text (24px, or 18.5px bold) and on black it works for body text. Try other pairs in the contrast checker.