RGB to HEX: #40E0D0

Also known as: CSS turquoise

Result

rgb(64 224 208) → #40E0D0

Values are shown at full precision, so converting back gives exactly #40e0d0. 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 = 64 = 4×16 + 0 → 40
    G = 224 = 14×16 + 0 → E0
    B = 208 = 13×16 + 0 → D0
  2. 2. pairs → HEX

    40 E0 D0 → #40E0D0

All formats

HEX
#40e0d0
RGB
rgb(64 224 208)
RGB (legacy)
rgb(64, 224, 208)
HSL
hsl(174.00 72.07% 56.47%) → hsl(174 72% 56%)
HWB
hwb(174 25% 12%)
OKLCH
oklch(0.822 0.131 185.1) · oklch(82.2% 0.131 185.1)
OKLab
oklab(0.822 -0.130 -0.012)
Lab (D50)
lab(80.96 -45.14 -4.68)
LCH (D50)
lch(80.96 45.38 185.92)
Display P3
color(display-p3 0.4547 0.8663 0.8148)
Linear sRGB
color(srgb-linear 0.0513 0.7454 0.6308)

Gamut: sRGB and Display P3

#40E0D0 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.145 and Display P3 reaches 0.196; this color uses 90% of the sRGB chroma available.

CSS snippets

.element {
  color: #40e0d0;
  color: rgb(64 224 208);
  color: hsl(174 72% 56%);
  color: oklch(0.822 0.131 185.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.822 0.131 185.1);
}
/* arbitrary values */
class="text-[#40e0d0] bg-[oklch(0.822_0.131_185.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4547 0.8663 0.8148); }
}

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

  • #5BF4E4 · oklch(0.882 0.131 185.1) · ΔL +0.06
  • #1BCCBD · oklch(0.762 0.131 185.1) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?