mahogany color code
The hex code for mahogany is #C04000, which is rgb(192, 64, 0) in RGB and cmyk(0%, 67%, 100%, 25%) in CMYK. It's a dark, vivid orange. There is no official standard for mahogany; #C04000 is the value most colour references use.
Build a full palette from it: open in the palette generator.
Move the sliders to find a lighter, darker or softer mahogany; the codes update as you go.
Mahogany colour codes
| HEX | #C04000 |
|---|---|
| RGB | rgb(192, 64, 0) |
| HSL | hsl(20, 100%, 38%) |
| HSV / HSB | hsv(20, 100%, 75%) |
| CMYK | cmyk(0%, 67%, 100%, 25%) |
| Decimal | 12599296 |
About mahogany
Mahogany sits at a hue of 20° on the colour wheel, with 100% saturation and 38% lightness. That makes it a warm colour: warm colours feel energetic and inviting and appear to come forward on a page.
A reddish brown named after mahogany wood.
For text, white reads better on mahogany. Mahogany as text on a white background has a contrast ratio of 5.28:1, which passes the WCAG AA rule for body text (4.5:1). On black it is 3.97:1, which fails AA for body text.
Tints and shades of mahogany
Tints mix mahogany with white and shades mix it with black, in 10% steps. They're the easiest way to get lighter backgrounds and darker hover or text colours that still match.
Colours that go with mahogany
Complementary — opposite on the colour wheel: maximum contrast
Analogous — neighbours 30° either side: calm and natural
Triadic — three hues 120° apart: lively but balanced
Split complementary — the two neighbours of the complement: contrast with less tension
Tetradic — four hues 90° apart: rich, use one as the main colour
Mahogany text contrast
| Combination | Ratio | AA normal (4.5:1) | AA large (3:1) | AAA (7:1) |
|---|---|---|---|---|
| mahogany on white | 5.28:1 | pass | pass | fail |
| mahogany on black | 3.97:1 | fail | pass | fail |
Check mahogany against any other colour in the contrast checker.
How mahogany looks with colour blindness
Simulated with the Machado et al. (2009) model for the complete loss of one type of cone cell. Colour vision deficiency affects roughly 1 in 12 men and 1 in 200 women, most often as red-green colour blindness.
Use mahogany in code
.mahogany {
color: #c04000;
background-color: #c04000;
border-color: rgb(192, 64, 0);
}Frequently asked questions
What is the hex code for mahogany?
#C04000 is the most widely used value for mahogany. There's no official standard, so paint, fabric and brand swatches called mahogany can differ slightly; use the hex code to match it exactly on screen.
What is mahogany in RGB, HSL and CMYK?
RGB: rgb(192, 64, 0). HSL: hsl(20, 100%, 38%). CMYK: cmyk(0%, 67%, 100%, 25%). CMYK is a simple conversion for reference; for professional printing, ask your printer for a matching ink or Pantone swatch.
What colours go with mahogany?
Its complementary colour is #0080C0 (close to steel blue), which gives the strongest contrast. For a calmer look, use the analogous colours #C00020 and #C0A000, or the triadic pair #00C040 and #4000C0. Tints and shades of mahogany itself always work together.
Is mahogany a warm or cool colour?
Mahogany has a hue of 20°, which makes it warm.
Should I use black or white text on mahogany?
White. Black text on mahogany has a contrast ratio of 3.97:1 and white text has 5.28:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.
Is mahogany a CSS colour name?
No. Mahogany isn't one of the named colours built into CSS, so write it as a hex code: color: #c04000;