HEX a OKLCH: #6EE7B7
También conocido como: Tailwind v3 emerald-300
Resultado
#6EE7B7 → oklch(0.845 0.130 165.0)
Los valores se muestran con precisión completa, así que al convertir de vuelta obtienes exactamente #6ee7b7. La forma redondeada es la que normalmente pegas en CSS.
Cálculo paso a paso
Cada número se calcula a partir de la entrada; no se consulta ninguna tabla.
1. sRGB → linear
R: 110/255 = 0.43137 → 0.155926 (((x + 0.055) / 1.055)^2.4) G: 231/255 = 0.90588 → 0.799103 (((x + 0.055) / 1.055)^2.4) B: 183/255 = 0.71765 → 0.473531 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.517222 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.627846 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.537206
3. cube root
l′ = ∛0.517222 = 0.802711 m′ = ∛0.627846 = 0.856284 s′ = ∛0.537206 = 0.812918
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.84519 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.12551 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.03368
5. Oklab → OKLCH
C = √(a² + b²) = 0.12995 H = atan2(b, a) = 164.978° L = 0.84519
6. OKLCH
oklch(0.84519 0.12995 164.978) rounded: oklch(0.845 0.130 165.0)
Todos los formatos
- HEX
- #6ee7b7
- RGB
- rgb(110 231 183)
- RGB (legacy)
- rgb(110, 231, 183)
- HSL
- hsl(156.20 71.60% 66.86%) → hsl(156 72% 67%)
- HWB
- hwb(156 43% 9%)
- OKLCH
- oklch(0.845 0.130 165.0) · oklch(84.5% 0.130 165.0)
- OKLab
- oklab(0.845 -0.126 0.034)
- Lab (D50)
- lab(83.77 -44.09 12.60)
- LCH (D50)
- lch(83.77 45.85 164.06)
- Display P3
- color(display-p3 0.5565 0.8951 0.7298)
- Linear sRGB
- color(srgb-linear 0.1559 0.7991 0.4735)
Gamut: sRGB y Display P3
#6EE7B7 es un color hexadecimal, así que está dentro de sRGB y, por tanto, de Display P3. Con esta luminosidad y este tono, sRGB llega a un croma de 0.178 y Display P3 a 0.244; este color usa el 73 % del croma sRGB disponible.
Fragmentos CSS
.element {
color: #6ee7b7;
color: rgb(110 231 183);
color: hsl(156 72% 67%);
color: oklch(0.845 0.130 165.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.845 0.130 165.0);
}
/* arbitrary values */
class="text-[#6ee7b7] bg-[oklch(0.845_0.130_165.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.5565 0.8951 0.7298); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #6ee7b7 calc(l - 0.1) c h); }Colores cercanos
Colores más próximos en las paletas de Tailwind y CSS (distancia OKLab).
- emerald-300#5EE9B5
- v3 green-300#86EFAC
- v3 teal-300#5EEAD4
- teal-300#46ECD5
- green-300#7BF1A8
- turquoise#40E0D0
- lightgreen#90EE90
- emerald-200#A4F4CF
Más claro y más oscuro, mismo tono y croma
- #83FBCA · oklch(0.905 0.130 165.0) · ΔL +0.06
- #59D3A4 · oklch(0.785 0.130 165.0) · ΔL −0.06