HEX to OKLCH: #60A5FA

Also known as: Tailwind v3 blue-400

Result

#60A5FA → oklch(0.714 0.143 254.6)

Values are shown at full precision, so converting back gives exactly #60a5fa. 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: 96/255 = 0.37647 → 0.116971  (((x + 0.055) / 1.055)^2.4)
    G: 165/255 = 0.64706 → 0.376262  (((x + 0.055) / 1.055)^2.4)
    B: 250/255 = 0.98039 → 0.955973  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.299200
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.383577
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.718572
  3. 3. cube root

    l′ = ∛0.299200 = 0.668838
    m′ = ∛0.383577 = 0.726581
    s′ = ∛0.718572 = 0.895688
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.14338
    H = atan2(b, a) = 254.624°
    L = 0.71374
  6. 6. OKLCH

    oklch(0.71374 0.14338 254.624)
    rounded: oklch(0.714 0.143 254.6)

All formats

HEX
#60a5fa
RGB
rgb(96 165 250)
RGB (legacy)
rgb(96, 165, 250)
HSL
hsl(213.12 93.90% 67.84%) → hsl(213 94% 68%)
HWB
hwb(213 38% 2%)
OKLCH
oklch(0.714 0.143 254.6) · oklch(71.4% 0.143 254.6)
OKLab
oklab(0.714 -0.038 -0.138)
Lab (D50)
lab(66.04 -2.92 -49.75)
LCH (D50)
lch(66.04 49.83 266.64)
Display P3
color(display-p3 0.4405 0.6403 0.9545)
Linear sRGB
color(srgb-linear 0.1170 0.3763 0.9560)

Gamut: sRGB and Display P3

#60A5FA is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.152 and Display P3 reaches 0.164; this color uses 94% of the sRGB chroma available.

CSS snippets

.element {
  color: #60a5fa;
  color: rgb(96 165 250);
  color: hsl(213 94% 68%);
  color: oklch(0.714 0.143 254.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.714 0.143 254.6);
}
/* arbitrary values */
class="text-[#60a5fa] bg-[oklch(0.714_0.143_254.6)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4405 0.6403 0.9545); }
}

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

  • #73B8FF · oklch(0.774 0.143 254.6) · ΔL +0.06
  • #4D92E5 · oklch(0.654 0.143 254.6) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?