HEX to RGB: #7C7C67

Also known as: Tailwind olive-500

Result

#7C7C67 → rgb(124 124 103)

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

    #7C7C67 → 7C | 7C | 67
  2. 2. base 16 → base 10

    R = 7C₁₆ = 7×16 + 12 = 124
    G = 7C₁₆ = 7×16 + 12 = 124
    B = 67₁₆ = 6×16 + 7 = 103
  3. 3. RGB

    rgb(124 124 103)

All formats

HEX
#7c7c67
RGB
rgb(124 124 103)
RGB (legacy)
rgb(124, 124, 103)
HSL
hsl(60.00 9.25% 44.51%) → hsl(60 9% 45%)
HWB
hwb(60 40% 51%)
OKLCH
oklch(0.580 0.031 107.3) · oklch(58.0% 0.031 107.3)
OKLab
oklab(0.580 -0.009 0.030)
Lab (D50)
lab(51.56 -2.87 11.53)
LCH (D50)
lch(51.56 11.88 103.98)
Display P3
color(display-p3 0.4863 0.4863 0.4121)
Linear sRGB
color(srgb-linear 0.2016 0.2016 0.1356)

Gamut: sRGB and Display P3

#7C7C67 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.125 and Display P3 reaches 0.145; this color uses 25% of the sRGB chroma available.

CSS snippets

.element {
  color: #7c7c67;
  color: rgb(124 124 103);
  color: hsl(60 9% 45%);
  color: oklch(0.580 0.031 107.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.580 0.031 107.3);
}
/* arbitrary values */
class="text-[#7c7c67] bg-[oklch(0.580_0.031_107.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4863 0.4863 0.4121); }
}

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

  • #8E8E78 · oklch(0.640 0.031 107.3) · ΔL +0.06
  • #6B6B56 · oklch(0.520 0.031 107.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?