Cornsilk #FFF8DC

Cornsilk is a very light, muted yellow with hex code #FFF8DC and RGB rgb(255, 248, 220).

Aa

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

About this color

#FFF8DC is a very light, muted yellow. In OKLCH its lightness is 98%, its chroma 0.037 and its hue 95°. Its hue sits on the warm side of the wheel. It is the named color Cornsilk. Black text reads best on it, at 19.71:1.

Hue familyYellows
Lightnessvery light (98%)
Chromamuted (0.037)
Temperaturewarm
Nearest nameCornsilk
Black text19.71:1
White text1.06:1

Colors that go with Cornsilk

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

Analogous

Neighbouring hues, 30° either side.

Open the analogous palette in the generator

Color palettes with Cornsilk

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

Similar named colors

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

More about Cornsilk

How to make Cornsilk

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.

  • 1 part white

Recipe result: #FFFFFF, a difference of ΔE 0.043 from Cornsilk. That is close; add a little more of one paint to match.

What colors make gray? | Color mixing chart

Codes for Cornsilk in every format

HEX#FFF8DC
RGBrgb(255, 248, 220)
HSLhsl(48, 100%, 93%)
OKLCHoklch(97.7% 0.037 95.4)

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 #FFF8DC 1.06:1 Fails Lc 0.0 Not readable
Black text on #FFF8DC 19.71:1 AAA Lc 101.6 Preferred for body text
#FFF8DC text on white 1.06:1 Fails Lc 0.0 Not readable
#FFF8DC text on black 19.71:1 AAA Lc -103.0 Preferred for body text

Shades and tints of Cornsilk

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 50.

  1. Step 50

    50 (this color)

    #FFF8DC

    oklch(97.7% 0.037 95.4)

  2. Step 100

    100

    #ECEAE0

    oklch(93.6% 0.013 97.4)

  3. Step 200

    200

    #DED9C6

    oklch(88.4% 0.026 94.8)

  4. Step 300

    300

    #CAC19E

    oklch(80.9% 0.048 95.3)

  5. Step 400

    400

    #AFA169

    oklch(70.8% 0.076 95.8)

  6. Step 500

    500

    #9C893E

    oklch(63.2% 0.098 95.2)

  7. Step 600

    600

    #877217

    oklch(55.6% 0.106 95)

  8. Step 700

    700

    #725F05

    oklch(49% 0.099 95)

  9. Step 800

    800

    #5D4E0C

    oklch(42.7% 0.082 95.2)

  10. Step 900

    900

    #4C4114

    oklch(37.7% 0.064 95.3)

  11. Step 950

    950

    #2C260D

    oklch(26.9% 0.041 96)

Export this scale for Tailwind in the Tailwind colors tool

Cornsilk 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)#FEF6DA0.005
Deuteranopia (no green cones)#FFF9DD0.002
Tritanopia (no blue cones)#FFF4F00.032
Achromatopsia (no color)#F8F8F80.037

Use Cornsilk 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.