HEX naar HSL: #047857
Ook bekend als: Tailwind v3 emerald-700
Resultaat
#047857 → hsl(163 94% 24%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #047857. 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.0157 G = 0.4706 B = 0.3412
2. max, min, Δ
max = 0.4706 min = 0.0157 Δ = max − min = 0.4549
3. L
L = (max + min) / 2 = 0.2431 = 24.31%
4. S
S = Δ / (1 − |2L − 1|) = 0.9355 = 93.55%
5. H
max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.3412 − 0.0157) / 0.4549 + 2) = 162.93°
6. HSL
hsl(162.93 93.55% 24.31%)
Alle formaten
- HEX
- #047857
- RGB
- rgb(4 120 87)
- RGB (legacy)
- rgb(4, 120, 87)
- HSL
- hsl(162.93 93.55% 24.31%) → hsl(163 94% 24%)
- HWB
- hwb(163 2% 53%)
- OKLCH
- oklch(0.508 0.105 165.6) · oklch(50.8% 0.105 165.6)
- OKLab
- oklab(0.508 -0.102 0.026)
- Lab (D50)
- lab(44.33 -36.23 9.79)
- LCH (D50)
- lch(44.33 37.52 164.88)
- Display P3
- color(display-p3 0.2039 0.4633 0.3499)
- Linear sRGB
- color(srgb-linear 0.0012 0.1878 0.0953)
Gamut: sRGB en Display P3
#047857 is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.106 en Display P3 van 0.145; deze kleur gebruikt 99% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #047857;
color: rgb(4 120 87);
color: hsl(163 94% 24%);
color: oklch(0.508 0.105 165.6);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.508 0.105 165.6);
}
/* arbitrary values */
class="text-[#047857] bg-[oklch(0.508_0.105_165.6)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2039 0.4633 0.3499); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #047857 calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- emerald-700#007A55
- teal-700#00786F
- v3 teal-700#0F766E
- v3 green-700#15803D
- green-700#008236
- teal#008080
- seagreen#2E8B57
- v3 green-800#166534
Lichter en donkerder, dezelfde tint en chroma
- #278A68 · oklch(0.568 0.105 165.6) · ΔL +0.06
- #006647 · oklch(0.448 0.105 165.6) · ΔL −0.06