RGB to HEX: #BEF264

Also known as: Tailwind v3 lime-300

Result

rgb(190 242 100) → #BEF264

Values are shown at full precision, so converting back gives exactly #bef264. 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. base 10 → base 16

    R = 190 = 11×16 + 14 → BE
    G = 242 = 15×16 + 2 → F2
    B = 100 = 6×16 + 4 → 64
  2. 2. pairs → HEX

    BE F2 64 → #BEF264

All formats

HEX
#bef264
RGB
rgb(190 242 100)
RGB (legacy)
rgb(190, 242, 100)
HSL
hsl(81.97 84.52% 67.06%) → hsl(82 85% 67%)
HWB
hwb(82 39% 5%)
OKLCH
oklch(0.897 0.179 126.7) · oklch(89.7% 0.179 126.7)
OKLab
oklab(0.897 -0.107 0.143)
Lab (D50)
lab(89.81 -32.84 61.06)
LCH (D50)
lch(89.81 69.33 118.28)
Display P3
color(display-p3 0.7865 0.9432 0.4721)
Linear sRGB
color(srgb-linear 0.5149 0.8879 0.1274)

Gamut: sRGB and Display P3

#BEF264 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.269; this color uses 78% of the sRGB chroma available.

CSS snippets

.element {
  color: #bef264;
  color: rgb(190 242 100);
  color: hsl(82 85% 67%);
  color: oklch(0.897 0.179 126.7);
}

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

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.7865 0.9432 0.4721); }
}

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

  • #D1FF79 · oklch(0.957 0.179 126.7) · ΔL +0.06
  • #ABDE4E · oklch(0.837 0.179 126.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?