About #B2B21F
#B2B21F is a medium-dark, saturated yellow with a hue angle of 60°. It belongs to the yellow family and reads as a warm color. In the RGB model red is the strongest channel at 178 (70%) and blue the weakest at 31 (12%). Colors like this are typically used for headers, navigation bars and strong brand areas.
- It is step 600 in the generated yellow scale on this site.
Color conversions
| HEX | #B2B21F |
|---|---|
| RGB | rgb(178, 178, 31) |
| RGB percent | rgb(69.8%, 69.8%, 12.2%) |
| HSL | hsl(60, 70%, 41%) |
| HSV / HSB | hsv(60, 83%, 70%) |
| CMYK | cmyk(0%, 0%, 83%, 30%) |
| CIELAB (D65) | lab(70.5 -15.9 67.2) |
| Decimal | 11711007 |
| Binary | 10110010 10110010 00011111 |
HEX B2 B2 1F → 178, 178, 31 (each pair is a base-16 number: B×16 + 2 = 178)
Color harmonies
Complementary
Analogous
Triadic
Split-complementary
Tetradic
Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.
Tints and shades of #B2B21F
Tints (mixed with white)
Shades (mixed with black)
Tones (mixed with gray)
Contrast and accessibility
| Text on #B2B21F | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White text | 2.26:1 | Fail | Fail | Fail | Fail |
| Black text | 9.28:1 | Pass | Pass | Pass | Pass |
Relative luminance is 0.4140 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.
Color blindness simulation
Protanopia#c1aa00
Deuteranopia#c3ae2e
Tritanopia#bfa698
Achromatopsia#acacac
With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 5.6). Do not rely on it alone to signal status; add an icon or text label. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.
Similar named colors
| Name | HEX | ΔE 2000 |
|---|---|---|
| darkkhaki | #bdb76b | 8.6 |
| yellowgreen | #9acd32 | 11.4 |
| goldenrod | #daa520 | 14.7 |
| khaki | #f0e68c | 15.2 |
CSS
.element {
color: #b2b21f;
background-color: rgb(178, 178, 31);
border: 1px solid hsl(60, 70%, 41%);
box-shadow: 0 2px 8px rgb(178 178 31 / 50%);
}
:root { --brand: #b2b21f; }