HEX to HSL: #A5B4FC

Also known as: Tailwind v3 indigo-300

Result

#A5B4FC → hsl(230 94% 82%)

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. RGB ÷ 255

    R = 0.6471
    G = 0.7059
    B = 0.9882
  2. 2. max, min, Δ

    max = 0.9882
    min = 0.6471
    Δ = max − min = 0.3412
  3. 3. L

    L = (max + min) / 2 = 0.8176 = 81.76%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.9355 = 93.55%
  5. 5. H

    max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.6471 − 0.7059) / 0.3412 + 4) = 229.66°
  6. 6. HSL

    hsl(229.66 93.55% 81.76%)

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?