HEX naar HSL: #615FFF
Ook bekend als: Tailwind indigo-500
Resultaat
#615FFF → hsl(241 100% 69%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #615fff. 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.3804 G = 0.3725 B = 1.0000
2. max, min, Δ
max = 1.0000 min = 0.3725 Δ = max − min = 0.6275
3. L
L = (max + min) / 2 = 0.6863 = 68.63%
4. S
S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.3804 − 0.3725) / 0.6275 + 4) = 240.75°
6. HSL
hsl(240.75 100.00% 68.63%)
Alle formaten
- HEX
- #615fff
- RGB
- rgb(97 95 255)
- RGB (legacy)
- rgb(97, 95, 255)
- HSL
- hsl(240.75 100.00% 68.63%) → hsl(241 100% 69%)
- HWB
- hwb(241 37% 0%)
- OKLCH
- oklch(0.583 0.230 277.1) · oklch(58.3% 0.230 277.1)
- OKLab
- oklab(0.583 0.028 -0.229)
- Lab (D50)
- lab(48.17 37.62 -81.09)
- LCH (D50)
- lch(48.17 89.40 294.89)
- Display P3
- color(display-p3 0.3790 0.3728 0.9644)
- Linear sRGB
- color(srgb-linear 0.1195 0.1144 1.0000)
Gamut: sRGB en Display P3
#615FFF is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.230 en Display P3 van 0.248; deze kleur gebruikt 100% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #615fff;
color: rgb(97 95 255);
color: hsl(241 100% 69%);
color: oklch(0.583 0.230 277.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.583 0.230 277.1);
}
/* arbitrary values */
class="text-[#615fff] bg-[oklch(0.583_0.230_277.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.3790 0.3728 0.9644); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #615fff calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- v3 indigo-500#6366F1
- mediumslateblue#7B68EE
- royalblue#4169E1
- v3 violet-500#8B5CF6
- v3 blue-600#2563EB
- blue-600#155DFC
- violet-500#8E51FF
- v3 indigo-600#4F46E5
Lichter en donkerder, dezelfde tint en chroma
- #7173FF · oklch(0.643 0.230 277.1) · ΔL +0.06
- #524AEA · oklch(0.523 0.230 277.1) · ΔL −0.06