Sun Yellow #FFDF22

Sun Yellow is a very light, vivid yellow with hex code #FFDF22 and RGB rgb(255, 223, 34).

Aa

Black text reads best on this color (15.83:1).

About this color

#FFDF22 is a very light, vivid yellow. In OKLCH its lightness is 90%, its chroma 0.181 and its hue 98°. Its hue sits on the warm side of the wheel. It is the named color Sun Yellow. Black text reads best on it, at 15.83:1.

Hue familyYellows
Lightnessvery light (90%)
Chromavivid (0.181)
Temperaturewarm
Nearest nameSun Yellow
Black text15.83:1
White text1.32:1

Colors that go with Sun Yellow

Matches found by rotating Sun Yellow around the OKLCH hue wheel, each labelled with the closest name in our list.

Complementary

The opposite hue (180°).

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

Open the analogous palette in the generator

Color palettes with Sun Yellow

Curated color palettes that contain a color within ΔE 0.06 (OKLab) of Sun Yellow, closest first.

Similar named colors

The eight named colors closest to Sun Yellow, with their ΔE distance.

More about Sun Yellow

How to make Sun Yellow

A starting recipe from common paint colors, found with a spectral paint model (the color mixer’s paint mode). Real pigments vary, so mix a small test batch and adjust.

  • 2 parts yellow
  • 1 part white

Recipe result: #FFD932, a difference of ΔE 0.018 from Sun Yellow. That is very close: most people will not see the difference.

What colors make yellow? | Color mixing chart

Codes for Sun Yellow in every format

HEX#FFDF22
RGBrgb(255, 223, 34)
HSLhsl(51, 100%, 57%)
OKLCHoklch(90.3% 0.181 98.2)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #FFDF22 1.32:1 Fails Lc -18.3 Dividers and decoration only
Black text on #FFDF22 15.83:1 AAA Lc 87.7 Fine for body text
#FFDF22 text on white 1.32:1 Fails Lc 15.9 Dividers and decoration only
#FFDF22 text on black 15.83:1 AAA Lc -87.8 Fine for body text

Shades and tints of Sun Yellow

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 200.

  1. Step 50

    50

    #FBF6DF

    oklch(97.1% 0.031 96.9)

  2. Step 100

    100

    #F5EBB8

    oklch(93.6% 0.067 98.2)

  3. Step 200

    200 (this color)

    #FFDF22

    oklch(90.3% 0.181 98.2)

  4. Step 300

    300

    #DDC000

    oklch(80.8% 0.167 98.2)

  5. Step 400

    400

    #B9A000

    oklch(70.6% 0.146 97.9)

  6. Step 500

    500

    #9E8900

    oklch(63% 0.13 98.3)

  7. Step 600

    600

    #857300

    oklch(55.6% 0.115 98.3)

  8. Step 700

    700

    #706100

    oklch(49.2% 0.102 98.7)

  9. Step 800

    800

    #5C4F00

    oklch(42.8% 0.088 98.3)

  10. Step 900

    900

    #4D4100

    oklch(37.6% 0.078 97.3)

  11. Step 950

    950

    #2E2600

    oklch(27% 0.056 97.1)

Export this scale for Tailwind in the Tailwind colors tool

Sun Yellow with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#F6D9000.021
Deuteranopia (no green cones)#FFE4350.012
Tritanopia (no blue cones)#FFCDBF0.163
Achromatopsia (no color)#DFDFDF0.181

Use Sun Yellow in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.