RGB to HEX: #7BF1A8
Also known as: Tailwind green-300
Result
rgb(123 241 168) → #7BF1A8
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. base 10 → base 16
R = 123 = 7×16 + 11 → 7B G = 241 = 15×16 + 1 → F1 B = 168 = 10×16 + 8 → A8
2. pairs → HEX
7B F1 A8 → #7BF1A8
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).
- v3 green-300#86EFAC
- lightgreen#90EE90
- emerald-300#5EE9B5
- v3 emerald-300#6EE7B7
- palegreen#98FB98
- mediumspringgreen#00FA9A
- aquamarine#7FFFD4
- emerald-200#A4F4CF
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
Guides: What is OKLCH?