RGB to HEX: #D08700

Also known as: Tailwind yellow-600

Result

rgb(208 135 0) → #D08700

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. 1. base 10 → base 16

    R = 208 = 13×16 + 0 → D0
    G = 135 = 8×16 + 7 → 87
    B = 0 = 0×16 + 0 → 00
  2. 2. pairs → HEX

    D0 87 00 → #D08700

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).

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

All converters →

Guides: What is OKLCH?