OKLCH to HEX: #38BDF8
Also known as: Tailwind v3 sky-400
Result
oklch(0.75351 0.13899 232.661) → #38BDF8
Values are shown at full precision, so converting back gives exactly #38bdf8. 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. input
oklch(0.75351 0.13899 232.661)
2. OKLCH → Oklab
a = C·cos H = -0.08430 b = C·sin H = -0.11051
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.696251 m′ = L − 0.1056·a − 0.0639·b = 0.769465 s′ = L − 0.0895·a − 1.2915·b = 0.903770
4. cube
l = 0.696251³ = 0.337518 m = 0.769465³ = 0.455582 s = 0.903770³ = 0.738199
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.039540 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.508877 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.938679
6. linear → sRGB, × 255
R = 0.21959 × 255 = 56.00 → 56 G = 0.74117 × 255 = 189.00 → 189 B = 0.97255 × 255 = 248.00 → 248
7. RGB → HEX
#38BDF8
All formats
- HEX
- #38bdf8
- RGB
- rgb(56 189 248)
- RGB (legacy)
- rgb(56, 189, 248)
- HSL
- hsl(198.44 93.20% 59.61%) → hsl(198 93% 60%)
- HWB
- hwb(198 22% 3%)
- OKLCH
- oklch(0.754 0.139 232.7) · oklch(75.4% 0.139 232.7)
- OKLab
- oklab(0.754 -0.084 -0.111)
- Lab (D50)
- lab(71.59 -21.72 -40.13)
- LCH (D50)
- lch(71.59 45.63 241.58)
- Display P3
- color(display-p3 0.3854 0.7309 0.9510)
- Linear sRGB
- color(srgb-linear 0.0395 0.5089 0.9387)
Gamut: sRGB and Display P3
#38BDF8 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.153 and Display P3 reaches 0.165; this color uses 91% of the sRGB chroma available.
CSS snippets
.element {
color: #38bdf8;
color: rgb(56 189 248);
color: hsl(198 93% 60%);
color: oklch(0.754 0.139 232.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.754 0.139 232.7);
}
/* arbitrary values */
class="text-[#38bdf8] bg-[oklch(0.754_0.139_232.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.3854 0.7309 0.9510); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #38bdf8 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- deepskyblue#00BFFF
- sky-400#00BCFF
- cyan-500#00B8DB
- v3 cyan-500#06B6D4
- cyan-400#00D3F2
- v3 cyan-400#22D3EE
- v3 blue-400#60A5FA
- sky-500#00A6F4
Lighter and darker, same hue and chroma
- #51D1FF · oklch(0.814 0.139 232.7) · ΔL +0.06
- #15AAE4 · oklch(0.694 0.139 232.7) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?