Swatchproof

Cornsilk #FFF8DC

Cornsilk is one of the named colours in CSS, written cornsilk. Black text reaches 19.71:1 on it, enough for body text.

Try on walls Preview on a website

Colour codes

CSS keywordcornsilk
HEX#FFF8DC
RGBrgb(255 248 220)
HSLhsl(48 100% 93%)
OKLCHoklch(97.7% 0.037 95.4)
White text1.07:1 · body text AA Fail
Black text19.71:1 · body text AA Pass

Colours that go with Cornsilk

The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Sulpher Yellow (#F5ECC2), close. These are the colours Wada paired it with, ranked by their contrast with Cornsilk itself.

ColourHEXContrast with CornsilkBody text AA
Black#11131417.49:1Pass
Deep Slate Olive#25312212.79:1Pass
Slate Color#34454C9.38:1Pass
Vandar Poel's Blue#064F6E8.38:1Pass
Pale Raw Umber#71502F6.82:1Pass
Carmine Red#A62C376.49:1Pass
Brick Red#A842225.69:1Pass
Antwarp Blue#0071905.24:1Pass
Cossack Green#4377424.98:1Pass
Olive Green#6B71404.85:1Pass
Olive#837E313.95:1Fail
Eupatorium Purple#BF58923.92:1Fail
Eugenia Red | B#DA525D3.69:1Fail
Light Mauve#9A72AA3.68:1Fail
Green Blue#0991973.58:1Fail
Oil Green#8192383.23:1Fail
Peach Red#F15A303.16:1Fail
Light Brown Drab#B593922.61:1Fail
Citrine#B09F362.51:1Fail
Grenadine Pink#F480672.42:1Fail
Laelia Pink#CA92A82.41:1Fail
Salvia Blue#97ACC82.18:1Fail
Coral Red#F58E842.17:1Fail
Ochraceous Salmon#D8A37B2.09:1Fail
Yellow Orange#F99D1B2.00:1Fail
Night Green#87C5401.95:1Fail
Golden Yellow#F3A2571.95:1Fail
Pinkish Cinnamon#EEB4801.72:1Fail
Light Glaucous Blue#A5C8D11.67:1Fail
Corinthian Pink#F8B6BA1.59:1Fail
Yellow Green#AFD4721.58:1Fail
Cream Yellow#FDBF681.54:1Fail
Pale King's Blue#A7D4E41.50:1Fail
Cinnamon Buff#FDC57E1.46:1Fail

Palettes with Sulpher Yellow

Shades and tints of Cornsilk

Nine lightness steps in OKLCH that keep the hue of Cornsilk. Chroma is reduced only where sRGB cannot show it.

:root {
  --cornsilk-100: #FDF6DA;
  --cornsilk-200: #ECE5C9;
  --cornsilk-300: #D5CEB3;
  --cornsilk-400: #B8B197;
  --cornsilk-500: #999279;
  --cornsilk-600: #787259;
  --cornsilk-700: #5B553E;
  --cornsilk-800: #403B24;
  --cornsilk-900: #27210B;
}

Text that keeps Cornsilk on screen

Text #27210B on #FFF8DC reaches 15.06:1, which passes WCAG AA for body text. Check it on a dashboard

Similar CSS colours