HEX to RGB: #4F39F6

Also known as: Tailwind indigo-600

Result

#4F39F6 → rgb(79 57 246)

Values are shown at full precision, so converting back gives exactly #4f39f6. 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. HEX → pairs

    #4F39F6 → 4F | 39 | F6
  2. 2. base 16 → base 10

    R = 4F₁₆ = 4×16 + 15 = 79
    G = 39₁₆ = 3×16 + 9 = 57
    B = F6₁₆ = 15×16 + 6 = 246
  3. 3. RGB

    rgb(79 57 246)

All formats

HEX
#4f39f6
RGB
rgb(79 57 246)
RGB (legacy)
rgb(79, 57, 246)
HSL
hsl(246.98 91.30% 59.41%) → hsl(247 91% 59%)
HWB
hwb(247 22% 4%)
OKLCH
oklch(0.510 0.262 276.9) · oklch(51.0% 0.262 276.9)
OKLab
oklab(0.510 0.032 -0.260)
Lab (D50)
lab(38.30 52.59 -92.32)
LCH (D50)
lch(38.30 106.25 299.67)
Display P3
color(display-p3 0.2966 0.2270 0.9277)
Linear sRGB
color(srgb-linear 0.0782 0.0409 0.9216)

Gamut: sRGB and Display P3

#4F39F6 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.278 and Display P3 reaches 0.298; this color uses 94% of the sRGB chroma available.

CSS snippets

.element {
  color: #4f39f6;
  color: rgb(79 57 246);
  color: hsl(247 91% 59%);
  color: oklch(0.510 0.262 276.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.510 0.262 276.9);
}
/* arbitrary values */
class="text-[#4f39f6] bg-[oklch(0.510_0.262_276.9)]"

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

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

  • #5D51FF · oklch(0.570 0.262 276.9) · ΔL +0.06
  • #431AE1 · oklch(0.450 0.262 276.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?