HEX naar HSL: #7B3306
Ook bekend als: Tailwind amber-900
Resultaat
#7B3306 → hsl(23 91% 25%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #7b3306. 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.4824 G = 0.2000 B = 0.0235
2. max, min, Δ
max = 0.4824 min = 0.0235 Δ = max − min = 0.4588
3. L
L = (max + min) / 2 = 0.2529 = 25.29%
4. S
S = Δ / (1 − |2L − 1|) = 0.9070 = 90.70%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.2000 − 0.0235) / 0.4588) mod 6) = 23.08°
6. HSL
hsl(23.08 90.70% 25.29%)
Alle formaten
- HEX
- #7b3306
- RGB
- rgb(123 51 6)
- RGB (legacy)
- rgb(123, 51, 6)
- HSL
- hsl(23.08 90.70% 25.29%) → hsl(23 91% 25%)
- HWB
- hwb(23 2% 52%)
- OKLCH
- oklch(0.415 0.113 45.9) · oklch(41.5% 0.113 45.9)
- OKLab
- oklab(0.415 0.078 0.081)
- Lab (D50)
- lab(31.33 30.43 40.29)
- LCH (D50)
- lch(31.33 50.49 52.93)
- Display P3
- color(display-p3 0.4477 0.2168 0.0819)
- Linear sRGB
- color(srgb-linear 0.1981 0.0331 0.0018)
Gamut: sRGB en Display P3
#7B3306 is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.117 en Display P3 van 0.133; deze kleur gebruikt 96% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #7b3306;
color: rgb(123 51 6);
color: hsl(23 91% 25%);
color: oklch(0.415 0.113 45.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.415 0.113 45.9);
}
/* arbitrary values */
class="text-[#7b3306] bg-[oklch(0.415_0.113_45.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4477 0.2168 0.0819); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #7b3306 calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- v3 amber-900#78350F
- v3 orange-900#7C2D12
- orange-900#7E2A0C
- yellow-900#733E0A
- v3 yellow-900#713F12
- v3 red-900#7F1D1D
- red-900#82181A
- saddlebrown#8B4513
Lichter en donkerder, dezelfde tint en chroma
- #8E441D · oklch(0.475 0.113 45.9) · ΔL +0.06
- #682200 · oklch(0.355 0.113 45.9) · ΔL −0.06