HEX to RGB: #A5B4FC

Also known as: Tailwind v3 indigo-300

Result

#A5B4FC → rgb(165 180 252)

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

    #A5B4FC → A5 | B4 | FC
  2. 2. base 16 → base 10

    R = A5₁₆ = 10×16 + 5 = 165
    G = B4₁₆ = 11×16 + 4 = 180
    B = FC₁₆ = 15×16 + 12 = 252
  3. 3. RGB

    rgb(165 180 252)

All formats

HEX
#a5b4fc
RGB
rgb(165 180 252)
RGB (legacy)
rgb(165, 180, 252)
HSL
hsl(229.66 93.55% 81.76%) → hsl(230 94% 82%)
HWB
hwb(230 65% 1%)
OKLCH
oklch(0.785 0.104 274.7) · oklch(78.5% 0.104 274.7)
OKLab
oklab(0.785 0.009 -0.104)
Lab (D50)
lab(74.18 7.30 -37.79)
LCH (D50)
lch(74.18 38.49 280.93)
Display P3
color(display-p3 0.6580 0.7040 0.9667)
Linear sRGB
color(srgb-linear 0.3763 0.4564 0.9734)

Gamut: sRGB and Display P3

#A5B4FC is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.109 and Display P3 reaches 0.119; this color uses 96% of the sRGB chroma available.

CSS snippets

.element {
  color: #a5b4fc;
  color: rgb(165 180 252);
  color: hsl(230 94% 82%);
  color: oklch(0.785 0.104 274.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.785 0.104 274.7);
}
/* arbitrary values */
class="text-[#a5b4fc] bg-[oklch(0.785_0.104_274.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.6580 0.7040 0.9667); }
}

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

  • #B8C7FF · oklch(0.845 0.104 274.7) · ΔL +0.06
  • #93A1E8 · oklch(0.725 0.104 274.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?