HEX to RGB: #615FFF

Also known as: Tailwind indigo-500

Result

#615FFF → rgb(97 95 255)

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

    #615FFF → 61 | 5F | FF
  2. 2. base 16 → base 10

    R = 61₁₆ = 6×16 + 1 = 97
    G = 5F₁₆ = 5×16 + 15 = 95
    B = FF₁₆ = 15×16 + 15 = 255
  3. 3. RGB

    rgb(97 95 255)

All formats

HEX
#615fff
RGB
rgb(97 95 255)
RGB (legacy)
rgb(97, 95, 255)
HSL
hsl(240.75 100.00% 68.63%) → hsl(241 100% 69%)
HWB
hwb(241 37% 0%)
OKLCH
oklch(0.583 0.230 277.1) · oklch(58.3% 0.230 277.1)
OKLab
oklab(0.583 0.028 -0.229)
Lab (D50)
lab(48.17 37.62 -81.09)
LCH (D50)
lch(48.17 89.40 294.89)
Display P3
color(display-p3 0.3790 0.3728 0.9644)
Linear sRGB
color(srgb-linear 0.1195 0.1144 1.0000)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #615fff;
  color: rgb(97 95 255);
  color: hsl(241 100% 69%);
  color: oklch(0.583 0.230 277.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.583 0.230 277.1);
}
/* arbitrary values */
class="text-[#615fff] bg-[oklch(0.583_0.230_277.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.3790 0.3728 0.9644); }
}

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

  • #7173FF · oklch(0.643 0.230 277.1) · ΔL +0.06
  • #524AEA · oklch(0.523 0.230 277.1) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?