RGB to HEX: #DB7093

Also known as: CSS palevioletred

Result

rgb(219 112 147) → #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. base 10 → base 16

    R = 219 = 13×16 + 11 → DB
    G = 112 = 7×16 + 0 → 70
    B = 147 = 9×16 + 3 → 93
  2. 2. pairs → HEX

    DB 70 93 → #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?