RGB to HEX: #92400E

Also known as: Tailwind v3 amber-800

Result

rgb(146 64 14) → #92400E

Values are shown at full precision, so converting back gives exactly #92400e. 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 = 146 = 9×16 + 2 → 92
    G = 64 = 4×16 + 0 → 40
    B = 14 = 0×16 + 14 → 0E
  2. 2. pairs → HEX

    92 40 0E → #92400E

All formats

HEX
#92400e
RGB
rgb(146 64 14)
RGB (legacy)
rgb(146, 64, 14)
HSL
hsl(22.73 82.50% 31.37%) → hsl(23 83% 31%)
HWB
hwb(23 5% 43%)
OKLCH
oklch(0.473 0.125 46.2) · oklch(47.3% 0.125 46.2)
OKLab
oklab(0.473 0.086 0.090)
Lab (D50)
lab(38.02 33.49 44.16)
LCH (D50)
lch(38.02 55.42 52.82)
Display P3
color(display-p3 0.5326 0.2697 0.1156)
Linear sRGB
color(srgb-linear 0.2874 0.0513 0.0044)

Gamut: sRGB and Display P3

#92400E is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.133 and Display P3 reaches 0.150; this color uses 94% of the sRGB chroma available.

CSS snippets

.element {
  color: #92400e;
  color: rgb(146 64 14);
  color: hsl(23 83% 31%);
  color: oklch(0.473 0.125 46.2);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.473 0.125 46.2);
}
/* arbitrary values */
class="text-[#92400e] bg-[oklch(0.473_0.125_46.2)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.5326 0.2697 0.1156); }
}

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

  • #A65225 · oklch(0.533 0.125 46.2) · ΔL +0.06
  • #7F2E00 · oklch(0.413 0.125 46.2) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?