RGB to HEX: #0891B2

Also known as: Tailwind v3 cyan-600

Result

rgb(8 145 178) → #0891B2

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. base 10 → base 16

    R = 8 = 0×16 + 8 → 08
    G = 145 = 9×16 + 1 → 91
    B = 178 = 11×16 + 2 → B2
  2. 2. pairs → HEX

    08 91 B2 → #0891B2

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?