HEX naar HSL: #4F46E5
Ook bekend als: Tailwind v3 indigo-600
Resultaat
#4F46E5 → hsl(243 75% 59%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #4f46e5. 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.3098 G = 0.2745 B = 0.8980
2. max, min, Δ
max = 0.8980 min = 0.2745 Δ = max − min = 0.6235
3. L
L = (max + min) / 2 = 0.5863 = 58.63%
4. S
S = Δ / (1 − |2L − 1|) = 0.7536 = 75.36%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.3098 − 0.2745) / 0.6235 + 4) = 243.40°
6. HSL
hsl(243.40 75.36% 58.63%)
Alle formaten
- HEX
- #4f46e5
- RGB
- rgb(79 70 229)
- RGB (legacy)
- rgb(79, 70, 229)
- HSL
- hsl(243.40 75.36% 58.63%) → hsl(243 75% 59%)
- HWB
- hwb(243 27% 10%)
- OKLCH
- oklch(0.511 0.230 277.0) · oklch(51.1% 0.230 277.0)
- OKLab
- oklab(0.511 0.028 -0.228)
- Lab (D50)
- lab(39.38 41.55 -80.97)
- LCH (D50)
- lch(39.38 91.00 297.16)
- Display P3
- color(display-p3 0.3039 0.2758 0.8646)
- Linear sRGB
- color(srgb-linear 0.0782 0.0612 0.7835)
Gamut: sRGB en Display P3
#4F46E5 is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.278 en Display P3 van 0.297; deze kleur gebruikt 83% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #4f46e5;
color: rgb(79 70 229);
color: hsl(243 75% 59%);
color: oklch(0.511 0.230 277.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.511 0.230 277.0);
}
/* arbitrary values */
class="text-[#4f46e5] bg-[oklch(0.511_0.230_277.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.3039 0.2758 0.8646); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #4f46e5 calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- indigo-600#4F39F6
- indigo-700#432DD7
- v3 blue-700#1D4ED8
- v3 indigo-700#4338CA
- blue-700#1447E6
- v3 blue-600#2563EB
- v3 violet-700#6D28D9
- blue-600#155DFC
Lichter en donkerder, dezelfde tint en chroma
- #5E5BFA · oklch(0.571 0.230 277.0) · ΔL +0.06
- #422FD0 · oklch(0.451 0.230 277.0) · ΔL −0.06