HEX in OKLCH: #6495ED
Auch bekannt als: CSS cornflowerblue
Ergebnis
#6495ED → oklch(0.675 0.141 261.3)
Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #6495ed. 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. sRGB → linear
R: 100/255 = 0.39216 → 0.127438 (((x + 0.055) / 1.055)^2.4) G: 149/255 = 0.58431 → 0.300544 (((x + 0.055) / 1.055)^2.4) B: 237/255 = 0.92941 → 0.846873 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.257292 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.322536 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.629434
3. cube root
l′ = ∛0.257292 = 0.636027 m′ = ∛0.322536 = 0.685793 s′ = ∛0.629434 = 0.857005
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.67462 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.02129 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.13974
5. Oklab → OKLCH
C = √(a² + b²) = 0.14136 H = atan2(b, a) = 261.338° L = 0.67462
6. OKLCH
oklch(0.67462 0.14136 261.338) rounded: oklch(0.675 0.141 261.3)
Alle Formate
- HEX
- #6495ed
- RGB
- rgb(100 149 237)
- RGB (legacy)
- rgb(100, 149, 237)
- HSL
- hsl(218.54 79.19% 66.08%) → hsl(219 79% 66%)
- HWB
- hwb(219 39% 7%)
- OKLCH
- oklch(0.675 0.141 261.3) · oklch(67.5% 0.141 261.3)
- OKLab
- oklab(0.675 -0.021 -0.140)
- Lab (D50)
- lab(61.23 3.05 -50.19)
- LCH (D50)
- lch(61.23 50.28 273.47)
- Display P3
- color(display-p3 0.4343 0.5792 0.9038)
- Linear sRGB
- color(srgb-linear 0.1274 0.3005 0.8469)
Gamut: sRGB und Display P3
#6495ED 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.172, Display P3 von 0.186; diese Farbe nutzt 82 % der verfügbaren sRGB-Chroma.
CSS-Snippets
.element {
color: #6495ed;
color: rgb(100 149 237);
color: hsl(219 79% 66%);
color: oklch(0.675 0.141 261.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.675 0.141 261.3);
}
/* arbitrary values */
class="text-[#6495ed] bg-[oklch(0.675_0.141_261.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4343 0.5792 0.9038); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #6495ed calc(l - 0.1) c h); }Ähnliche Farben
Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).
- blue-400#51A2FF
- v3 blue-400#60A5FA
- v3 indigo-400#818CF8
- indigo-400#7C86FF
- dodgerblue#1E90FF
- sky-500#00A6F4
- v3 sky-500#0EA5E9
- v3 blue-500#3B82F6
Heller und dunkler, gleicher Farbton und gleiche Chroma
- #76A8FF · oklch(0.735 0.141 261.3) · ΔL +0.06
- #5382D9 · oklch(0.615 0.141 261.3) · ΔL −0.06