HEX to OKLCH: #D08700
Also known as: Tailwind yellow-600
Result
#D08700 → oklch(0.682 0.146 71.5)
Values are shown at full precision, so converting back gives exactly #d08700. 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: 208/255 = 0.81569 → 0.630757 (((x + 0.055) / 1.055)^2.4) G: 135/255 = 0.52941 → 0.242281 (((x + 0.055) / 1.055)^2.4) B: 0/255 = 0.00000 → 0.000000 (÷ 12.92)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.389955 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.298580 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.123953
3. cube root
l′ = ∛0.389955 = 0.730586 m′ = ∛0.298580 = 0.668375 s′ = ∛0.123953 = 0.498599
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.68216 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.04655 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.13891
5. Oklab → OKLCH
C = √(a² + b²) = 0.14650 H = atan2(b, a) = 71.472° L = 0.68216
6. OKLCH
oklch(0.68216 0.14650 71.472) rounded: oklch(0.682 0.146 71.5)
All formats
- HEX
- #d08700
- RGB
- rgb(208 135 0)
- RGB (legacy)
- rgb(208, 135, 0)
- HSL
- hsl(38.94 100.00% 40.78%) → hsl(39 100% 41%)
- HWB
- hwb(39 0% 18%)
- OKLCH
- oklch(0.682 0.146 71.5) · oklch(68.2% 0.146 71.5)
- OKLab
- oklab(0.682 0.047 0.139)
- Lab (D50)
- lab(62.85 22.94 68.03)
- LCH (D50)
- lch(62.85 71.79 71.37)
- Display P3
- color(display-p3 0.7747 0.5422 0.1839)
- Linear sRGB
- color(srgb-linear 0.6308 0.2423 0.0000)
Gamut: sRGB and Display P3
#D08700 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.146 and Display P3 reaches 0.168; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #d08700;
color: rgb(208 135 0);
color: hsl(39 100% 41%);
color: oklch(0.682 0.146 71.5);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.682 0.146 71.5);
}
/* arbitrary values */
class="text-[#d08700] bg-[oklch(0.682_0.146_71.5)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.7747 0.5422 0.1839); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #d08700 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 yellow-600#CA8A04
- peru#CD853F
- v3 amber-600#D97706
- darkgoldenrod#B8860B
- amber-600#E17100
- chocolate#D2691E
- goldenrod#DAA520
- v3 orange-500#F97316
Lighter and darker, same hue and chroma
- #E49A2B · oklch(0.742 0.146 71.5) · ΔL +0.06
- #BC7500 · oklch(0.622 0.146 71.5) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?