OKLCH in HEX: #432004
Auch bekannt als: Tailwind yellow-950
Ergebnis
oklch(0.28709 0.06625 54.588) → #432004
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #432004. Die gerundete Form fügst du üblicherweise in CSS ein.
Rechenweg Schritt für Schritt
Jede Zahl wird aus der Eingabe berechnet, nichts ist nachgeschlagen.
1. input
oklch(0.28709 0.06625 54.588)
2. OKLCH → Oklab
a = C·cos H = 0.03839 b = C·sin H = 0.05399
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.313957 m′ = L − 0.1056·a − 0.0639·b = 0.279590 s′ = L − 0.0895·a − 1.2915·b = 0.213922
4. cube
l = 0.313957³ = 0.030946 m = 0.279590³ = 0.021856 s = 0.213922³ = 0.009790
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.056129 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.014443 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.001213
6. linear → sRGB, × 255
R = 0.26275 × 255 = 67.00 → 67 G = 0.12549 × 255 = 32.00 → 32 B = 0.01568 × 255 = 4.00 → 4
7. RGB → HEX
#432004
Alle Formate
- HEX
- #432004
- RGB
- rgb(67 32 4)
- RGB (legacy)
- rgb(67, 32, 4)
- HSL
- hsl(26.67 88.73% 13.92%) → hsl(27 89% 14%)
- HWB
- hwb(27 2% 74%)
- OKLCH
- oklch(0.287 0.066 54.6) · oklch(28.7% 0.066 54.6)
- OKLab
- oklab(0.287 0.038 0.054)
- Lab (D50)
- lab(16.95 15.61 23.46)
- LCH (D50)
- lch(16.95 28.18 56.37)
- Display P3
- color(display-p3 0.2446 0.1325 0.0402)
- Linear sRGB
- color(srgb-linear 0.0561 0.0144 0.0012)
Gamut: sRGB und Display P3
#432004 ist eine Hex-Farbe und liegt damit in sRGB und folglich in Display P3. Bei dieser Helligkeit und diesem Farbton erreicht sRGB eine Chroma von 0.071, Display P3 von 0.081; diese Farbe nutzt 93 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #432004;
color: rgb(67 32 4);
color: hsl(27 89% 14%);
color: oklch(0.287 0.066 54.6);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.287 0.066 54.6);
}
/* arbitrary values */
class="text-[#432004] bg-[oklch(0.287_0.066_54.6)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2446 0.1325 0.0402); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #432004 calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- v3 yellow-950#422006
- v3 amber-950#451A03
- amber-950#461901
- v3 orange-950#431407
- orange-950#441306
- v3 red-950#450A0A
- red-950#460809
- olive-800#2B2B22
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #542F15 · oklch(0.347 0.066 54.6) · ΔL +0.06
- #331100 · oklch(0.227 0.066 54.6) · ΔL −0.06