HEX to OKLCH: #93C5FD

Also known as: Tailwind v3 blue-300

Result

#93C5FD → oklch(0.809 0.096 251.8)

Values are shown at full precision, so converting back gives exactly #93c5fd. 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: 147/255 = 0.57647 → 0.291771  (((x + 0.055) / 1.055)^2.4)
    G: 197/255 = 0.77255 → 0.558340  (((x + 0.055) / 1.055)^2.4)
    B: 253/255 = 0.99216 → 0.982251  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.470263
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.547380
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.801856
  3. 3. cube root

    l′ = ∛0.470263 = 0.777643
    m′ = ∛0.547380 = 0.818018
    s′ = ∛0.801856 = 0.929035
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.09560
    H = atan2(b, a) = 251.813°
    L = 0.80907
  6. 6. OKLCH

    oklch(0.80907 0.09560 251.813)
    rounded: oklch(0.809 0.096 251.8)

All formats

HEX
#93c5fd
RGB
rgb(147 197 253)
RGB (legacy)
rgb(147, 197, 253)
HSL
hsl(211.70 96.36% 78.43%) → hsl(212 96% 78%)
HWB
hwb(212 58% 1%)
OKLCH
oklch(0.809 0.096 251.8) · oklch(80.9% 0.096 251.8)
OKLab
oklab(0.809 -0.030 -0.091)
Lab (D50)
lab(77.56 -6.25 -33.25)
LCH (D50)
lch(77.56 33.84 259.35)
Display P3
color(display-p3 0.6173 0.7671 0.9730)
Linear sRGB
color(srgb-linear 0.2918 0.5583 0.9823)

Gamut: sRGB and Display P3

#93C5FD is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.099 and Display P3 reaches 0.108; this color uses 97% of the sRGB chroma available.

CSS snippets

.element {
  color: #93c5fd;
  color: rgb(147 197 253);
  color: hsl(212 96% 78%);
  color: oklch(0.809 0.096 251.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.809 0.096 251.8);
}
/* arbitrary values */
class="text-[#93c5fd] bg-[oklch(0.809_0.096_251.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.6173 0.7671 0.9730); }
}

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

  • #A6D9FF · oklch(0.869 0.096 251.8) · ΔL +0.06
  • #80B2E9 · oklch(0.749 0.096 251.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?