#B2B21F color

#B2B21F is rgb(178, 178, 31) in RGB and hsl(60, 70%, 41%) in HSL. The closest CSS named color is darkkhaki (#bdb76b, ΔE 8.6). Use black text on it (contrast 9.28:1).

#B2B21Fyellow
HEX#B2B21F
RGBrgb(178, 178, 31)
RGB percentrgb(69.8%, 69.8%, 12.2%)
HSLhsl(60, 70%, 41%)
HSV / HSBhsv(60, 83%, 70%)
CMYKcmyk(0%, 0%, 83%, 30%)
CIELAB (D65)lab(70.5 -15.9 67.2)

Edit in the color converter → · Check contrast → · Shades →

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.

Color conversions

HEX#B2B21F
RGBrgb(178, 178, 31)
RGB percentrgb(69.8%, 69.8%, 12.2%)
HSLhsl(60, 70%, 41%)
HSV / HSBhsv(60, 83%, 70%)
CMYKcmyk(0%, 0%, 83%, 30%)
CIELAB (D65)lab(70.5 -15.9 67.2)
Decimal11711007
Binary10110010 10110010 00011111

HEX B2 B2 1F → 178, 178, 31 (each pair is a base-16 number: B×16 + 2 = 178)

Color harmonies

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 #B2B21FRatioAA normalAA largeAAA normalAAA large
White text2.26:1FailFailFailFail
Black text9.28:1PassPassPassPass
White text on #B2B21F
Black text on #B2B21F
#B2B21F text on white
#B2B21F text on black

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

NameHEXΔE 2000
darkkhaki#bdb76b8.6
yellowgreen#9acd3211.4
goldenrod#daa52014.7
khaki#f0e68c15.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; }

Frequently asked questions

What color is #B2B21F?
A medium-dark saturated yellow in the yellow family. Closest CSS name: darkkhaki.
What is #B2B21F in RGB?
rgb(178, 178, 31): red 178, green 178, blue 31.
What is the complementary color of #B2B21F?
#1F1FB2, found by rotating the hue 180°.