RGB to HEX: #8EC5FF

Also known as: Tailwind blue-300

Result

rgb(142 197 255) → #8EC5FF

Values are shown at full precision, so converting back gives exactly #8ec5ff. 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 = 142 = 8×16 + 14 → 8E
    G = 197 = 12×16 + 5 → C5
    B = 255 = 15×16 + 15 → FF
  2. 2. pairs → HEX

    8E C5 FF → #8EC5FF

All formats

HEX
#8ec5ff
RGB
rgb(142 197 255)
RGB (legacy)
rgb(142, 197, 255)
HSL
hsl(210.80 100.00% 77.84%) → hsl(211 100% 78%)
HWB
hwb(211 56% 0%)
OKLCH
oklch(0.807 0.101 250.4) · oklch(80.7% 0.101 250.4)
OKLab
oklab(0.807 -0.034 -0.095)
Lab (D50)
lab(77.34 -7.17 -34.68)
LCH (D50)
lch(77.34 35.41 258.32)
Display P3
color(display-p3 0.6026 0.7666 0.9802)
Linear sRGB
color(srgb-linear 0.2705 0.5583 1.0000)

Gamut: sRGB and Display P3

#8EC5FF is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.101 and Display P3 reaches 0.110; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #8ec5ff;
  color: rgb(142 197 255);
  color: hsl(211 100% 78%);
  color: oklch(0.807 0.101 250.4);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.807 0.101 250.4);
}
/* arbitrary values */
class="text-[#8ec5ff] bg-[oklch(0.807_0.101_250.4)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.6026 0.7666 0.9802); }
}

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

  • #A1D9FF · oklch(0.867 0.101 250.4) · ΔL +0.06
  • #7BB2EB · oklch(0.747 0.101 250.4) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?