⤺ color picker

#fff8dc Color Hex (corn silk)

Hex color #fff8dc, RGB(255, 248, 220) - also known as corn silk - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.

The hex color code #fff8dc is a shade of yellow. In a RGB color space it is composed of 100% red, 97.25% green and 86.27% blue. In HSL notation it has 48° hue, 100% saturation and 93.1% lightness. The process color (CMYK) is combination of 0% cyan, 2.75% magenta, 13.73% yellow and 0% key (black). The closest short hexadecimal code of #fff8dc is #ffd.

Color information

  • #fff8dc is a shade of yellow.
  • Red is dominant among the three primary colors (RGB).
  • CMYK color proportions:
    • Cyan: 0%
    • Magenta: 2.75%
    • Yellow: 13.73%
    • Key color - black: 0%
  • In the HSL model coordinates are:
    • Hue: 48° degrees
    • Saturation: 100%
    • Lightness: 93.1%
  • The values in the RGB color space are:
    • Red: 255 (100%)
    • Green: 248 (97.25%)
    • Blue: 220 (86.27%)


C: 0%, M: 2.75%, Y: 13.73%, K: 0%
R: 255, G: 248, B: 220
H: 48°, S: 100%, L: 93.1%

Color harmonies

#fff8dc color HTML and CSS codes

Example CSS code:

.setFontColor { color: #fff8dc; }
.setBackgroundColor { background-color: #fff8dc; }

#fff8dc text/font color

How to set font color?

<p style="color:#fff8dc">Font color is #fff8dc.</p>

Font color is #fff8dc.

Red was ruby, green was fluorescent, yellow was simply incandescent. Color was life. Color was everything. Color, you see, was the universal sign of magic.
- Tahereh Mafi, Furthermore

#fff8dc background color

How to set background color?

<div style="background-color:#fff8dc">Background color is #fff8dc.</div>

Background color is #fff8dc.

Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage