Find Color Codes

Cornsilk Color Codes

Cornsilk is a very light, vivid amber with the hex code #FFF8DC, RGB values of 255, 248, 220 and an HSL value of hsl(48, 100%, 93%).

HEX#FFF8DC
RGB255, 248, 220
HSLhsl(48, 100%, 93%)
HSV48°, 14%, 100%
CMYK0%, 3%, 14%, 0%
LAB97.46, -2.22, 14.29
CIELCHuv97.46, 22.42, 75.41°
Nearest Pantone
PMS 5807 C ΔE 10.4 · approximate
Nearest CSS name
cornsilk ΔE 0.0

Source CSS Color Module Level 4 keyword 'Cornsilk'

Cornsilk Color Hex Code

The Cornsilk color hex code is #FFF8DC. Those six digits are three pairs, FF for red, F8 for green and DC for blue, which is the same triplet a browser reads from the CSS value below.

#FFF8DC

Cornsilk Color RGB Code

The Cornsilk RGB code is rgb(255, 248, 220). Red carries the most light at 255 of 255, which is what puts this color where it sits on the wheel.

rgb(255, 248, 220)

Cornsilk Color HSV Code

The Cornsilk HSV code is 48°, 14%, 100%. Read it as a hue of 48 degrees, 14% saturation and 100% value, which is the form most color pickers use because moving one number changes one thing.

48°, 14%, 100%

Cornsilk Color CIELChuv Code

The Cornsilk CIELCHuv code is 97.46, 22.42, 75.41°. Unlike hex or RGB this one is perceptual: lightness 97 means light to the eye rather than to the screen, and chroma 22 is how far it sits from grey.

97.46, 22.42, 75.41°

Tonal scale

What are Cornsilk Color Palettes?

A shade mixes toward black, a tint toward white, a tone toward grey. Every step keeps the hue and is copy-ready.

Shades, toward black

Tints, toward white

Tones, toward grey

Open in the shades & tints generator →

Palettes

What are Cornsilk Color Palette Codes?

Each of these is a hue rotation from #FFF8DC. They are generated, not curated, so they are exact.

Complementary

Directly opposite sits #DCE3FF, a very light, vivid azure blue. No other pairing separates two hues further, so this is the one to reach for when a single element has to win attention. Both are saturated, so give the complement much less area than the base or the two will fight.

Analogous

#FFE7DC and #F5FFDC sit 30 degrees either side. All three share most of their hue, so the set reads as one family instead of three separate decisions. Good for backgrounds and for state variations that should not announce themselves.

Triadic

#DCFFF8 and #F8DCFF complete an even 120 degree split. Three fully independent hues, so one has to lead: keep this base dominant and let the other two appear in small quantities.

Split-complementary

Instead of the direct complement, this takes the two hues either side of it: #DCF5FF and #E7DCFF. Almost the same contrast, without the edge shimmer a true complementary pair produces at high saturation.

Tetradic

Two complementary pairs forming a rectangle: this base with #DCE3FF, and #DCFFE7 with #FFDCF5. The richest of the five and the hardest to balance, so treat the darkest of the four as the lead and hold the other three well back.

See these on the color wheel →

Accessibility

Contrast checker: is Cornsilk accessible?

Measured against white and against black, with a separate verdict for each element type. Small text, large text and UI components have different thresholds, so one pass or fail for the whole color would be wrong roughly a third of the time.

White background

1.07:1

1.07

contrast ratio on white background

ElementAAAAA
Small text needs 4.5:1 / 7:1 Fails Fails
Large text needs 3:1 / 4.5:1 Fails Fails
UI component needs 3:1 Fails n/a

Black background

19.71:1

19.71

contrast ratio on black background

ElementAAAAA
Small text needs 4.5:1 / 7:1 Passes Passes
Large text needs 3:1 / 4.5:1 Passes Passes
UI component needs 3:1 Passes n/a

At 1.07:1 against white, Cornsilk is a fill color rather than a text color. Use it for surfaces, borders and large display type, and set the copy in ink. Text placed on it should be black, which gives 19.71:1. It is a highly saturated color, so it will dominate anything it sits beside. Give it space rather than surrounding it with other strong colors.

Color vision

How Cornsilk looks with color blindness

Around 300 million people see color differently from the way it is specified. Each card shows the actual color beside how it appears, and how common that form of vision is.

Protanopia

About 1% of men
actual

#FCFCE3

Cornsilk shifts slightly here. ΔE 3.2

No working red cones. Reds darken sharply and drift toward the same muddy olive as green.

Deuteranopia

About 1% of men
actual

#FCFDE5

Cornsilk shifts slightly here. ΔE 3.8

No working green cones. With the milder deuteranomaly at nearer 6% of men, this is by far the most common form, and the one worth designing around.

Tritanopia

About 1 in 10,000
actual

#FFE9EA

Cornsilk shifts noticeably here. ΔE 15.9

No working blue cones. Blues shift toward green and yellows toward pink. Rare, and unlike the others it is not sex-linked, so it affects men and women equally.

Achromatopsia

About 1 in 30,000
actual

#F8F8F8

Cornsilk shifts noticeably here. ΔE 14.5

No color vision at all. Also a fair proxy for how the color survives a greyscale print or a failing screen.

Cornsilk is stable under the common forms of color blindness: to a deuteranope it reads as #FCFDE5, a shift of only ΔE 3.8, which is close to imperceptible. The widest shift is under tritanopia, at ΔE 15.9. The rule this leads to needs no simulator: never let color be the only thing carrying a message. Add a label, an icon, or a clear difference in lightness, and the problem disappears for everyone.

Snippets

Using Cornsilk in code

:root {
  --cornsilk: #FFF8DC;
}

.example {
  color: var(--cornsilk);
}