HEX to HSL: #BBF451

Also known as: Tailwind lime-300

Result

#BBF451 → hsl(81 88% 64%)

Values are shown at full precision, so converting back gives exactly #bbf451. 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.7333
    G = 0.9569
    B = 0.3176
  2. 2. max, min, Δ

    max = 0.9569
    min = 0.3176
    Δ = max − min = 0.6392
  3. 3. L

    L = (max + min) / 2 = 0.6373 = 63.73%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.8811 = 88.11%
  5. 5. H

    max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.3176 − 0.7333) / 0.6392 + 2) = 80.98°
  6. 6. HSL

    hsl(80.98 88.11% 63.73%)

All formats

HEX
#bbf451
RGB
rgb(187 244 81)
RGB (legacy)
rgb(187, 244, 81)
HSL
hsl(80.98 88.11% 63.73%) → hsl(81 88% 64%)
HWB
hwb(81 32% 4%)
OKLCH
oklch(0.898 0.197 126.7) · oklch(89.8% 0.197 126.7)
OKLab
oklab(0.898 -0.117 0.158)
Lab (D50)
lab(90.05 -35.80 68.67)
LCH (D50)
lch(90.05 77.44 117.53)
Display P3
color(display-p3 0.7793 0.9505 0.4221)
Linear sRGB
color(srgb-linear 0.4969 0.9047 0.0823)

Gamut: sRGB and Display P3

#BBF451 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.231 and Display P3 reaches 0.270; this color uses 85% of the sRGB chroma available.

CSS snippets

.element {
  color: #bbf451;
  color: rgb(187 244 81);
  color: hsl(81 88% 64%);
  color: oklch(0.898 0.197 126.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.898 0.197 126.7);
}
/* arbitrary values */
class="text-[#bbf451] bg-[oklch(0.898_0.197_126.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.7793 0.9505 0.4221); }
}

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

  • #CEFF68 · oklch(0.958 0.197 126.7) · ΔL +0.06
  • #A8E037 · oklch(0.838 0.197 126.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?