CSS color names · Browns

Cornsilk color: hex #fff8dc, RGB and HSL

Cornsilk is the CSS keyword cornsilk, hex #fff8dc, rgb(255, 248, 220), hsl(48, 100%, 93%). It is a very light, fully saturated yellow in the browns family. Below: the colors that go with it, its tints and shades, how it reads as text, and a complete interface palette built from it.

CSS name
cornsilk
Hex
#fff8dc
RGB
rgb(255, 248, 220)
HSL
hsl(48, 100%, 93%)
On white
1.07:1 — fails AA; use as a fill, not text
On black
19.71:1 — passes AA for body text
.example {
  color: cornsilk;          /* keyword */
  color: #fff8dc;          /* hex */
  color: rgb(255, 248, 220); /* rgb */
  color: hsl(48, 100%, 93%); /* hsl */
}

What colors go with cornsilk

Each match keeps cornsilk's saturation and lightness and rotates only the hue, so the relationship is the wheel's and nothing else. Any of these can be an accent beside cornsilk as the primary; the harmony guides explain which rule suits which interface.

Complementary

The opposite hue, 180° away — the strongest contrast, best kept to one accent per screen.

#dce3ff

Split-complementary

The two neighbors of the complement, at 150° and 210° — most of the contrast with less tension, and two accents instead of one.

#dcf5ff
#e7dcff

Triadic

Two hues at 120° and 240° — three evenly spaced signals, the scheme charts and category colors want.

#dcfff8
#f8dcff

Analogous

The neighbors at −30° and +30° — calm and cohesive, with emphasis coming from weight and size rather than hue.

#ffe7dc
#f5ffdc

Tints and shades of cornsilk

Tints add lightness toward white; shades remove it toward black. The hue and saturation stay fixed, so every step still reads as cornsilk — these are the hover, pressed, disabled and surface variants a single brand color needs.

Tints (lighter)

#fff9e2
#fffae8
#fffbed
#fffdf3
#fffef9

Shades (darker)

#ffe88d
#ffd83e
#eebe00
#9e7f00
#4f3f00

A UI color palette built from cornsilk

The eight semantic roles an interface actually uses, derived from cornsilk as the primary with the split-complementary rule: secondary and accent rotate around the wheel, and the five neutrals take the hue at lightness steps tuned for light and dark mode. This is the same derivation the palette generator runs — open it there to change the rule, drag the anchors, or export the set as CSS variables.

Light mode
primary
#fff8dc
secondary
#dcf5ff
accent
#e7dcff
background
#fdfdfc
surface
#f7f6f3
text
#221f11
muted
#8f8456
border
#ece9df
Dark mode
primary
#fff8dc
secondary
#dcf5ff
accent
#e7dcff
background
#1b180e
surface
#282415
text
#f6f6f3
muted
#b8b094
border
#494227

Using cornsilk in an interface

Browns are muted oranges, and they behave like neutrals with warmth: the light ones make paper-like page backgrounds, the mid tones make borders and muted text, and the dark ones can carry body text. Brands that want to feel crafted or organic lean on this family. Whichever role cornsilk takes, define it once as a token rather than repeating the keyword: the semantic palette guide covers the eight roles, and the guides to complementary, triadic and the other color schemes explain how to weight the matches above.

What is the hex code for Cornsilk?
Cornsilk is #fff8dc. In CSS the keyword cornsilk, the hex #fff8dc, rgb(255, 248, 220) and hsl(48, 100%, 93%) all paint the same color.
What colors go with Cornsilk?
Its complement is #dce3ff, the split-complementary pair is #dcf5ff and #e7dcff, the triadic partners are #dcfff8 and #f8dcff, and the analogous neighbors are #ffe7dc and #f5ffdc. In an interface, use Cornsilk for most colored elements and one of these for a single accent, at roughly an 80/20 split.
What is the opposite of Cornsilk on the color wheel?
The opposite (complementary) color is #dce3ff, the same saturation and lightness rotated 180° around the HSL wheel. Complementary pairs give the strongest contrast, which is why the complement should be used sparingly rather than at equal weight.
Can I use Cornsilk for text?
Cornsilk as text on white has a contrast ratio of 1.07:1, which fails WCAG AA for body text (4.5:1) and for large text (3:1). On black it is 19.71:1, which passes for body text. Use it as text on dark surfaces, or as a fill with dark text on top.

Similar named colors

More browns

We'd like to use Google cookies to understand how Nodlume is used and to measure our advertising. Nothing loads until you choose, and declining does not affect anything in the app.