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
Cornsilk in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #fff8dc | |
|---|---|---|
| RGB | rgb(255 248 220) | |
| RGB legacy | rgb(255, 248, 220) | |
| RGB percent | rgb(100% 97.25% 86.27%) | |
| HSL | hsl(48 100% 93.1%) | |
| HSL legacy | hsl(48, 100%, 93.1%) | |
| HSV / HSB | hsv(48, 13.7%, 100%) | |
| HWB | hwb(48 86.3% 0%) | |
| Nearest name | cornsilk | |
| CMYK | cmyk(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.
| OKLCh | oklch(97.73% 0.03726 95.439)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(97.73% -0.00353 0.03709) | |
| CIE LCh | lch(97.584% 14.419 93.798) | |
| CIE Lab | lab(97.584% -0.955 14.387) | |
| Display P3 | color(display-p3 0.9952 0.9735 0.8739) | |
| Rec. 2020 | color(rec2020 0.9838 0.97 0.8607) | |
| srgb-linear | color(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 — sRGB | vec3(1.0, 0.973, 0.863)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(1.0, 0.939, 0.716)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(1.0, 0.973, 0.863, 1.0) | |
| GLSL vec4 — linear | vec4(1.0, 0.939, 0.716, 1.0) | |
| GLSL ivec3 | ivec3(255, 248, 220) | |
| HLSL float3 — sRGB | float3(1.0, 0.973, 0.863) | |
| HLSL float3 — linear | float3(1.0, 0.939, 0.716) | |
| HLSL float4 — sRGB | float4(1.0, 0.973, 0.863, 1.0) | |
| HLSL half4 — sRGB | half4(1.0, 0.973, 0.863, 1.0) | |
| WGSL vec3f — sRGB | vec3f(1.0, 0.973, 0.863) | |
| WGSL vec4f — sRGB | vec4f(1.0, 0.973, 0.863, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(1.0, 0.939, 0.716) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new 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 Color32 | new Color32(255, 248, 220, 255) | |
| Unreal FLinearColor | FLinearColor(1.0f, 0.9387f, 0.7157f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(255, 248, 220, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(1, 0.973, 0.863, 1) | |
| Flutter Color | Color(0xFFFFF8DC)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(255, 248, 220) | |
| SwiftUI Color | Color(red: 1, green: 0.973, blue: 0.863) | |
| UIKit UIColor | UIColor(red: 1, green: 0.973, blue: 0.863, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0xFFF8DC | |
|---|---|---|
| 0x hex (ARGB) | 0xFFFFF8DC | |
| Array 0–1 | [1, 0.973, 0.863] | |
| Array 0–255 | [255, 248, 220] | |
| Decimal integer | 16775388 |
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.
| Pairing | WCAG 2 ratio | Level | APCA | Suitable for |
|---|---|---|---|---|
| Cornsilk on white | 1.07:1 | Fail | Lc 0 | Not usable for text |
| Cornsilk on black | 19.71:1 | AAA | Lc 103 | Body 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 matchbeigeΔEok 0.016lightyellowΔEok 0.017lightgoldenrodyellowΔEok 0.017oldlaceΔEok 0.018lemonchiffonΔEok 0.022