Skip to content

Brass (#B5A642)

The hex code for Brass is #B5A642. It is rgb(181, 166, 66) in RGB, hsl(52, 47%, 48%) in HSL, and about cmyk(0%, 8%, 64%, 29%) in CMYK — a mid-tone yellow. Black text is the more readable choice on this background.

#B5A642
HEX#B5A642
RGBrgb(181, 166, 66)
HSLhsl(52, 47%, 48%)
HSVhsv(52, 64%, 71%)
CMYKcmyk(0%, 8%, 64%, 29%)
OKLCHoklch(71.9% 0.121 100.8)
LABlab(67.98% -3.25 52.02)
LCHlch(67.98% 52.12 93.58)

Colors Closest to Brass

Brass is a registered color name. These are the named colors nearest to it, measured as CIE76 distance in CIELAB — a perceptual scale, so the ordering matches what the eye sees rather than how close the raw RGB numbers happen to sit.

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

#B5A642 Channel Values

How Brass 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 181 · G 166 · B 668-bit channels as sent to the display
HSLH 52° · S 47% · L 48%Easiest model for building lighter and darker variants
HSVH 52° · S 64% · V 71%Matches the picker in most design tools
CMYKC 0% · M 8% · Y 64% · K 29%Approximate ink mix; confirm with an ICC profile before printing
Luminance2.47:1 vs white · 8.5:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a Brass 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.

TextWhite text2.47:1AA normal AA large AAA normal
TextBlack text8.5:1AA normal AA large AAA normal

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

Colors That Go With Brass

Pairings derived from color-wheel relationships. The complementary color sits opposite Brass; 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 Brass

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 #B5A642.

How Brass 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#B5A642
Protanopia#A9A942
Protanomaly#AEA842
Deuteranopia#ABAB41
Deuteranomaly#AFA941
Tritanopia#BC9E9E
Tritanomaly#B9A183
Achromatopsia#A5A5A5

Test a full palette in the color blindness simulator.

Using #B5A642 in Code

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

CSS custom property--brass: #B5A642;
CSS backgroundbackground-color: #B5A642;
Tailwind configcolors: { 'brass': '#B5A642' }
SwiftUIColor(red: 0.710, green: 0.651, blue: 0.259)
Android XML<color name="brass">#B5A642</color>
SVG fillfill="#B5A642"

More Yellow Colors

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

#B5A642 Frequently Asked Questions

What is the hex code for Brass?

The hex code for Brass is #B5A642. That is rgb(181, 166, 66) in RGB, hsl(52, 47%, 48%) in HSL, and approximately cmyk(0%, 8%, 64%, 29%) in CMYK.

What is the RGB value of #B5A642?

#B5A642 is rgb(181, 166, 66) — red 181, green 166, and blue 66 on the 0-255 scale.

What is the CMYK value of #B5A642?

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

Should text on #B5A642 be black or white?

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

Can I write #B5A642 as a CSS color keyword?

No. #B5A642 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 darkkhaki (#BDB76B) at a CIE76 distance of 14.18, which is visibly different.

Open Brass in a Tool

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