HEX naar HSL: #DBEAFE

Ook bekend als: Tailwind blue-100, Tailwind v3 blue-100

Resultaat

#DBEAFE → hsl(214 95% 93%)

Waarden staan op volle precisie, dus terugrekenen geeft exact #dbeafe. De afgeronde vorm plak je gewoonlijk in CSS.

Stap-voor-stap berekening

Elk getal wordt uit de invoer berekend, er wordt niets opgezocht.

  1. 1. RGB ÷ 255

    R = 0.8588
    G = 0.9176
    B = 0.9961
  2. 2. max, min, Δ

    max = 0.9961
    min = 0.8588
    Δ = max − min = 0.1373
  3. 3. L

    L = (max + min) / 2 = 0.9275 = 92.75%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.9459 = 94.59%
  5. 5. H

    max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.8588 − 0.9176) / 0.1373 + 4) = 214.29°
  6. 6. HSL

    hsl(214.29 94.59% 92.75%)

Alle formaten

HEX
#dbeafe
RGB
rgb(219 234 254)
RGB (legacy)
rgb(219, 234, 254)
HSL
hsl(214.29 94.59% 92.75%) → hsl(214 95% 93%)
HWB
hwb(214 86% 0%)
OKLCH
oklch(0.932 0.032 255.6) · oklch(93.2% 0.032 255.6)
OKLab
oklab(0.932 -0.008 -0.031)
Lab (D50)
lab(92.02 -2.22 -11.50)
LCH (D50)
lch(92.02 11.71 259.06)
Display P3
color(display-p3 0.8697 0.9158 0.9885)
Linear sRGB
color(srgb-linear 0.7084 0.8228 0.9911)

Gamut: sRGB en Display P3

#DBEAFE is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.033 en Display P3 van 0.036; deze kleur gebruikt 96% van de beschikbare sRGB-chroma.

CSS-snippets

.element {
  color: #dbeafe;
  color: rgb(219 234 254);
  color: hsl(214 95% 93%);
  color: oklch(0.932 0.032 255.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.932 0.032 255.6);
}
/* arbitrary values */
class="text-[#dbeafe] bg-[oklch(0.932_0.032_255.6)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8697 0.9158 0.9885); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #dbeafe calc(l - 0.1) c h); }

Kleuren in de buurt

Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).

Lichter en donkerder, dezelfde tint en chroma

  • #EFFEFF · oklch(0.992 0.032 255.6) · ΔL +0.06
  • #C8D6EA · oklch(0.872 0.032 255.6) · ΔL −0.06

Openen in de studio

Andere converters voor deze kleur

Alle converters →