OKLCH to HEX: #67787C

Also known as: Tailwind mist-500

Result

oklch(0.56018 0.02107 213.503) → #67787C

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

    oklch(0.56018 0.02107 213.503)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.01757
    b = C·sin H = -0.01163
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.550707
    m′ = L − 0.1056·a − 0.0639·b = 0.562777
    s′ = L − 0.0895·a − 1.2915·b = 0.576772
  4. 4. cube

    l = 0.550707³ = 0.167017
    m = 0.562777³ = 0.178242
    s = 0.576772³ = 0.191873
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.135630
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.187827
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.201565
  6. 6. linear → sRGB, × 255

    R = 0.40392 × 255 = 103.00 → 103
    G = 0.47060 × 255 = 120.00 → 120
    B = 0.48628 × 255 = 124.00 → 124
  7. 7. RGB → HEX

    #67787C

All formats

HEX
#67787c
RGB
rgb(103 120 124)
RGB (legacy)
rgb(103, 120, 124)
HSL
hsl(191.43 9.25% 44.51%) → hsl(191 9% 45%)
HWB
hwb(191 40% 51%)
OKLCH
oklch(0.560 0.021 213.5) · oklch(56.0% 0.021 213.5)
OKLab
oklab(0.560 -0.018 -0.012)
Lab (D50)
lab(49.14 -5.82 -4.43)
LCH (D50)
lch(49.14 7.31 217.27)
Display P3
color(display-p3 0.4167 0.4686 0.4839)
Linear sRGB
color(srgb-linear 0.1356 0.1878 0.2016)

Gamut: sRGB and Display P3

#67787C is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.098 and Display P3 reaches 0.131; this color uses 21% of the sRGB chroma available.

CSS snippets

.element {
  color: #67787c;
  color: rgb(103 120 124);
  color: hsl(191 9% 45%);
  color: oklch(0.560 0.021 213.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.560 0.021 213.5);
}
/* arbitrary values */
class="text-[#67787c] bg-[oklch(0.560_0.021_213.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4167 0.4686 0.4839); }
}

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

  • #788A8E · oklch(0.620 0.021 213.5) · ΔL +0.06
  • #56676B · oklch(0.500 0.021 213.5) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?