RGB to HEX: #06B6D4
Also known as: Tailwind v3 cyan-500
Result
rgb(6 182 212) → #06B6D4
Values are shown at full precision, so converting back gives exactly #06b6d4. 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 = 6 = 0×16 + 6 → 06 G = 182 = 11×16 + 6 → B6 B = 212 = 13×16 + 4 → D4
2. pairs → HEX
06 B6 D4 → #06B6D4
All formats
- HEX
- #06b6d4
- RGB
- rgb(6 182 212)
- RGB (legacy)
- rgb(6, 182, 212)
- HSL
- hsl(188.74 94.50% 42.75%) → hsl(189 95% 43%)
- HWB
- hwb(189 2% 17%)
- OKLCH
- oklch(0.715 0.126 215.2) · oklch(71.5% 0.126 215.2)
- OKLab
- oklab(0.715 -0.103 -0.073)
- Lab (D50)
- lab(67.70 -31.60 -26.68)
- LCH (D50)
- lch(67.70 41.35 220.17)
- Display P3
- color(display-p3 0.3219 0.7030 0.8172)
- Linear sRGB
- color(srgb-linear 0.0018 0.4678 0.6584)
Gamut: sRGB and Display P3
#06B6D4 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.126 and Display P3 reaches 0.168; this color uses 99% of the sRGB chroma available.
CSS snippets
.element {
color: #06b6d4;
color: rgb(6 182 212);
color: hsl(189 95% 43%);
color: oklch(0.715 0.126 215.2);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.715 0.126 215.2);
}
/* arbitrary values */
class="text-[#06b6d4] bg-[oklch(0.715_0.126_215.2)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.3219 0.7030 0.8172); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #06b6d4 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- cyan-500#00B8DB
- v3 sky-400#38BDF8
- lightseagreen#20B2AA
- sky-400#00BCFF
- deepskyblue#00BFFF
- v3 sky-500#0EA5E9
- darkturquoise#00CED1
- v3 teal-500#14B8A6
Lighter and darker, same hue and chroma
- #35C9E8 · oklch(0.775 0.126 215.2) · ΔL +0.06
- #00A3C0 · oklch(0.655 0.126 215.2) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?