HEX to OKLCH: #0891B2

Also known as: Tailwind v3 cyan-600

Result

#0891B2 → oklch(0.609 0.111 221.7)

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. sRGB → linear

    R: 8/255 = 0.03137 → 0.002428  (÷ 12.92)
    G: 145/255 = 0.56863 → 0.283149  (((x + 0.055) / 1.055)^2.4)
    B: 178/255 = 0.69804 → 0.445201  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.175767
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.241067
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.360450
  3. 3. cube root

    l′ = ∛0.175767 = 0.560160
    m′ = ∛0.241067 = 0.622366
    s′ = ∛0.360450 = 0.711675
  4. 4. LMS′ → Oklab

    L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.60891
    a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.08280
    b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.07383
  5. 5. Oklab → OKLCH

    C = √(a² + b²) = 0.11094
    H = atan2(b, a) = 221.723°
    L = 0.60891
  6. 6. OKLCH

    oklch(0.60891 0.11094 221.723)
    rounded: oklch(0.609 0.111 221.7)

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?