RGB to HEX: #0D9488

Also known as: Tailwind v3 teal-600

Result

rgb(13 148 136) → #0D9488

Values are shown at full precision, so converting back gives exactly #0d9488. 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 = 13 = 0×16 + 13 → 0D
    G = 148 = 9×16 + 4 → 94
    B = 136 = 8×16 + 8 → 88
  2. 2. pairs → HEX

    0D 94 88 → #0D9488

All formats

HEX
#0d9488
RGB
rgb(13 148 136)
RGB (legacy)
rgb(13, 148, 136)
HSL
hsl(174.67 83.85% 31.57%) → hsl(175 84% 32%)
HWB
hwb(175 5% 42%)
OKLCH
oklch(0.600 0.104 184.7) · oklch(60.0% 0.104 184.7)
OKLab
oklab(0.600 -0.103 -0.009)
Lab (D50)
lab(54.88 -35.98 -3.45)
LCH (D50)
lch(54.88 36.15 185.48)
Display P3
color(display-p3 0.2622 0.5716 0.5328)
Linear sRGB
color(srgb-linear 0.0040 0.2961 0.2462)

Gamut: sRGB and Display P3

#0D9488 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.106 and Display P3 reaches 0.143; this color uses 98% of the sRGB chroma available.

CSS snippets

.element {
  color: #0d9488;
  color: rgb(13 148 136);
  color: hsl(175 84% 32%);
  color: oklch(0.600 0.104 184.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.600 0.104 184.7);
}
/* arbitrary values */
class="text-[#0d9488] bg-[oklch(0.600_0.104_184.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2622 0.5716 0.5328); }
}

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

  • #30A79A · oklch(0.660 0.104 184.7) · ΔL +0.06
  • #008276 · oklch(0.540 0.104 184.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?