Skip to content

Mahogany (#C04000)

The hex code for Mahogany is #C04000. It is rgb(192, 64, 0) in RGB, hsl(20, 100%, 38%) in HSL, and about cmyk(0%, 67%, 100%, 25%) in CMYK — a dark brown. White text is the more readable choice on this background.

#C04000
HEX#C04000
RGBrgb(192, 64, 0)
HSLhsl(20, 100%, 38%)
HSVhsv(20, 100%, 75%)
CMYKcmyk(0%, 67%, 100%, 25%)
OKLCHoklch(54.9% 0.174 39.5)
LABlab(46.18% 50.63 57.97)
LCHlch(46.18% 76.96 48.87)

Colors Closest to Mahogany

Mahogany 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 brown in the library.

#C04000 Channel Values

How Mahogany 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 192 · G 64 · B 08-bit channels as sent to the display
HSLH 20° · S 100% · L 38%Easiest model for building lighter and darker variants
HSVH 20° · S 100% · V 75%Matches the picker in most design tools
CMYKC 0% · M 67% · Y 100% · K 25%Approximate ink mix; confirm with an ICC profile before printing
Luminance5.28:1 vs white · 3.97:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a Mahogany 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 text5.28:1AA normal AA large AAA normal
TextBlack text3.97:1AA normal AA large AAA normal

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

Colors That Go With Mahogany

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

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

How Mahogany 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#C04000
Protanopia#666600
Protanomaly#935900
Deuteranopia#7E7E00
Deuteranomaly#9D6B00
Tritanopia#C13C3C
Tritanomaly#C13D2E
Achromatopsia#6C6C6C

Test a full palette in the color blindness simulator.

Using #C04000 in Code

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

CSS custom property--mahogany: #C04000;
CSS backgroundbackground-color: #C04000;
Tailwind configcolors: { 'mahogany': '#C04000' }
SwiftUIColor(red: 0.753, green: 0.251, blue: 0.000)
Android XML<color name="mahogany">#C04000</color>
SVG fillfill="#C04000"

More Brown Colors

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

#C04000 Frequently Asked Questions

What is the hex code for Mahogany?

The hex code for Mahogany is #C04000. That is rgb(192, 64, 0) in RGB, hsl(20, 100%, 38%) in HSL, and approximately cmyk(0%, 67%, 100%, 25%) in CMYK.

What is the RGB value of #C04000?

#C04000 is rgb(192, 64, 0) — red 192, green 64, and blue 0 on the 0-255 scale.

What is the CMYK value of #C04000?

#C04000 converts to approximately cmyk(0%, 67%, 100%, 25%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #C04000 be black or white?

White text is the more readable choice. #C04000 scores 5.28:1 against white and 3.97:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Can I write #C04000 as a CSS color keyword?

No. #C04000 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 chocolate (#D2691E) at a CIE76 distance of 15.46, which is visibly different.

Open Mahogany in a Tool

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