HEX naar HSL: #A65F00
Ook bekend als: Tailwind yellow-700
Resultaat
#A65F00 → hsl(34 100% 33%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #a65f00. 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.6510 G = 0.3725 B = 0.0000
2. max, min, Δ
max = 0.6510 min = 0.0000 Δ = max − min = 0.6510
3. L
L = (max + min) / 2 = 0.3255 = 32.55%
4. S
S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.3725 − 0.0000) / 0.6510) mod 6) = 34.34°
6. HSL
hsl(34.34 100.00% 32.55%)
Alle formaten
- HEX
- #a65f00
- RGB
- rgb(166 95 0)
- RGB (legacy)
- rgb(166, 95, 0)
- HSL
- hsl(34.34 100.00% 32.55%) → hsl(34 100% 33%)
- HWB
- hwb(34 0% 35%)
- OKLCH
- oklch(0.555 0.127 62.5) · oklch(55.5% 0.127 62.5)
- OKLab
- oklab(0.555 0.059 0.113)
- Lab (D50)
- lab(47.86 25.71 55.91)
- LCH (D50)
- lch(47.86 61.54 65.30)
- Display P3
- color(display-p3 0.6130 0.3860 0.1273)
- Linear sRGB
- color(srgb-linear 0.3813 0.1144 0.0000)
Gamut: sRGB en Display P3
#A65F00 is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.127 en Display P3 van 0.145; deze kleur gebruikt 100% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #a65f00;
color: rgb(166 95 0);
color: hsl(34 100% 33%);
color: oklch(0.555 0.127 62.5);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.555 0.127 62.5);
}
/* arbitrary values */
class="text-[#a65f00] bg-[oklch(0.555_0.127_62.5)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6130 0.3860 0.1273); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #a65f00 calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- v3 yellow-700#A16207
- v3 amber-700#B45309
- sienna#A0522D
- amber-700#BB4D00
- v3 orange-700#C2410C
- yellow-800#894B00
- v3 yellow-800#854D0E
- saddlebrown#8B4513
Lichter en donkerder, dezelfde tint en chroma
- #BA7122 · oklch(0.615 0.127 62.5) · ΔL +0.06
- #934D00 · oklch(0.495 0.127 62.5) · ΔL −0.06