HEX to OKLCH: #FFB86A
Also known as: Tailwind orange-300
Result
#FFB86A → oklch(0.834 0.126 67.2)
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. sRGB → linear
R: 255/255 = 1.00000 → 1.000000 (((x + 0.055) / 1.055)^2.4) G: 184/255 = 0.72157 → 0.479320 (((x + 0.055) / 1.055)^2.4) B: 106/255 = 0.41569 → 0.144128 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.676711 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.553655 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.314134
3. cube root
l′ = ∛0.676711 = 0.877946 m′ = ∛0.553655 = 0.821132 s′ = ∛0.314134 = 0.679785
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.83366 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.04869 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.11578
5. Oklab → OKLCH
C = √(a² + b²) = 0.12560 H = atan2(b, a) = 67.192° L = 0.83366
6. OKLCH
oklch(0.83366 0.12560 67.192) rounded: oklch(0.834 0.126 67.2)
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?