CSS named color

Cornsilk #FFF8DC

cornsilk rgb(255, 248, 220)

Cornsilk is a pale amber with the hex code #FFF8DC, which converts to rgb(255, 248, 220). Open #FFF8DC in the converter to tweak it.

Cornsilk color values

HEX#FFF8DC
HEX (shorthand)—
RGBrgb(255, 248, 220)
RGBArgba(255, 248, 220, 1)
8-digit HEX#FFF8DCFF
HSLhsl(48, 100%, 93%)
HSV / HSB48°, 14%, 100%
CMYK0%, 3%, 14%, 0%
RGB 0–11, 0.973, 0.863
Decimal16775388
CSS keywordcornsilk

How #FFF8DC converts to RGB

Split the hex code into three pairs and read each pair as a base-16 number: FF → 255, F8 → 248, DC → 220. That gives rgb(255, 248, 220). The step-by-step guide explains the math.

Shades of Cornsilk

Mixed toward black in 10% steps. Click a swatch to copy its hex.

Tints of Cornsilk

Mixed toward white in 10% steps.

Color harmonies

Hue rotations of Cornsilk on the HSL color wheel, keeping saturation and lightness fixed. The color harmony guide explains when each scheme works.

Complementary

Analogous

Split-complementary

Triadic

Tetradic (square)

Contrast and accessibility

TextBackgroundRatioWCAG 2.x
White Cornsilk 1.06:1Fail
Black Cornsilk 19.71:1AAA

Use black text on a cornsilk background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.

Use Cornsilk in CSS

.element {
  color: cornsilk;                         /* keyword */
  background-color: #FFF8DC;            /* hex */
  border-color: rgb(255 248 220 / 50%);    /* 50% transparent */
}

Need it semi-transparent? Append an alpha byte: #FFF8DC80 is Cornsilk at 50% opacity. See RGBA & transparency.

Similar named colors

FAQ

What is the HEX code for Cornsilk?

The CSS named color cornsilk is #FFF8DC in hexadecimal. In CSS you can write color: cornsilk; or color: #FFF8DC; — both produce the same pixel.

What is Cornsilk in RGB?

Cornsilk is rgb(255, 248, 220): red 255, green 248, blue 220 on the 0–255 scale. As normalized 0–1 floats that is (1, 0.973, 0.863).

Is white or black text more readable on Cornsilk?

Black text is more readable. White on #FFF8DC has a contrast ratio of 1.06:1 (Fail), black on #FFF8DC has 19.71:1 (AAA). WCAG AA needs 4.5:1 for normal text.

Copied!