💡 Click on any color value below to copy it to clipboard
Running Number
11,807,271
HEX
#B42A27
RGB
180, 42, 39
HSL
1°,64%,43%
HSV
1°,78%,71%
CMYK
0%,77%,78%,29%
Brightness
33%
Type
Dark
AA Normal Text: ≥ 4.5:1
AA Large Text: ≥ 3.0:1
AAA Normal Text: ≥ 7.0:1
AAA Large Text: ≥ 4.5:1
#B42A27 sits at 1° on the color wheel, placing it in the red family of the warm half of the spectrum. With 64% saturation and 43% lightness, it reads as a moderately saturated, shadowed tone — a balanced mid-energy presence that sits comfortably alongside other UI tones. Its RGB mix of 180, 42, 39 produces a 6.36:1 contrast ratio against white, which clears WCAG AA for body text in that pairing.
In RGB space #B42A27 is a close cousin of CSS firebrick — about 10 units away from #B22222. Designers reach for red hues at this saturation when the brief calls for a conversational, mid-energy register, and at this lightness when they want a present, comfortable mid-canvas voice. On screen the warm cast tends to pair best with cool neutrals around 210°-230° to balance temperature.
See how this color appears in real UI elements
Button (filled)
Badge
Progress Bar
Link Hover
Input Focus Ring
Checkbox Active
Toggle Switch On
Slider Thumb
Card Border
Icon Highlight
Tooltip Background
Modal Header
Tab Active
Alert Box
Timeline Dot
Loading Spinner
Dropdown Selected
Table Row Highlight
Calendar Date
Mobile Device
See how to use #B42A27 in different programming languages
| Platform | Languages |
|---|---|
| Frontend | |
| Mobile | |
| Backend | |
| Others |
document.getElementById("box").style.backgroundColor = "#b42a27";💡 Click any tab to see how to use #b42a27 in different programming languages