OKLCH to HEX: #155E75

Also known as: Tailwind v3 cyan-800

Result

oklch(0.45003 0.07707 224.283) → #155E75

Values are shown at full precision, so converting back gives exactly #155e75. 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.45003 0.07707 224.283)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.05517
    b = C·sin H = -0.05381
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.416550
    m′ = L − 0.1056·a − 0.0639·b = 0.459290
    s′ = L − 0.0895·a − 1.2915·b = 0.524463
  4. 4. cube

    l = 0.416550³ = 0.072277
    m = 0.459290³ = 0.096886
    s = 0.524463³ = 0.144259
  5. 5. LMS → linear sRGB

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

    R = 0.08238 × 255 = 21.01 → 21
    G = 0.36863 × 255 = 94.00 → 94
    B = 0.45882 × 255 = 117.00 → 117
  7. 7. RGB → HEX

    #155E75

All formats

HEX
#155e75
RGB
rgb(21 94 117)
RGB (legacy)
rgb(21, 94, 117)
HSL
hsl(194.37 69.57% 27.06%) → hsl(194 70% 27%)
HWB
hwb(194 8% 54%)
OKLCH
oklch(0.450 0.077 224.3) · oklch(45.0% 0.077 224.3)
OKLab
oklab(0.450 -0.055 -0.054)
Lab (D50)
lab(36.50 -15.90 -19.68)
LCH (D50)
lch(36.50 25.30 231.06)
Display P3
color(display-p3 0.1757 0.3631 0.4495)
Linear sRGB
color(srgb-linear 0.0075 0.1119 0.1779)

Gamut: sRGB and Display P3

#155E75 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.085 and Display P3 reaches 0.112; this color uses 91% of the sRGB chroma available.

CSS snippets

.element {
  color: #155e75;
  color: rgb(21 94 117);
  color: hsl(194 70% 27%);
  color: oklch(0.450 0.077 224.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.450 0.077 224.3);
}
/* arbitrary values */
class="text-[#155e75] bg-[oklch(0.450_0.077_224.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1757 0.3631 0.4495); }
}

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

  • #2B6F87 · oklch(0.510 0.077 224.3) · ΔL +0.06
  • #004D64 · oklch(0.390 0.077 224.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?