HEX to RGB: #00786F

Also known as: Tailwind teal-700

Result

#00786F → rgb(0 120 111)

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

    #00786F → 00 | 78 | 6F
  2. 2. base 16 → base 10

    R = 00₁₆ = 0×16 + 0 = 0
    G = 78₁₆ = 7×16 + 8 = 120
    B = 6F₁₆ = 6×16 + 15 = 111
  3. 3. RGB

    rgb(0 120 111)

All formats

HEX
#00786f
RGB
rgb(0 120 111)
RGB (legacy)
rgb(0, 120, 111)
HSL
hsl(175.50 100.00% 23.53%) → hsl(176 100% 24%)
HWB
hwb(176 0% 53%)
OKLCH
oklch(0.515 0.090 185.7) · oklch(51.5% 0.090 185.7)
OKLab
oklab(0.515 -0.090 -0.009)
Lab (D50)
lab(44.84 -31.25 -3.60)
LCH (D50)
lch(44.84 31.46 186.58)
Display P3
color(display-p3 0.2008 0.4632 0.4345)
Linear sRGB
color(srgb-linear 0.0000 0.1878 0.1590)

Gamut: sRGB and Display P3

#00786F is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.090 and Display P3 reaches 0.122; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #00786f;
  color: rgb(0 120 111);
  color: hsl(176 100% 24%);
  color: oklch(0.515 0.090 185.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.515 0.090 185.7);
}
/* arbitrary values */
class="text-[#00786f] bg-[oklch(0.515_0.090_185.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2008 0.4632 0.4345); }
}

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

  • #258A81 · oklch(0.575 0.090 185.7) · ΔL +0.06
  • #00665E · oklch(0.455 0.090 185.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?