OKLCH to HEX: #22D3EE

Also known as: Tailwind v3 cyan-400

Result

oklch(0.79712 0.13389 211.530) → #22D3EE

Values are shown at full precision, so converting back gives exactly #22d3ee. 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. input

    oklch(0.79712 0.13389 211.530)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.11412
    b = C·sin H = -0.07002
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.736779
    m′ = L − 0.1056·a − 0.0639·b = 0.813638
    s′ = L − 0.0895·a − 1.2915·b = 0.897758
  4. 4. cube

    l = 0.736779³ = 0.399955
    m = 0.813638³ = 0.538634
    s = 0.897758³ = 0.723566
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.015990
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.651418
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.855009
  6. 6. linear → sRGB, × 255

    R = 0.13330 × 255 = 33.99 → 34
    G = 0.82746 × 255 = 211.00 → 211
    B = 0.93334 × 255 = 238.00 → 238
  7. 7. RGB → HEX

    #22D3EE

All formats

HEX
#22d3ee
RGB
rgb(34 211 238)
RGB (legacy)
rgb(34, 211, 238)
HSL
hsl(187.94 85.71% 53.33%) → hsl(188 86% 53%)
HWB
hwb(188 13% 7%)
OKLCH
oklch(0.797 0.134 211.5) · oklch(79.7% 0.134 211.5)
OKLab
oklab(0.797 -0.114 -0.070)
Lab (D50)
lab(77.42 -36.05 -25.89)
LCH (D50)
lch(77.42 44.38 215.68)
Display P3
color(display-p3 0.3942 0.8154 0.9192)
Linear sRGB
color(srgb-linear 0.0160 0.6514 0.8550)

Gamut: sRGB and Display P3

#22D3EE is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.139 and Display P3 reaches 0.185; this color uses 97% of the sRGB chroma available.

CSS snippets

.element {
  color: #22d3ee;
  color: rgb(34 211 238);
  color: hsl(188 86% 53%);
  color: oklch(0.797 0.134 211.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.797 0.134 211.5);
}
/* arbitrary values */
class="text-[#22d3ee] bg-[oklch(0.797_0.134_211.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.3942 0.8154 0.9192); }
}

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

  • #45E7FF · oklch(0.857 0.134 211.5) · ΔL +0.06
  • #00BFDA · oklch(0.737 0.134 211.5) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?