HSL to HEX: #6B7280
Also known as: Tailwind v3 gray-500
Result
hsl(220.00 8.94% 46.08%) → #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
H = 220.00°, S = 8.94%, L = 46.08%
2. C
C = (1 − |2L − 1|) × S = 0.08239
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.02746 (H / 60° = 3.6667, sector 3)
4. m
m = L − C / 2 = 0.41960
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.02746, 0.08239) R = round((0.00000 + 0.41960) × 255) = 107 G = round((0.02746 + 0.41960) × 255) = 114 B = round((0.08239 + 0.41960) × 255) = 128
6. 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?