HEX to HSL: #A3A3A3

Also known as: Tailwind v3 neutral-400

Result

#A3A3A3 → hsl(0 0% 64%)

Values are shown at full precision, so converting back gives exactly #a3a3a3. 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. 1. RGB ÷ 255

    R = 0.6392
    G = 0.6392
    B = 0.6392
  2. 2. max, min, Δ

    max = 0.6392
    min = 0.6392
    Δ = max − min = 0.0000
  3. 3. L

    L = (max + min) / 2 = 0.6392 = 63.92%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.0000 = 0.00%
  5. 5. H

    Δ = 0 → grey, hue is undefined (written as 0)
  6. 6. HSL

    hsl(0.00 0.00% 63.92%)

All formats

HEX
#a3a3a3
RGB
rgb(163 163 163)
RGB (legacy)
rgb(163, 163, 163)
HSL
hsl(0.00 0.00% 63.92%) → hsl(0 0% 64%)
HWB
hwb(0 64% 36%)
OKLCH
oklch(0.715 0.000 0.0) · oklch(71.5% 0.000 0.0)
OKLab
oklab(0.715 0.000 0.000)
Lab (D50)
lab(66.99 0.00 0.00)
LCH (D50)
lch(66.99 0.00 0.00)
Display P3
color(display-p3 0.6392 0.6392 0.6392)
Linear sRGB
color(srgb-linear 0.3663 0.3663 0.3663)

Gamut: sRGB and Display P3

#A3A3A3 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.195 and Display P3 reaches 0.252; this color uses 0% of the sRGB chroma available.

CSS snippets

.element {
  color: #a3a3a3;
  color: rgb(163 163 163);
  color: hsl(0 0% 64%);
  color: oklch(0.715 0.000 0.0);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.715 0.000 0.0);
}
/* arbitrary values */
class="text-[#a3a3a3] bg-[oklch(0.715_0.000_0.0)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.6392 0.6392 0.6392); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #a3a3a3 calc(l - 0.1) c h); }

Nearby colors

Closest colors in the Tailwind and CSS named palettes (OKLab distance).

Lighter and darker, same hue and chroma

  • #B6B6B6 · oklch(0.775 0.000 0.0) · ΔL +0.06
  • #919191 · oklch(0.655 0.000 0.0) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?