Mahogany Color Codes
Mahogany is a mid-tone, vivid red-orange with the hex code #C04000, RGB values of 192, 64, 0 and an HSL value of hsl(20, 100%, 38%).
| HEX | #C04000 |
|---|---|
| RGB | 192, 64, 0 |
| HSL | hsl(20, 100%, 38%) |
| HSV | 20°, 100%, 75% |
| CMYK | 0%, 67%, 100%, 25% |
| LAB | 45.47, 49.21, 56.68 |
| CIELCHuv | 45.47, 111.16, 19.83° |
- Nearest Pantone
- PMS 173 C ΔE 6.1 · approximate
- Nearest CSS name
-
chocolateΔE 16.1
Source Wikipedia, List of colors
Mahogany Color Hex Code
The Mahogany color hex code is #C04000. Those six digits are three pairs, C0 for red, 40 for green and 00 for blue, which is the same triplet a browser reads from the CSS value below.
#C04000
Mahogany Color RGB Code
The Mahogany RGB code is rgb(192, 64, 0). Red carries the most light at 192 of 255, which is what puts this color where it sits on the wheel.
rgb(192, 64, 0)
Mahogany Color HSV Code
The Mahogany HSV code is 20°, 100%, 75%. Read it as a hue of 20 degrees, 100% saturation and 75% value, which is the form most color pickers use because moving one number changes one thing.
20°, 100%, 75%
Mahogany Color CIELChuv Code
The Mahogany CIELCHuv code is 45.47, 111.16, 19.83°. Unlike hex or RGB this one is perceptual: lightness 45 means mid-toned to the eye rather than to the screen, and chroma 111 is how far it sits from grey.
45.47, 111.16, 19.83°
Tonal scale
What are Mahogany Color Palettes?
A shade mixes toward black, a tint toward white, a tone toward grey. Every step keeps the hue and is copy-ready.
Shades, toward black
Tints, toward white
Tones, toward grey
Palettes
What are Mahogany Color Palette Codes?
Each of these is a hue rotation from #C04000. They are generated, not curated, so they are exact.
Complementary
Directly opposite sits #0080C0, a mid-tone, vivid azure blue. No other pairing separates two hues further, so this is the one to reach for when a single element has to win attention. Both are saturated, so give the complement much less area than the base or the two will fight.
Analogous
#C00020 and #C0A000 sit 30 degrees either side. All three share most of their hue, so the set reads as one family instead of three separate decisions. Good for backgrounds and for state variations that should not announce themselves.
Triadic
#00C040 and #4000C0 complete an even 120 degree split. Three fully independent hues, so one has to lead: keep this base dominant and let the other two appear in small quantities.
Split-complementary
Instead of the direct complement, this takes the two hues either side of it: #00C0A0 and #0020C0. Almost the same contrast, without the edge shimmer a true complementary pair produces at high saturation.
Tetradic
Two complementary pairs forming a rectangle: this base with #0080C0, and #20C000 with #A000C0. The richest of the five and the hardest to balance, so treat this base as the lead and hold the other three well back.
Accessibility
Contrast checker: is Mahogany accessible?
Measured against white and against black, with a separate verdict for each element type. Small text, large text and UI components have different thresholds, so one pass or fail for the whole color would be wrong roughly a third of the time.
White background
5.28:15.28
contrast ratio on white background
| Element | AA | AAA |
|---|---|---|
| Small text needs 4.5:1 / 7:1 | Passes | Fails |
| Large text needs 3:1 / 4.5:1 | Passes | Passes |
| UI component needs 3:1 | Passes | n/a |
Black background
3.97:13.97
contrast ratio on black background
| Element | AA | AAA |
|---|---|---|
| Small text needs 4.5:1 / 7:1 | Fails | Fails |
| Large text needs 3:1 / 4.5:1 | Passes | Fails |
| UI component needs 3:1 | Passes | n/a |
Mahogany clears WCAG AA against white at 5.28:1, so it is safe for body copy as well as headings. Text placed on it should be white, which gives 5.28:1. It is a highly saturated color, so it will dominate anything it sits beside. Give it space rather than surrounding it with other strong colors.
Color vision
How Mahogany looks with color blindness
Around 300 million people see color differently from the way it is specified. Each card shows the actual color beside how it appears, and how common that form of vision is.
Protanopia
About 1% of men#9A991D
Mahogany changes substantially here. ΔE 64.9
No working red cones. Reds darken sharply and drift toward the same muddy olive as green.
Deuteranopia
About 1% of men#9FA721
Mahogany changes substantially here. ΔE 70.9
No working green cones. With the milder deuteranomaly at nearer 6% of men, this is by far the most common form, and the one worth designing around.
Tritanopia
About 1 in 10,000#BC292B
Mahogany shifts noticeably here. ΔE 22.3
No working blue cones. Blues shift toward green and yellows toward pink. Rare, and unlike the others it is not sex-linked, so it affects men and women equally.
Achromatopsia
About 1 in 30,000#6C6C6C
Mahogany changes substantially here. ΔE 75.1
No color vision at all. Also a fair proxy for how the color survives a greyscale print or a failing screen.
To a deuteranope, the most common form, Mahogany reads as #9FA721. That is a shift of ΔE 70.9, so it is a different color to roughly one man in sixteen. It sits in the red end of the spectrum, which is exactly where red-green deficiency does its damage. Never pair it with a green of similar lightness to signal a difference in meaning: to a large minority the two become one color. The widest shift is under deuteranopia, at ΔE 70.9. The rule this leads to needs no simulator: never let color be the only thing carrying a message. Add a label, an icon, or a clear difference in lightness, and the problem disappears for everyone.
Snippets
Using Mahogany in code
:root {
--mahogany: #C04000;
}
.example {
color: var(--mahogany);
}
// tailwind.config.js
theme: {
extend: {
colors: {
'mahogany': '#C04000',
},
},
}
// SwiftUI takes 0–1 components, not 0–255.
let mahogany = Color(
red: 0.753,
green: 0.251,
blue: 0.000
)
<!-- res/values/colors.xml -->
<color name="mahogany">#C04000</color>
// Flutter wants ARGB: FF for full opacity, then the hex.
const mahogany = Color(0xFFC04000);