#7F5017
Closest named color: Medium Brown (#7F5112). oklch(47.4% 0.094 66.3), rgb(127, 80, 23).
Aa
White text reads best on this color (6.85:1).
About this color
#7F5017 is a medium-dark, moderately saturated brown. In OKLCH its lightness is 47%, its chroma 0.094 and its hue 66°. Its hue sits on the warm side of the wheel. The nearest named color is Medium Brown (#7F5112), ΔE 0.005 away. White text reads best on it, at 6.85:1.
| Hue family | Browns |
| Lightness | medium-dark (47%) |
| Chroma | moderately saturated (0.094) |
| Temperature | warm |
| Nearest name | Medium Brown (#7F5112) |
| Black text | 3.06:1 |
| White text | 6.85:1 |
Values
| HEX | #7F5017 |
| RGB | rgb(127, 80, 23) |
| HSL | hsl(33, 69%, 29%) |
| OKLCH | oklch(47.4% 0.094 66.3) |
Contrast
WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #7F5017 | 6.85:1 | AA | Lc -88.4 | Fine for body text |
| Black text on #7F5017 | 3.06:1 | AA large text | Lc 20.6 | Dividers and decoration only |
| #7F5017 text on white | 6.85:1 | AA | Lc 83.4 | Fine for body text |
| #7F5017 text on black | 3.06:1 | AA large text | Lc -18.5 | Dividers and decoration only |
Tints and shades
A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 700.
-
Step 50
50
#F8F5F1
oklch(97.1% 0.006 75.4)
-
Step 100
100
#F0E8E1
oklch(93.5% 0.013 63.9)
-
Step 200
200
#E5D6C8
oklch(88.4% 0.025 65.5)
-
Step 300
300
#D5BBA2
oklch(80.8% 0.045 66)
-
Step 400
400
#C09870
oklch(70.7% 0.073 66.2)
-
Step 500
500
#AF7E49
oklch(63.1% 0.093 66.9)
-
Step 600
600
#9B662A
oklch(55.6% 0.101 66)
-
Step 700
700 (this color)
#7F5017
oklch(47.4% 0.094 66.3)
-
Step 800
800
#6B461A
oklch(42.7% 0.077 67.4)
-
Step 900
900
#573B1C
oklch(37.7% 0.06 67)
-
Step 950
950
#332311
oklch(27.1% 0.038 68.3)
#7F5017 with color blindness
Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #5F540E | 0.060 |
| Deuteranopia (no green cones) | #6A5F18 | 0.054 |
| Tritanopia (no blue cones) | #8B4545 | 0.073 |
| Achromatopsia (no color) | #5A5A5A | 0.094 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #7F5017
#7F5017
oklch(47.4% 0.094 66.3)
- #29608D
#29608D
oklch(47.4% 0.093 246.3)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #7F5017, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Medium Brown #7F5112 ΔE 0.005
- Milk Chocolate #7F4E1E ΔE 0.009
- Saddle Brown #8B4513 ΔE 0.033
- Mud #735C12 ΔE 0.040
- Warm Brown #964E02 ΔE 0.043
- Olive Brown #645403 ΔE 0.054
- Cocoa #875F42 ΔE 0.055
- Dirt Brown #836539 ΔE 0.058
Use #7F5017 in your product
Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.