HEX to HSL: #FB923C

Also known as: Tailwind v3 orange-400

Result

#FB923C → hsl(27 96% 61%)

Values are shown at full precision, so converting back gives exactly #fb923c. 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.9843
    G = 0.5725
    B = 0.2353
  2. 2. max, min, Δ

    max = 0.9843
    min = 0.2353
    Δ = max − min = 0.7490
  3. 3. L

    L = (max + min) / 2 = 0.6098 = 60.98%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.9598 = 95.98%
  5. 5. H

    max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.5725 − 0.2353) / 0.7490) mod 6) = 27.02°
  6. 6. HSL

    hsl(27.02 95.98% 60.98%)

All formats

HEX
#fb923c
RGB
rgb(251 146 60)
RGB (legacy)
rgb(251, 146, 60)
HSL
hsl(27.02 95.98% 60.98%) → hsl(27 96% 61%)
HWB
hwb(27 24% 2%)
OKLCH
oklch(0.758 0.159 55.9) · oklch(75.8% 0.159 55.9)
OKLab
oklab(0.758 0.089 0.132)
Lab (D50)
lab(71.11 36.11 60.82)
LCH (D50)
lch(71.11 70.74 59.30)
Display P3
color(display-p3 0.9282 0.5926 0.3103)
Linear sRGB
color(srgb-linear 0.9647 0.2874 0.0452)

Gamut: sRGB and Display P3

#FB923C is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.169 and Display P3 reaches 0.212; this color uses 94% of the sRGB chroma available.

CSS snippets

.element {
  color: #fb923c;
  color: rgb(251 146 60);
  color: hsl(27 96% 61%);
  color: oklch(0.758 0.159 55.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.758 0.159 55.9);
}
/* arbitrary values */
class="text-[#fb923c] bg-[oklch(0.758_0.159_55.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9282 0.5926 0.3103); }
}

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

  • #FFA552 · oklch(0.818 0.159 55.9) · ΔL +0.06
  • #E67F23 · oklch(0.698 0.159 55.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?