HEX to HSL: #0891B2

Also known as: Tailwind v3 cyan-600

Result

#0891B2 → hsl(192 91% 36%)

Values are shown at full precision, so converting back gives exactly #0891b2. 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. RGB ÷ 255

    R = 0.0314
    G = 0.5686
    B = 0.6980
  2. 2. max, min, Δ

    max = 0.6980
    min = 0.0314
    Δ = max − min = 0.6667
  3. 3. L

    L = (max + min) / 2 = 0.3647 = 36.47%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.9140 = 91.40%
  5. 5. H

    max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.0314 − 0.5686) / 0.6667 + 4) = 191.65°
  6. 6. HSL

    hsl(191.65 91.40% 36.47%)

All formats

HEX
#0891b2
RGB
rgb(8 145 178)
RGB (legacy)
rgb(8, 145, 178)
HSL
hsl(191.65 91.40% 36.47%) → hsl(192 91% 36%)
HWB
hwb(192 3% 30%)
OKLCH
oklch(0.609 0.111 221.7) · oklch(60.9% 0.111 221.7)
OKLab
oklab(0.609 -0.083 -0.074)
Lab (D50)
lab(55.13 -24.13 -26.99)
LCH (D50)
lch(55.13 36.21 228.20)
Display P3
color(display-p3 0.2534 0.5600 0.6843)
Linear sRGB
color(srgb-linear 0.0024 0.2831 0.4452)

Gamut: sRGB and Display P3

#0891B2 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.112 and Display P3 reaches 0.149; this color uses 99% of the sRGB chroma available.

CSS snippets

.element {
  color: #0891b2;
  color: rgb(8 145 178);
  color: hsl(192 91% 36%);
  color: oklch(0.609 0.111 221.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.609 0.111 221.7);
}
/* arbitrary values */
class="text-[#0891b2] bg-[oklch(0.609_0.111_221.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2534 0.5600 0.6843); }
}

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

  • #2EA4C5 · oklch(0.669 0.111 221.7) · ΔL +0.06
  • #007F9F · oklch(0.549 0.111 221.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?