RGB to HEX: #713F12

Also known as: Tailwind v3 yellow-900

Result

rgb(113 63 18) → #713F12

Values are shown at full precision, so converting back gives exactly #713f12. 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 = 113 = 7×16 + 1 → 71
    G = 63 = 3×16 + 15 → 3F
    B = 18 = 1×16 + 2 → 12
  2. 2. pairs → HEX

    71 3F 12 → #713F12

All formats

HEX
#713f12
RGB
rgb(113 63 18)
RGB (legacy)
rgb(113, 63, 18)
HSL
hsl(28.42 72.52% 25.69%) → hsl(28 73% 26%)
HWB
hwb(28 7% 56%)
OKLCH
oklch(0.421 0.090 57.7) · oklch(42.1% 0.090 57.7)
OKLab
oklab(0.421 0.048 0.076)
Lab (D50)
lab(32.42 19.77 35.43)
LCH (D50)
lch(32.42 40.57 60.85)
Display P3
color(display-p3 0.4164 0.2566 0.1117)
Linear sRGB
color(srgb-linear 0.1651 0.0497 0.0060)

Gamut: sRGB and Display P3

#713F12 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.101 and Display P3 reaches 0.115; this color uses 89% of the sRGB chroma available.

CSS snippets

.element {
  color: #713f12;
  color: rgb(113 63 18);
  color: hsl(28 73% 26%);
  color: oklch(0.421 0.090 57.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.421 0.090 57.7);
}
/* arbitrary values */
class="text-[#713f12] bg-[oklch(0.421_0.090_57.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4164 0.2566 0.1117); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #713f12 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

  • #835025 · oklch(0.481 0.090 57.7) · ΔL +0.06
  • #5F2F00 · oklch(0.361 0.090 57.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?