HSL to HEX: #DDD6FF

Also known as: Tailwind violet-200

Result

hsl(250.24 100.00% 91.96%) → #DDD6FF

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

    H = 250.24°, S = 100.00%, L = 91.96%
  2. 2. C

    C = (1 − |2L − 1|) × S = 0.16080
  3. 3. X

    X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.02744   (H / 60° = 4.1707, sector 4)
  4. 4. m

    m = L − C / 2 = 0.83920
  5. 5. (R′, G′, B′) + m

    (R′, G′, B′) = (0.02744, 0.00000, 0.16080)
    R = round((0.02744 + 0.83920) × 255) = 221
    G = round((0.00000 + 0.83920) × 255) = 214
    B = round((0.16080 + 0.83920) × 255) = 255
  6. 6. RGB → HEX

    #DDD6FF

All formats

HEX
#ddd6ff
RGB
rgb(221 214 255)
RGB (legacy)
rgb(221, 214, 255)
HSL
hsl(250.24 100.00% 91.96%) → hsl(250 100% 92%)
HWB
hwb(250 84% 0%)
OKLCH
oklch(0.895 0.056 293.1) · oklch(89.5% 0.056 293.1)
OKLab
oklab(0.895 0.022 -0.052)
Lab (D50)
lab(87.17 8.35 -19.20)
LCH (D50)
lch(87.17 20.93 293.50)
Display P3
color(display-p3 0.8619 0.8401 0.9874)
Linear sRGB
color(srgb-linear 0.7231 0.6724 1.0000)

Gamut: sRGB and Display P3

#DDD6FF is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.056 and Display P3 reaches 0.062; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #ddd6ff;
  color: rgb(221 214 255);
  color: hsl(250 100% 92%);
  color: oklch(0.895 0.056 293.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.895 0.056 293.1);
}
/* arbitrary values */
class="text-[#ddd6ff] bg-[oklch(0.895_0.056_293.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8619 0.8401 0.9874); }
}

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

  • #F1EAFF · oklch(0.955 0.056 293.1) · ΔL +0.06
  • #CAC3EB · oklch(0.835 0.056 293.1) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?