HEX to OKLCH: #B45309
Also known as: Tailwind v3 amber-700
Result
#B45309 → oklch(0.555 0.146 49.0)
Values are shown at full precision, so converting back gives exactly #b45309. 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. sRGB → linear
R: 180/255 = 0.70588 → 0.456411 (((x + 0.055) / 1.055)^2.4) G: 83/255 = 0.32549 → 0.086500 (((x + 0.055) / 1.055)^2.4) B: 9/255 = 0.03529 → 0.002732 (÷ 12.92)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.234676 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.155889 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.066392
3. cube root
l′ = ∛0.234676 = 0.616817 m′ = ∛0.155889 = 0.538194 s′ = ∛0.066392 = 0.404922
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.55528 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.09546 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.10981
5. Oklab → OKLCH
C = √(a² + b²) = 0.14551 H = atan2(b, a) = 48.998° L = 0.55528
6. OKLCH
oklch(0.55528 0.14551 48.998) rounded: oklch(0.555 0.146 49.0)
All formats
- HEX
- #b45309
- RGB
- rgb(180 83 9)
- RGB (legacy)
- rgb(180, 83, 9)
- HSL
- hsl(25.96 90.48% 37.06%) → hsl(26 90% 37%)
- HWB
- hwb(26 4% 29%)
- OKLCH
- oklch(0.555 0.146 49.0) · oklch(55.5% 0.146 49.0)
- OKLab
- oklab(0.555 0.095 0.110)
- Lab (D50)
- lab(47.46 37.77 54.90)
- LCH (D50)
- lch(47.46 66.64 55.47)
- Display P3
- color(display-p3 0.6582 0.3471 0.1360)
- Linear sRGB
- color(srgb-linear 0.4564 0.0865 0.0027)
Gamut: sRGB and Display P3
#B45309 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.149 and Display P3 reaches 0.169; this color uses 98% of the sRGB chroma available.
CSS snippets
.element {
color: #b45309;
color: rgb(180 83 9);
color: hsl(26 90% 37%);
color: oklch(0.555 0.146 49.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.555 0.146 49.0);
}
/* arbitrary values */
class="text-[#b45309] bg-[oklch(0.555_0.146_49.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6582 0.3471 0.1360); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #b45309 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- amber-700#BB4D00
- yellow-700#A65F00
- v3 orange-700#C2410C
- sienna#A0522D
- v3 yellow-700#A16207
- orange-700#CA3500
- chocolate#D2691E
- amber-800#973C00
Lighter and darker, same hue and chroma
- #C86526 · oklch(0.615 0.146 49.0) · ΔL +0.06
- #A04100 · oklch(0.495 0.146 49.0) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?