OKLCH to HEX: #6B7280
Also known as: Tailwind v3 gray-500
Result
oklch(0.55102 0.02336 264.364) → #6B7280
Values are shown at full precision, so converting back gives exactly #6b7280. 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.55102 0.02336 264.364)
2. OKLCH → Oklab
a = C·cos H = -0.00229 b = C·sin H = -0.02325
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.545094 m′ = L − 0.1056·a − 0.0639·b = 0.552747 s′ = L − 0.0895·a − 1.2915·b = 0.581249
4. cube
l = 0.545094³ = 0.161962 m = 0.552747³ = 0.168880 s = 0.581249³ = 0.196375
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.147029 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.168270 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.215859
6. linear → sRGB, × 255
R = 0.41961 × 255 = 107.00 → 107 G = 0.44706 × 255 = 114.00 → 114 B = 0.50196 × 255 = 128.00 → 128
7. RGB → HEX
#6B7280
All formats
- HEX
- #6b7280
- RGB
- rgb(107 114 128)
- RGB (legacy)
- rgb(107, 114, 128)
- HSL
- hsl(220.00 8.94% 46.08%) → hsl(220 9% 46%)
- HWB
- hwb(220 42% 50%)
- OKLCH
- oklch(0.551 0.023 264.4) · oklch(55.1% 0.023 264.4)
- OKLab
- oklab(0.551 -0.002 -0.023)
- Lab (D50)
- lab(47.81 -0.39 -8.70)
- LCH (D50)
- lch(47.81 8.71 267.45)
- Display P3
- color(display-p3 0.4246 0.4462 0.4970)
- Linear sRGB
- color(srgb-linear 0.1470 0.1683 0.2159)
Gamut: sRGB and Display P3
#6B7280 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.248 and Display P3 reaches 0.265; this color uses 9% of the sRGB chroma available.
CSS snippets
.element {
color: #6b7280;
color: rgb(107 114 128);
color: hsl(220 9% 46%);
color: oklch(0.551 0.023 264.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.551 0.023 264.4);
}
/* arbitrary values */
class="text-[#6b7280] bg-[oklch(0.551_0.023_264.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4246 0.4462 0.4970); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #6b7280 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- gray-500#6A7282
- zinc-500#71717B
- v3 zinc-500#71717A
- v3 slate-500#64748B
- mist-500#67787C
- slate-500#62748E
- neutral-500#737373
- mauve-500#79697B
Lighter and darker, same hue and chroma
- #7C8492 · oklch(0.611 0.023 264.4) · ΔL +0.06
- #5A616E · oklch(0.491 0.023 264.4) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?