#5B402F
Closest named color: Purple Brown (#673A3F). oklch(39.7% 0.047 53.1), rgb(91, 64, 47).
Aa
White text reads best on this color (9.46:1).
About this color
#5B402F is a dark, muted brown. In OKLCH its lightness is 40%, its chroma 0.047 and its hue 53°. Its hue sits on the warm side of the wheel. The nearest named color is Purple Brown (#673A3F), ΔE 0.042 away. White text reads best on it, at 9.46:1.
| Hue family | Browns |
| Lightness | dark (40%) |
| Chroma | muted (0.047) |
| Temperature | warm |
| Nearest name | Purple Brown (#673A3F) |
| Black text | 2.21:1 |
| White text | 9.46:1 |
Values
| HEX | #5B402F |
| RGB | rgb(91, 64, 47) |
| HSL | hsl(23, 32%, 27%) |
| OKLCH | oklch(39.7% 0.047 53.1) |
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 #5B402F | 9.46:1 | AAA | Lc -96.1 | Preferred for body text |
| Black text on #5B402F | 2.21:1 | Fails | Lc 12.1 | Not readable |
| #5B402F text on white | 9.46:1 | AAA | Lc 91.8 | Preferred for body text |
| #5B402F text on black | 2.21:1 | Fails | Lc -10.6 | Not readable |
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 900.
-
Step 50
50
#F8F5F3
oklch(97.2% 0.004 56.4)
-
Step 100
100
#F0E8E4
oklch(93.6% 0.01 48.6)
-
Step 200
200
#E4D6CE
oklch(88.5% 0.019 51.9)
-
Step 300
300
#D4BBAC
oklch(80.9% 0.035 53)
-
Step 400
400
#BD9880
oklch(70.8% 0.056 54.6)
-
Step 500
500
#AC7E60
oklch(63.1% 0.071 54.1)
-
Step 600
600
#976647
oklch(55.5% 0.078 52.8)
-
Step 700
700
#815538
oklch(49.1% 0.072 53.6)
-
Step 800
800
#69462F
oklch(42.8% 0.06 53.8)
-
Step 900
900 (this color)
#5B402F
oklch(39.7% 0.047 53.1)
-
Step 950
950
#322219
oklch(26.9% 0.029 50.4)
#5B402F 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) | #48422E | 0.035 |
| Deuteranopia (no green cones) | #4E482F | 0.033 |
| Tritanopia (no blue cones) | #623B3C | 0.032 |
| Achromatopsia (no color) | #464646 | 0.047 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #5B402F
#5B402F
oklch(39.7% 0.047 53.1)
- #2C4B5C
#2C4B5C
oklch(39.6% 0.047 233.7)
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 #5B402F, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Purple Brown #673A3F ΔE 0.042
- Mud Brown #60460F ΔE 0.045
- Charcoal Grey #3C4142 ΔE 0.059
- Green Brown #544E03 ΔE 0.071
- Chestnut #742802 ΔE 0.071
- Brownish Purple #76424E ΔE 0.073
- Onyx #343A40 ΔE 0.079
- Dark Slate Gray #2F4F4F ΔE 0.080
Use #5B402F 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.