HEX to RGB: #7BF1A8

Also known as: Tailwind green-300

Result

#7BF1A8 → rgb(123 241 168)

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

    #7BF1A8 → 7B | F1 | A8
  2. 2. base 16 → base 10

    R = 7B₁₆ = 7×16 + 11 = 123
    G = F1₁₆ = 15×16 + 1 = 241
    B = A8₁₆ = 10×16 + 8 = 168
  3. 3. RGB

    rgb(123 241 168)

All formats

HEX
#7bf1a8
RGB
rgb(123 241 168)
RGB (legacy)
rgb(123, 241, 168)
HSL
hsl(142.88 80.82% 71.37%) → hsl(143 81% 71%)
HWB
hwb(143 48% 5%)
OKLCH
oklch(0.870 0.149 154.6) · oklch(87.0% 0.149 154.6)
OKLab
oklab(0.870 -0.135 0.064)
Lab (D50)
lab(86.92 -47.03 24.67)
LCH (D50)
lch(86.92 53.10 152.32)
Display P3
color(display-p3 0.6004 0.9343 0.6826)
Linear sRGB
color(srgb-linear 0.1981 0.8796 0.3916)

Gamut: sRGB and Display P3

#7BF1A8 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.217 and Display P3 reaches 0.265; this color uses 69% of the sRGB chroma available.

CSS snippets

.element {
  color: #7bf1a8;
  color: rgb(123 241 168);
  color: hsl(143 81% 71%);
  color: oklch(0.870 0.149 154.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.870 0.149 154.6);
}
/* arbitrary values */
class="text-[#7bf1a8] bg-[oklch(0.870_0.149_154.6)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.6004 0.9343 0.6826); }
}

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

  • #90FFBB · oklch(0.930 0.149 154.6) · ΔL +0.06
  • #66DD95 · oklch(0.810 0.149 154.6) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?