RGB naar HEX: #FFDF20

Ook bekend als: Tailwind yellow-300

Resultaat

rgb(255 223 32) → #FFDF20

Waarden staan op volle precisie, dus terugrekenen geeft exact #ffdf20. 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. base 10 → base 16

    R = 255 = 15×16 + 15 → FF
    G = 223 = 13×16 + 15 → DF
    B = 32 = 2×16 + 0 → 20
  2. 2. pairs → HEX

    FF DF 20 → #FFDF20

Alle formaten

HEX
#ffdf20
RGB
rgb(255 223 32)
RGB (legacy)
rgb(255, 223, 32)
HSL
hsl(51.39 100.00% 56.27%) → hsl(51 100% 56%)
HWB
hwb(51 13% 0%)
OKLCH
oklch(0.903 0.182 98.3) · oklch(90.3% 0.182 98.3)
OKLab
oklab(0.903 -0.026 0.180)
Lab (D50)
lab(89.50 -0.66 84.31)
LCH (D50)
lch(89.50 84.31 90.45)
Display P3
color(display-p3 0.9793 0.8791 0.3202)
Linear sRGB
color(srgb-linear 1.0000 0.7379 0.0144)

Gamut: sRGB en Display P3

#FFDF20 is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.182 en Display P3 van 0.216; deze kleur gebruikt 100% van de beschikbare sRGB-chroma.

CSS-snippets

.element {
  color: #ffdf20;
  color: rgb(255 223 32);
  color: hsl(51 100% 56%);
  color: oklch(0.903 0.182 98.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.903 0.182 98.3);
}
/* arbitrary values */
class="text-[#ffdf20] bg-[oklch(0.903_0.182_98.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9793 0.8791 0.3202); }
}

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

  • #FFF344 · oklch(0.963 0.182 98.3) · ΔL +0.06
  • #EBCB00 · oklch(0.843 0.182 98.3) · ΔL −0.06

Openen in de studio

Andere converters voor deze kleur

Alle converters →