HSL to HEX: #78350F
Also known as: Tailwind v3 amber-900
Result
hsl(21.71 77.78% 26.47%) → #78350F
Values are shown at full precision, so converting back gives exactly #78350f. The rounded form is what you normally paste into CSS.
Step-by-step math
Every number below is computed from the input, nothing is looked up.
1. input
H = 21.71°, S = 77.78%, L = 26.47%
2. C
C = (1 − |2L − 1|) × S = 0.41177
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.14899 (H / 60° = 0.3618, sector 0)
4. m
m = L − C / 2 = 0.05882
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.41177, 0.14899, 0.00000) R = round((0.41177 + 0.05882) × 255) = 120 G = round((0.14899 + 0.05882) × 255) = 53 B = round((0.00000 + 0.05882) × 255) = 15
6. RGB → HEX
#78350F
All formats
- HEX
- #78350f
- RGB
- rgb(120 53 15)
- RGB (legacy)
- rgb(120, 53, 15)
- HSL
- hsl(21.71 77.78% 26.47%) → hsl(22 78% 26%)
- HWB
- hwb(22 6% 53%)
- OKLCH
- oklch(0.414 0.105 45.9) · oklch(41.4% 0.105 45.9)
- OKLab
- oklab(0.414 0.073 0.076)
- Lab (D50)
- lab(31.25 28.29 36.34)
- LCH (D50)
- lch(31.25 46.05 52.10)
- Display P3
- color(display-p3 0.4376 0.2228 0.1007)
- Linear sRGB
- color(srgb-linear 0.1878 0.0356 0.0048)
Gamut: sRGB and Display P3
#78350F is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.116 and Display P3 reaches 0.132; this color uses 90% of the sRGB chroma available.
CSS snippets
.element {
color: #78350f;
color: rgb(120 53 15);
color: hsl(22 78% 26%);
color: oklch(0.414 0.105 45.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.414 0.105 45.9);
}
/* arbitrary values */
class="text-[#78350f] bg-[oklch(0.414_0.105_45.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4376 0.2228 0.1007); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #78350f calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- amber-900#7B3306
- v3 orange-900#7C2D12
- orange-900#7E2A0C
- yellow-900#733E0A
- v3 yellow-900#713F12
- v3 red-900#7F1D1D
- red-900#82181A
- saddlebrown#8B4513
Lighter and darker, same hue and chroma
- #8B4623 · oklch(0.474 0.105 45.9) · ΔL +0.06
- #652400 · oklch(0.354 0.105 45.9) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?