Skip to content

#B2A42A Color

#B2A42A is rgb(178, 164, 42) in RGB, hsl(54, 62%, 43%) in HSL, and about cmyk(0%, 8%, 76%, 30%) in CMYK. It has no registered color name of its own — the closest is Brass (#B5A642), clearly related but distinguishable side by side at ΔE 8.36. Black text is the more readable choice on this background.

#B2A42A
HEX#B2A42A
RGBrgb(178, 164, 42)
HSLhsl(54, 62%, 43%)
HSVhsv(54, 76%, 70%)
CMYKcmyk(0%, 8%, 76%, 30%)
OKLCHoklch(71% 0.136 102.5)
LABlab(67.02% -4.47 60.23)
LCHlch(67.02% 60.40 94.24)

What #B2A42A Is Called

Most hex codes have no name: there are 16.7 million of them and a few thousand registered names. These are the named colors nearest to #B2A42A, ordered by CIE76 distance in CIELAB. Anything under about ΔE 2 is a difference most people cannot see.

Browse the full index of named colors A-Z or every yellow in the library.

#B2A42A Channel Values

How #B2A42A breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.

ModelChannelsNotes
RGBR 178 · G 164 · B 428-bit channels as sent to the display
HSLH 54° · S 62% · L 43%Easiest model for building lighter and darker variants
HSVH 54° · S 76% · V 70%Matches the picker in most design tools
CMYKC 0% · M 8% · Y 76% · K 30%Approximate ink mix; confirm with an ICC profile before printing
Luminance2.55:1 vs white · 8.24:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a #B2A42A background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.

Fails AAWhite text2.55:1AA normal AA large AAA normal
TextBlack text8.24:1AA normal AA large AAA normal

Need a specific ratio against another background? Open #B2A42A in the contrast checker.

Colors That Go With #B2A42A

Pairings derived from color-wheel relationships. The complementary color sits opposite #B2A42A; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.

Base
Complementary
Analogous
Analogous
Triadic
Triadic
Split comp.
Split comp.

Tints & Shades of #B2A42A

Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.

Tints

Shades

Want a full 50-950 ramp with semantic roles? Generate design tokens from #B2A42A.

How #B2A42A Looks with Color Vision Deficiency

Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.

Typical#B2A42A
Protanopia#A6A62A
Protanomaly#ABA62A
Deuteranopia#A9A928
Deuteranomaly#ADA729
Tritanopia#BA9B9B
Tritanomaly#B79F7D
Achromatopsia#A2A2A2

Test a full palette in the color blindness simulator.

Using #B2A42A in Code

Copy-ready declarations for the places this color usually ends up.

CSS custom property--color-b2a42a: #B2A42A;
CSS backgroundbackground-color: #B2A42A;
Tailwind configcolors: { 'color-b2a42a': '#B2A42A' }
SwiftUIColor(red: 0.698, green: 0.643, blue: 0.165)
Android XML<color name="color_b2a42a">#B2A42A</color>
SVG fillfill="#B2A42A"

More Yellow Colors

#B2A42A sits in the yellow family. These are its neighbours across that family's full range, each with its own breakdown.

#B2A42A Frequently Asked Questions

What color is #B2A42A?

#B2A42A is a mid-tone yellow — rgb(178, 164, 42) in RGB and hsl(54, 62%, 43%) in HSL. It carries no registered color name of its own; the closest named color is Brass (#B5A642), which is clearly related but distinguishable side by side at a CIE76 distance of 8.36.

What is the RGB value of #B2A42A?

#B2A42A is rgb(178, 164, 42) — red 178, green 164, and blue 42 on the 0-255 scale.

What is the CMYK value of #B2A42A?

#B2A42A converts to approximately cmyk(0%, 8%, 76%, 30%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #B2A42A be black or white?

Black text is the more readable choice. #B2A42A scores 2.55:1 against white and 8.24:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Can I write #B2A42A as a CSS color keyword?

No. #B2A42A is not one of the CSS color keywords, so it has to be written as a hex, rgb() or hsl() value. The closest keyword is olive (#808000) at a CIE76 distance of 16.24, which is visibly different.

Open #B2A42A in a Tool

Keep exploring: every yellow in the color library, the guide to shades of yellow, or the full color library.