Sun yellow to HSL — Color Code

#ffdf22
Format Value
HEX #ffdf22
RGB rgb(255, 223, 34)
HSL hsl(51.3, 100%, 56.7%)
CMYK cmyk(0%, 12.5%, 86.7%, 0%)
HSV hsv(51.3, 86.7%, 100%)

sun yellow color harmonies

Tints & shades of sun yellow

Tints (lighter)

#ffe236 #ffe54a #ffe85e #ffeb72 #ffee86 #fff09b #fff3af #fff6c3 #fff9d7 #fffceb

Shades (darker)

#e8cb1f #d1b61c #b9a219 #a28e16 #8b7a13 #74650f #5d510c #463d09 #2e2906 #171403

Contrast & accessibility

The quick brown fox

On white · 1.33:1 · Fail

The quick brown fox

On black · 15.83:1 · AAA

Recommended text color: #000000

Use sun yellow in code

CSS color: #ffdf22;
SCSS $color: #ffdf22;
Tailwind bg-[#ffdf22]
Swift UIColor(red: 1.000, green: 0.875, blue: 0.133, alpha: 1)
Android Color.parseColor("#ffdf22")
Flutter Color(0xFFFFDF22)

Colors similar to sun yellow

Browse all Yellow colors →

What is the HSL code for sun yellow?

The CSS color sun yellow in HSL format is hsl(51.3, 100%, 56.7%). Use this value directly in CSS, SVG, and most design tools.

How do I use sun yellow in CSS?

To apply sun yellow in CSS:

  • Text color: color: hsl(51.3, 100%, 56.7%);
  • Background: background-color: hsl(51.3, 100%, 56.7%);
  • Border: border-color: hsl(51.3, 100%, 56.7%);

What are all the color format values for sun yellow?

FormatValue
HEX#ffdf22
RGBrgb(255, 223, 34)
HSLhsl(51.3, 100%, 56.7%)
CMYKcmyk(0%, 12.5%, 86.7%, 0%)

How do I convert sun yellow to HSL?

Select sun yellow from the color name list in our color converter. The HSL value — hsl(51.3, 100%, 56.7%) — appears instantly alongside HEX, RGB, HSL and CMYK.

What color family does sun yellow belong to?

sun yellow belongs to the yellow color family. It is a medium, vivid color with HSL values: hue 51.3°, saturation 100%, lightness 56.7%.

How do I create lighter and darker shades of sun yellow?

Lighter variant (lightness 71.7%): #ffea6f. Darker variant (lightness 41.7%): #d5b600. These values are computed by adjusting HSL lightness ±15% while keeping the same hue and saturation.

What is HSL used for?

HSL describes colors by hue (0–360°), saturation (0–100%) and lightness (0–100%). It is more intuitive for designers — easy to create lighter, darker or less saturated variants of any color.