HEX to HSL: #C2410C

Also known as: Tailwind v3 orange-700

Result

#C2410C → hsl(17 88% 40%)

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. RGB ÷ 255

    R = 0.7608
    G = 0.2549
    B = 0.0471
  2. 2. max, min, Δ

    max = 0.7608
    min = 0.0471
    Δ = max − min = 0.7137
  3. 3. L

    L = (max + min) / 2 = 0.4039 = 40.39%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.8835 = 88.35%
  5. 5. H

    max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.2549 − 0.0471) / 0.7137) mod 6) = 17.47°
  6. 6. HSL

    hsl(17.47 88.35% 40.39%)

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?