HEX to HSL: #FFB86A
Also known as: Tailwind orange-300
Result
#FFB86A → hsl(31 100% 71%)
Values are shown at full precision, so converting back gives exactly #ffb86a. 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. RGB ÷ 255
R = 1.0000 G = 0.7216 B = 0.4157
2. max, min, Δ
max = 1.0000 min = 0.4157 Δ = max − min = 0.5843
3. L
L = (max + min) / 2 = 0.7078 = 70.78%
4. S
S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.7216 − 0.4157) / 0.5843) mod 6) = 31.41°
6. HSL
hsl(31.41 100.00% 70.78%)
All formats
- HEX
- #ffb86a
- RGB
- rgb(255 184 106)
- RGB (legacy)
- rgb(255, 184, 106)
- HSL
- hsl(31.41 100.00% 70.78%) → hsl(31 100% 71%)
- HWB
- hwb(31 42% 0%)
- OKLCH
- oklch(0.834 0.126 67.2) · oklch(83.4% 0.126 67.2)
- OKLab
- oklab(0.834 0.049 0.116)
- Lab (D50)
- lab(80.45 20.70 49.72)
- LCH (D50)
- lch(80.45 53.86 67.40)
- Display P3
- color(display-p3 0.9582 0.7331 0.4649)
- Linear sRGB
- color(srgb-linear 1.0000 0.4793 0.1441)
Gamut: sRGB and Display P3
#FFB86A is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.126 and Display P3 reaches 0.158; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #ffb86a;
color: rgb(255 184 106);
color: hsl(31 100% 71%);
color: oklch(0.834 0.126 67.2);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.834 0.126 67.2);
}
/* arbitrary values */
class="text-[#ffb86a] bg-[oklch(0.834_0.126_67.2)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9582 0.7331 0.4649); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #ffb86a calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 orange-300#FDBA74
- sandybrown#F4A460
- burlywood#DEB887
- amber-400#FFB900
- v3 amber-400#FBBF24
- orange#FFA500
- yellow-500#F0B100
- lightsalmon#FFA07A
Lighter and darker, same hue and chroma
- #FFCB7D · oklch(0.894 0.126 67.2) · ΔL +0.06
- #EBA556 · oklch(0.774 0.126 67.2) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?