HEX to RGB: #422006

Also known as: Tailwind v3 yellow-950

Result

#422006 → rgb(66 32 6)

Values are shown at full precision, so converting back gives exactly #422006. 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. HEX → pairs

    #422006 → 42 | 20 | 06
  2. 2. base 16 → base 10

    R = 42₁₆ = 4×16 + 2 = 66
    G = 20₁₆ = 2×16 + 0 = 32
    B = 06₁₆ = 0×16 + 6 = 6
  3. 3. RGB

    rgb(66 32 6)

All formats

HEX
#422006
RGB
rgb(66 32 6)
RGB (legacy)
rgb(66, 32, 6)
HSL
hsl(26.00 83.33% 14.12%) → hsl(26 83% 14%)
HWB
hwb(26 2% 74%)
OKLCH
oklch(0.286 0.064 53.8) · oklch(28.6% 0.064 53.8)
OKLab
oklab(0.286 0.038 0.052)
Lab (D50)
lab(16.79 15.18 22.41)
LCH (D50)
lch(16.79 27.07 55.89)
Display P3
color(display-p3 0.2411 0.1322 0.0466)
Linear sRGB
color(srgb-linear 0.0545 0.0144 0.0018)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #422006;
  color: rgb(66 32 6);
  color: hsl(26 83% 14%);
  color: oklch(0.286 0.064 53.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.286 0.064 53.8);
}
/* arbitrary values */
class="text-[#422006] bg-[oklch(0.286_0.064_53.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2411 0.1322 0.0466); }
}

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

  • #532F16 · oklch(0.346 0.064 53.8) · ΔL +0.06
  • #321100 · oklch(0.226 0.064 53.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?