CSS named colour

Cornsilk

#fff8dc

A CSS named colour: cornsilk is valid anywhere a colour is expected.

RGB
rgb(255 248 220)
HSL
48°, 100%, 93%
OKLCh
97.7% 0.037 95.4

Open in the picker

Cornsilk in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#fff8dc
RGBrgb(255 248 220)
RGB legacyrgb(255, 248, 220)
RGB percentrgb(100% 97.25% 86.27%)
HSLhsl(48 100% 93.1%)
HSL legacyhsl(48, 100%, 93.1%)
HSV / HSBhsv(48, 13.7%, 100%)
HWBhwb(48 86.3% 0%)
Nearest namecornsilk
CMYKcmyk(0%, 2.7%, 13.7%, 0%)Naive conversion. Real print work needs an ICC profile.

Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.

OKLChoklch(97.73% 0.03726 95.439)Modern CSS colour space for even palettes — better than HSL when building scales.
OKLaboklab(97.73% -0.00353 0.03709)
CIE LChlch(97.584% 14.419 93.798)
CIE Lablab(97.584% -0.955 14.387)
Display P3color(display-p3 0.9952 0.9735 0.8739)
Rec. 2020color(rec2020 0.9838 0.97 0.8607)
srgb-linearcolor(srgb-linear 1 0.9387 0.7157)Light-linear sRGB — the same numbers a shader wants for maths.
CIE XYZ (D65)color(xyz-d65 0.8772 0.9356 0.8115)

ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.

GLSL vec3 — sRGBvec3(1.0, 0.973, 0.863)Encoded values. Use when writing straight to the framebuffer.
GLSL vec3 — linearvec3(1.0, 0.939, 0.716)Light-linear values. Use for lighting, blending and mixing.
GLSL vec4 — sRGBvec4(1.0, 0.973, 0.863, 1.0)
GLSL vec4 — linearvec4(1.0, 0.939, 0.716, 1.0)
GLSL ivec3ivec3(255, 248, 220)
HLSL float3 — sRGBfloat3(1.0, 0.973, 0.863)
HLSL float3 — linearfloat3(1.0, 0.939, 0.716)
HLSL float4 — sRGBfloat4(1.0, 0.973, 0.863, 1.0)
HLSL half4 — sRGBhalf4(1.0, 0.973, 0.863, 1.0)
WGSL vec3f — sRGBvec3f(1.0, 0.973, 0.863)
WGSL vec4f — sRGBvec4f(1.0, 0.973, 0.863, 1.0)
WGSL vec3<f32> — linearvec3<f32>(1.0, 0.939, 0.716)

Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.

Unity Colornew Color(1.0f, 0.973f, 0.863f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255.
Unity Color32new Color32(255, 248, 220, 255)
Unreal FLinearColorFLinearColor(1.0f, 0.9387f, 0.7157f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255.
Unreal FColorFColor(255, 248, 220, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor.
Godot ColorColor(1, 0.973, 0.863, 1)
Flutter ColorColor(0xFFFFF8DC)Packed ARGB, so alpha comes first.
Android ColorColor.rgb(255, 248, 220)
SwiftUI ColorColor(red: 1, green: 0.973, blue: 0.863)
UIKit UIColorUIColor(red: 1, green: 0.973, blue: 0.863, alpha: 1)

Raw valuesPacked integers and plain arrays.

0x hex0xFFF8DC
0x hex (ARGB)0xFFFFF8DC
Array 0–1[1, 0.973, 0.863]
Array 0–255[255, 248, 220]
Decimal integer16775388

Contrast and accessibility

WCAG 2 ratios are what audits and legislation reference. APCA is shown alongside because WCAG 2 is known to misjudge mid-tone backgrounds, and it is the basis of the WCAG 3 draft.

PairingWCAG 2 ratioLevelAPCASuitable for
Cornsilk on white1.07:1FailLc 0Not usable for text
Cornsilk on black19.71:1AAALc 103Body text at any size

Cornsilk text on a white background

Cornsilk text on a black background

White text on Cornsilk

Black text on Cornsilk

Tonal scale

Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.

  • 50#fdf8e3
  • 100#f3eed8
  • 200#e2ddc6
  • 300#ccc6ae
  • 400#b0aa90
  • 500#928b72
  • 600#78725a
  • 700#615b45
  • 800#4d4834
  • 900#3d3826
  • 950#231f11

Tints and shades

Mixed perceptually toward white and black, so the steps feel evenly spaced.

  • Tint 1#fff9e2
  • Tint 2#fffae8
  • Tint 3#fffcee
  • Tint 4#fffdf3
  • Tint 5#fffef9
  • Shade 1#c8c3ac
  • Shade 2#94907f
  • Shade 3#636054
  • Shade 4#36342d
  • Shade 5#0f0e0b

Colours that work with Cornsilk

Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.

  • #f1f6ff
  • #dcffff
  • #ffefff
  • #fff3de
  • #f1fde2

Closest CSS names

  • cornsilkexact match
  • beigeΔEok 0.016
  • lightyellowΔEok 0.017
  • lightgoldenrodyellowΔEok 0.017
  • oldlaceΔEok 0.018
  • lemonchiffonΔEok 0.022