HEX to RGB: #7C86FF

Also known as: Tailwind indigo-400

Result

#7C86FF → rgb(124 134 255)

Values are shown at full precision, so converting back gives exactly #7c86ff. 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

    #7C86FF → 7C | 86 | FF
  2. 2. base 16 → base 10

    R = 7C₁₆ = 7×16 + 12 = 124
    G = 86₁₆ = 8×16 + 6 = 134
    B = FF₁₆ = 15×16 + 15 = 255
  3. 3. RGB

    rgb(124 134 255)

All formats

HEX
#7c86ff
RGB
rgb(124 134 255)
RGB (legacy)
rgb(124, 134, 255)
HSL
hsl(235.42 100.00% 74.31%) → hsl(235 100% 74%)
HWB
hwb(235 49% 0%)
OKLCH
oklch(0.670 0.177 276.9) · oklch(67.0% 0.177 276.9)
OKLab
oklab(0.670 0.021 -0.175)
Lab (D50)
lab(59.56 21.48 -62.60)
LCH (D50)
lch(59.56 66.19 288.94)
Display P3
color(display-p3 0.4935 0.5242 0.9691)
Linear sRGB
color(srgb-linear 0.2016 0.2384 1.0000)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #7c86ff;
  color: rgb(124 134 255);
  color: hsl(235 100% 74%);
  color: oklch(0.670 0.177 276.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.670 0.177 276.9);
}
/* arbitrary values */
class="text-[#7c86ff] bg-[oklch(0.670_0.177_276.9)]"

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

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

  • #8D99FF · oklch(0.730 0.177 276.9) · ΔL +0.06
  • #6B73EA · oklch(0.610 0.177 276.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?