HEX naar HSL: #BE123C
Ook bekend als: Tailwind v3 rose-700
Resultaat
#BE123C → hsl(345 83% 41%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #be123c. 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.7451 G = 0.0706 B = 0.2353
2. max, min, Δ
max = 0.7451 min = 0.0706 Δ = max − min = 0.6745
3. L
L = (max + min) / 2 = 0.4078 = 40.78%
4. S
S = Δ / (1 − |2L − 1|) = 0.8269 = 82.69%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.0706 − 0.2353) / 0.6745) mod 6) = 345.35°
6. HSL
hsl(345.35 82.69% 40.78%)
Alle formaten
- HEX
- #be123c
- RGB
- rgb(190 18 60)
- RGB (legacy)
- rgb(190, 18, 60)
- HSL
- hsl(345.35 82.69% 40.78%) → hsl(345 83% 41%)
- HWB
- hwb(345 7% 25%)
- OKLCH
- oklch(0.514 0.198 16.9) · oklch(51.4% 0.198 16.9)
- OKLab
- oklab(0.514 0.189 0.058)
- Lab (D50)
- lab(41.48 63.83 26.16)
- LCH (D50)
- lch(41.48 68.98 22.28)
- Display P3
- color(display-p3 0.6833 0.1639 0.2487)
- Linear sRGB
- color(srgb-linear 0.5149 0.0060 0.0452)
Gamut: sRGB en Display P3
#BE123C is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.206 en Display P3 van 0.232; deze kleur gebruikt 96% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #be123c;
color: rgb(190 18 60);
color: hsl(345 83% 41%);
color: oklch(0.514 0.198 16.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.514 0.198 16.9);
}
/* arbitrary values */
class="text-[#be123c] bg-[oklch(0.514_0.198_16.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6833 0.1639 0.2487); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #be123c calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- rose-700#C70036
- v3 red-700#B91C1C
- firebrick#B22222
- red-700#C10007
- v3 pink-700#BE185D
- pink-700#C6005C
- brown#A52A2A
- rose-800#A50036
Lichter en donkerder, dezelfde tint en chroma
- #D4304D · oklch(0.574 0.198 16.9) · ΔL +0.06
- #A9002C · oklch(0.454 0.198 16.9) · ΔL −0.06