RGB to HEX: #C2410C

Also known as: Tailwind v3 orange-700

Result

rgb(194 65 12) → #C2410C

Values are shown at full precision, so converting back gives exactly #c2410c. 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 = 194 = 12×16 + 2 → C2
    G = 65 = 4×16 + 1 → 41
    B = 12 = 0×16 + 12 → 0C
  2. 2. pairs → HEX

    C2 41 0C → #C2410C

All formats

HEX
#c2410c
RGB
rgb(194 65 12)
RGB (legacy)
rgb(194, 65, 12)
HSL
hsl(17.47 88.35% 40.39%) → hsl(17 88% 40%)
HWB
hwb(17 5% 24%)
OKLCH
oklch(0.553 0.174 38.4) · oklch(55.3% 0.174 38.4)
OKLab
oklab(0.553 0.136 0.108)
Lab (D50)
lab(46.73 51.02 55.26)
LCH (D50)
lch(46.73 75.21 47.28)
Display P3
color(display-p3 0.7036 0.2913 0.1353)
Linear sRGB
color(srgb-linear 0.5395 0.0529 0.0037)

Gamut: sRGB and Display P3

#C2410C is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.180 and Display P3 reaches 0.203; this color uses 97% of the sRGB chroma available.

CSS snippets

.element {
  color: #c2410c;
  color: rgb(194 65 12);
  color: hsl(17 88% 40%);
  color: oklch(0.553 0.174 38.4);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.553 0.174 38.4);
}
/* arbitrary values */
class="text-[#c2410c] bg-[oklch(0.553_0.174_38.4)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.7036 0.2913 0.1353); }
}

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

  • #D75527 · oklch(0.613 0.174 38.4) · ΔL +0.06
  • #AD2C00 · oklch(0.493 0.174 38.4) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?