RGB to HEX: #CD5C5C

Also known as: CSS indianred

Result

rgb(205 92 92) → #CD5C5C

Values are shown at full precision, so converting back gives exactly #cd5c5c. 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 = 205 = 12×16 + 13 → CD
    G = 92 = 5×16 + 12 → 5C
    B = 92 = 5×16 + 12 → 5C
  2. 2. pairs → HEX

    CD 5C 5C → #CD5C5C

All formats

HEX
#cd5c5c
RGB
rgb(205 92 92)
RGB (legacy)
rgb(205, 92, 92)
HSL
hsl(0.00 53.05% 58.24%) → hsl(0 53% 58%)
HWB
hwb(0 36% 20%)
OKLCH
oklch(0.615 0.144 22.2) · oklch(61.5% 0.144 22.2)
OKLab
oklab(0.615 0.133 0.055)
Lab (D50)
lab(53.93 45.75 23.16)
LCH (D50)
lch(53.93 51.28 26.84)
Display P3
color(display-p3 0.7491 0.3867 0.3744)
Linear sRGB
color(srgb-linear 0.6105 0.1070 0.1070)

Gamut: sRGB and Display P3

#CD5C5C is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.248 and Display P3 reaches 0.280; this color uses 58% of the sRGB chroma available.

CSS snippets

.element {
  color: #cd5c5c;
  color: rgb(205 92 92);
  color: hsl(0 53% 58%);
  color: oklch(0.615 0.144 22.2);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.615 0.144 22.2);
}
/* arbitrary values */
class="text-[#cd5c5c] bg-[oklch(0.615_0.144_22.2)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.7491 0.3867 0.3744); }
}

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

  • #E26F6D · oklch(0.675 0.144 22.2) · ΔL +0.06
  • #B8494B · oklch(0.555 0.144 22.2) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?