HEX to RGB: #BBF451

Also known as: Tailwind lime-300

Result

#BBF451 → rgb(187 244 81)

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. HEX → pairs

    #BBF451 → BB | F4 | 51
  2. 2. base 16 → base 10

    R = BB₁₆ = 11×16 + 11 = 187
    G = F4₁₆ = 15×16 + 4 = 244
    B = 51₁₆ = 5×16 + 1 = 81
  3. 3. RGB

    rgb(187 244 81)

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?