RGB to HEX: #A3004C

Also known as: Tailwind pink-800

Result

rgb(163 0 76) → #A3004C

Values are shown at full precision, so converting back gives exactly #a3004c. 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 = 0 = 0×16 + 0 → 00
    B = 76 = 4×16 + 12 → 4C
  2. 2. pairs → HEX

    A3 00 4C → #A3004C

All formats

HEX
#a3004c
RGB
rgb(163 0 76)
RGB (legacy)
rgb(163, 0, 76)
HSL
hsl(332.02 100.00% 31.96%) → hsl(332 100% 32%)
HWB
hwb(332 0% 36%)
OKLCH
oklch(0.461 0.185 4.1) · oklch(46.1% 0.185 4.1)
OKLab
oklab(0.461 0.185 0.013)
Lab (D50)
lab(35.18 59.80 6.31)
LCH (D50)
lch(35.18 60.13 6.03)
Display P3
color(display-p3 0.5849 0.1130 0.2976)
Linear sRGB
color(srgb-linear 0.3663 0.0000 0.0723)

Gamut: sRGB and Display P3

#A3004C is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.185 and Display P3 reaches 0.209; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #a3004c;
  color: rgb(163 0 76);
  color: hsl(332 100% 32%);
  color: oklch(0.461 0.185 4.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.461 0.185 4.1);
}
/* arbitrary values */
class="text-[#a3004c] bg-[oklch(0.461_0.185_4.1)]"

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

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #a3004c 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

  • #B8245D · oklch(0.521 0.185 4.1) · ΔL +0.06
  • #8E003C · oklch(0.401 0.185 4.1) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?