RGB to HEX: #A3A3A3

Also known as: Tailwind v3 neutral-400

Result

rgb(163 163 163) → #A3A3A3

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. base 10 → base 16

    R = 163 = 10×16 + 3 → A3
    G = 163 = 10×16 + 3 → A3
    B = 163 = 10×16 + 3 → A3
  2. 2. pairs → HEX

    A3 A3 A3 → #A3A3A3

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?