RGB to HEX: #701A75

Also known as: Tailwind v3 fuchsia-900

Result

rgb(112 26 117) → #701A75

Values are shown at full precision, so converting back gives exactly #701a75. 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 = 112 = 7×16 + 0 → 70
    G = 26 = 1×16 + 10 → 1A
    B = 117 = 7×16 + 5 → 75
  2. 2. pairs → HEX

    70 1A 75 → #701A75

All formats

HEX
#701a75
RGB
rgb(112 26 117)
RGB (legacy)
rgb(112, 26, 117)
HSL
hsl(296.70 63.64% 28.04%) → hsl(297 64% 28%)
HWB
hwb(297 10% 54%)
OKLCH
oklch(0.401 0.160 325.6) · oklch(40.1% 0.160 325.6)
OKLab
oklab(0.401 0.132 -0.090)
Lab (D50)
lab(27.91 45.71 -32.39)
LCH (D50)
lch(27.91 56.02 324.67)
Display P3
color(display-p3 0.4032 0.1302 0.4436)
Linear sRGB
color(srgb-linear 0.1620 0.0103 0.1779)

Gamut: sRGB and Display P3

#701A75 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.187 and Display P3 reaches 0.203; this color uses 86% of the sRGB chroma available.

CSS snippets

.element {
  color: #701a75;
  color: rgb(112 26 117);
  color: hsl(297 64% 28%);
  color: oklch(0.401 0.160 325.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.401 0.160 325.6);
}
/* arbitrary values */
class="text-[#701a75] bg-[oklch(0.401_0.160_325.6)]"

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

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

  • #832E87 · oklch(0.461 0.160 325.6) · ΔL +0.06
  • #5E0063 · oklch(0.341 0.160 325.6) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?