RGB to HEX: #78350F

Also known as: Tailwind v3 amber-900

Result

rgb(120 53 15) → #78350F

Values are shown at full precision, so converting back gives exactly #78350f. 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 = 120 = 7×16 + 8 → 78
    G = 53 = 3×16 + 5 → 35
    B = 15 = 0×16 + 15 → 0F
  2. 2. pairs → HEX

    78 35 0F → #78350F

All formats

HEX
#78350f
RGB
rgb(120 53 15)
RGB (legacy)
rgb(120, 53, 15)
HSL
hsl(21.71 77.78% 26.47%) → hsl(22 78% 26%)
HWB
hwb(22 6% 53%)
OKLCH
oklch(0.414 0.105 45.9) · oklch(41.4% 0.105 45.9)
OKLab
oklab(0.414 0.073 0.076)
Lab (D50)
lab(31.25 28.29 36.34)
LCH (D50)
lch(31.25 46.05 52.10)
Display P3
color(display-p3 0.4376 0.2228 0.1007)
Linear sRGB
color(srgb-linear 0.1878 0.0356 0.0048)

Gamut: sRGB and Display P3

#78350F is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.116 and Display P3 reaches 0.132; this color uses 90% of the sRGB chroma available.

CSS snippets

.element {
  color: #78350f;
  color: rgb(120 53 15);
  color: hsl(22 78% 26%);
  color: oklch(0.414 0.105 45.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.414 0.105 45.9);
}
/* arbitrary values */
class="text-[#78350f] bg-[oklch(0.414_0.105_45.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4376 0.2228 0.1007); }
}

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

  • #8B4623 · oklch(0.474 0.105 45.9) · ΔL +0.06
  • #652400 · oklch(0.354 0.105 45.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?