OKLCH to HEX: #DB7093

Also known as: CSS palevioletred

Result

oklch(0.67792 0.13822 0.681) → #DB7093

Values are shown at full precision, so converting back gives exactly #db7093. 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.67792 0.13822 0.681)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.13821
    b = C·sin H = 0.00164
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.733052
    m′ = L − 0.1056·a − 0.0639·b = 0.663225
    s′ = L − 0.0895·a − 1.2915·b = 0.663431
  4. 4. cube

    l = 0.733052³ = 0.393917
    m = 0.663225³ = 0.291732
    s = 0.663431³ = 0.292003
  5. 5. LMS → linear sRGB

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

    R = 0.85883 × 255 = 219.00 → 219
    G = 0.43921 × 255 = 112.00 → 112
    B = 0.57647 × 255 = 147.00 → 147
  7. 7. RGB → HEX

    #DB7093

All formats

HEX
#db7093
RGB
rgb(219 112 147)
RGB (legacy)
rgb(219, 112, 147)
HSL
hsl(340.37 59.78% 64.90%) → hsl(340 60% 65%)
HWB
hwb(340 44% 14%)
OKLCH
oklch(0.678 0.138 0.7) · oklch(67.8% 0.138 0.7)
OKLab
oklab(0.678 0.138 0.002)
Lab (D50)
lab(60.91 45.40 1.21)
LCH (D50)
lch(60.91 45.42 1.53)
Display P3
color(display-p3 0.8044 0.4616 0.5744)
Linear sRGB
color(srgb-linear 0.7084 0.1620 0.2918)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #db7093;
  color: rgb(219 112 147);
  color: hsl(340 60% 65%);
  color: oklch(0.678 0.138 0.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.678 0.138 0.7);
}
/* arbitrary values */
class="text-[#db7093] bg-[oklch(0.678_0.138_0.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8044 0.4616 0.5744); }
}

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

  • #F083A5 · oklch(0.738 0.138 0.7) · ΔL +0.06
  • #C65E81 · oklch(0.618 0.138 0.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?