HEX to RGB: #CD853F

Also known as: CSS peru

Result

#CD853F → rgb(205 133 63)

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

    #CD853F → CD | 85 | 3F
  2. 2. base 16 → base 10

    R = CD₁₆ = 12×16 + 13 = 205
    G = 85₁₆ = 8×16 + 5 = 133
    B = 3F₁₆ = 3×16 + 15 = 63
  3. 3. RGB

    rgb(205 133 63)

All formats

HEX
#cd853f
RGB
rgb(205 133 63)
RGB (legacy)
rgb(205, 133, 63)
HSL
hsl(29.58 58.68% 52.55%) → hsl(30 59% 53%)
HWB
hwb(30 25% 20%)
OKLCH
oklch(0.678 0.123 62.2) · oklch(67.8% 0.123 62.2)
OKLab
oklab(0.678 0.057 0.109)
Lab (D50)
lab(62.25 23.95 48.41)
LCH (D50)
lch(62.25 54.01 63.68)
Display P3
color(display-p3 0.7635 0.5342 0.2988)
Linear sRGB
color(srgb-linear 0.6105 0.2346 0.0497)

Gamut: sRGB and Display P3

#CD853F is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.156 and Display P3 reaches 0.178; this color uses 79% of the sRGB chroma available.

CSS snippets

.element {
  color: #cd853f;
  color: rgb(205 133 63);
  color: hsl(30 59% 53%);
  color: oklch(0.678 0.123 62.2);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.678 0.123 62.2);
}
/* arbitrary values */
class="text-[#cd853f] bg-[oklch(0.678_0.123_62.2)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.7635 0.5342 0.2988); }
}

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

  • #E19853 · oklch(0.738 0.123 62.2) · ΔL +0.06
  • #B9732A · oklch(0.618 0.123 62.2) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?