#FFF8DC

Named color: Cornsilk. oklch(97.7% 0.037 95.4), 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

Values

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

Tints and shades

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

#FFF8DC 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

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #FFF8DC

    #FFF8DC

    oklch(97.7% 0.037 95.4)

  • #F5F7FF

    #F5F7FF

    oklch(97.7% 0.011 274.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #FFF8DC

    #FFF8DC

    oklch(97.7% 0.037 95.4)

  • #FFF6ED

    #FFF6ED

    oklch(97.8% 0.015 67.6)

  • #F1FDE2

    #F1FDE2

    oklch(97.8% 0.038 126.7)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #FFF8DC

    #FFF8DC

    oklch(97.7% 0.037 95.4)

  • #F1F9FF

    #F1F9FF

    oklch(97.8% 0.012 239.9)

  • #FAF5FF

    #FAF5FF

    oklch(97.7% 0.014 308.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #FFF8DC

    #FFF8DC

    oklch(97.7% 0.037 95.4)

  • #EBFBFF

    #EBFBFF

    oklch(97.7% 0.018 214.4)

  • #FFF4FC

    #FFF4FC

    oklch(97.8% 0.016 335.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #FFF8DC

    #FFF8DC

    oklch(97.7% 0.037 95.4)

  • #E1FFFA

    #E1FFFA

    oklch(97.7% 0.032 184.6)

  • #F5F7FF

    #F5F7FF

    oklch(97.7% 0.011 274.9)

  • #FFF4F6

    #FFF4F6

    oklch(97.6% 0.012 4.7)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #FFF8DC, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #FFF8DC 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.