RGB to HEX: #0F766E

Also known as: Tailwind v3 teal-700

Result

rgb(15 118 110) → #0F766E

Values are shown at full precision, so converting back gives exactly #0f766e. 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 = 15 = 0×16 + 15 → 0F
    G = 118 = 7×16 + 6 → 76
    B = 110 = 6×16 + 14 → 6E
  2. 2. pairs → HEX

    0F 76 6E → #0F766E

All formats

HEX
#0f766e
RGB
rgb(15 118 110)
RGB (legacy)
rgb(15, 118, 110)
HSL
hsl(175.34 77.44% 26.08%) → hsl(175 77% 26%)
HWB
hwb(175 6% 54%)
OKLCH
oklch(0.511 0.086 186.4) · oklch(51.1% 0.086 186.4)
OKLab
oklab(0.511 -0.086 -0.010)
Lab (D50)
lab(44.29 -29.61 -3.80)
LCH (D50)
lch(44.29 29.86 187.31)
Display P3
color(display-p3 0.2093 0.4557 0.4304)
Linear sRGB
color(srgb-linear 0.0048 0.1812 0.1559)

Gamut: sRGB and Display P3

#0F766E is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.089 and Display P3 reaches 0.121; this color uses 96% of the sRGB chroma available.

CSS snippets

.element {
  color: #0f766e;
  color: rgb(15 118 110);
  color: hsl(175 77% 26%);
  color: oklch(0.511 0.086 186.4);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.511 0.086 186.4);
}
/* arbitrary values */
class="text-[#0f766e] bg-[oklch(0.511_0.086_186.4)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2093 0.4557 0.4304); }
}

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

  • #2B8880 · oklch(0.571 0.086 186.4) · ΔL +0.06
  • #00645D · oklch(0.451 0.086 186.4) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?