OKLCH to HEX: #F6339A
Also known as: Tailwind pink-500
Result
oklch(0.65580 0.24038 354.316) → #F6339A
Values are shown at full precision, so converting back gives exactly #f6339a. 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.65580 0.24038 354.316)
2. OKLCH → Oklab
a = C·cos H = 0.23920 b = C·sin H = -0.02381
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.745465 m′ = L − 0.1056·a − 0.0639·b = 0.632070 s′ = L − 0.0895·a − 1.2915·b = 0.665143
4. cube
l = 0.745465³ = 0.414269 m = 0.632070³ = 0.252520 s = 0.665143³ = 0.294269
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.921572 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.033102 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.323133
6. linear → sRGB, × 255
R = 0.96470 × 255 = 246.00 → 246 G = 0.19999 × 255 = 51.00 → 51 B = 0.60391 × 255 = 154.00 → 154
7. RGB → HEX
#F6339A
All formats
- HEX
- #f6339a
- RGB
- rgb(246 51 154)
- RGB (legacy)
- rgb(246, 51, 154)
- HSL
- hsl(328.31 91.55% 58.24%) → hsl(328 92% 58%)
- HWB
- hwb(328 20% 4%)
- OKLCH
- oklch(0.656 0.240 354.3) · oklch(65.6% 0.240 354.3)
- OKLab
- oklab(0.656 0.239 -0.024)
- Lab (D50)
- lab(56.92 76.63 -8.04)
- LCH (D50)
- lch(56.92 77.05 354.01)
- Display P3
- color(display-p3 0.8880 0.2775 0.5947)
- Linear sRGB
- color(srgb-linear 0.9216 0.0331 0.3231)
Gamut: sRGB and Display P3
#F6339A is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.267 and Display P3 reaches 0.303; this color uses 90% of the sRGB chroma available.
CSS snippets
.element {
color: #f6339a;
color: rgb(246 51 154);
color: hsl(328 92% 58%);
color: oklch(0.656 0.240 354.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.656 0.240 354.3);
}
/* arbitrary values */
class="text-[#f6339a] bg-[oklch(0.656_0.240_354.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8880 0.2775 0.5947); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #f6339a calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- deeppink#FF1493
- v3 pink-500#EC4899
- pink-600#E60076
- v3 pink-600#DB2777
- pink-400#FB64B6
- hotpink#FF69B4
- v3 rose-500#F43F5E
- rose-500#FF2056
Lighter and darker, same hue and chroma
- #FF4CAD · oklch(0.716 0.240 354.3) · ΔL +0.06
- #E00E88 · oklch(0.596 0.240 354.3) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?