HEX to OKLCH: #778899
Also known as: CSS lightslategray, CSS lightslategrey
Result
#778899 → oklch(0.619 0.033 248.4)
Values are shown at full precision, so converting back gives exactly #778899. The rounded form is what you normally paste into CSS.
Step-by-step math
Every number below is computed from the input, nothing is looked up.
1. sRGB → linear
R: 119/255 = 0.46667 → 0.184475 (((x + 0.055) / 1.055)^2.4) G: 136/255 = 0.53333 → 0.246201 (((x + 0.055) / 1.055)^2.4) B: 153/255 = 0.60000 → 0.318547 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.224478 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.240891 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.286327
3. cube root
l′ = ∛0.224478 = 0.607750 m′ = ∛0.240891 = 0.622215 s′ = ∛0.286327 = 0.659104
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.61902 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.01199 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.03021
5. Oklab → OKLCH
C = √(a² + b²) = 0.03250 H = atan2(b, a) = 248.351° L = 0.61902
6. OKLCH
oklch(0.61902 0.03250 248.351) rounded: oklch(0.619 0.033 248.4)
All formats
- HEX
- #778899
- RGB
- rgb(119 136 153)
- RGB (legacy)
- rgb(119, 136, 153)
- HSL
- hsl(210.00 14.29% 53.33%) → hsl(210 14% 53%)
- HWB
- hwb(210 47% 40%)
- OKLCH
- oklch(0.619 0.033 248.4) · oklch(61.9% 0.033 248.4)
- OKLab
- oklab(0.619 -0.012 -0.030)
- Lab (D50)
- lab(55.77 -3.45 -11.29)
- LCH (D50)
- lch(55.77 11.80 253.02)
- Display P3
- color(display-p3 0.4794 0.5313 0.5935)
- Linear sRGB
- color(srgb-linear 0.1845 0.2462 0.3185)
Gamut: sRGB and Display P3
#778899 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.168 and Display P3 reaches 0.217; this color uses 19% of the sRGB chroma available.
CSS snippets
.element {
color: #778899;
color: rgb(119 136 153);
color: hsl(210 14% 53%);
color: oklch(0.619 0.033 248.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.619 0.033 248.4);
}
/* arbitrary values */
class="text-[#778899] bg-[oklch(0.619_0.033_248.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4794 0.5313 0.5935); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #778899 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- slategray#708090
- gray#808080
- mist-500#67787C
- cadetblue#5F9EA0
- v3 slate-500#64748B
- slate-500#62748E
- gray-500#6A7282
- v3 gray-500#6B7280
Lighter and darker, same hue and chroma
- #899AAC · oklch(0.679 0.033 248.4) · ΔL +0.06
- #667687 · oklch(0.559 0.033 248.4) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?