HEX naar HSL: #FB923C
Ook bekend als: Tailwind v3 orange-400
Resultaat
#FB923C → hsl(27 96% 61%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #fb923c. De afgeronde vorm plak je gewoonlijk in CSS.
Stap-voor-stap berekening
Elk getal wordt uit de invoer berekend, er wordt niets opgezocht.
1. RGB ÷ 255
R = 0.9843 G = 0.5725 B = 0.2353
2. max, min, Δ
max = 0.9843 min = 0.2353 Δ = max − min = 0.7490
3. L
L = (max + min) / 2 = 0.6098 = 60.98%
4. S
S = Δ / (1 − |2L − 1|) = 0.9598 = 95.98%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.5725 − 0.2353) / 0.7490) mod 6) = 27.02°
6. HSL
hsl(27.02 95.98% 60.98%)
Alle formaten
- 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 en Display P3
#FB923C is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.169 en Display P3 van 0.212; deze kleur gebruikt 94% van de beschikbare sRGB-chroma.
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); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- darkorange#FF8C00
- orange-400#FF8904
- amber-500#FE9A00
- v3 amber-500#F59E0B
- sandybrown#F4A460
- coral#FF7F50
- orange#FFA500
- lightsalmon#FFA07A
Lichter en donkerder, dezelfde tint en chroma
- #FFA552 · oklch(0.818 0.159 55.9) · ΔL +0.06
- #E67F23 · oklch(0.698 0.159 55.9) · ΔL −0.06