Colour reference
Cornsilk Cream
#fefae0
- RGB
- rgb(254 250 224)
- HSL
- 52°, 94%, 94%
- OKLCh
- 98.1% 0.034 99.8
Cornsilk Cream in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #fefae0 | |
|---|---|---|
| RGB | rgb(254 250 224) | |
| RGB legacy | rgb(254, 250, 224) | |
| RGB percent | rgb(99.61% 98.04% 87.84%) | |
| HSL | hsl(52 93.8% 93.7%) | |
| HSL legacy | hsl(52, 93.8%, 93.7%) | |
| HSV / HSB | hsv(52, 11.8%, 99.6%) | |
| HWB | hwb(52 87.8% 0.4%) | |
| Nearest name | cornsilk | |
| CMYK | cmyk(0%, 1.6%, 11.8%, 0.4%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(98.14% 0.03418 99.828)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(98.14% -0.00583 0.03368) | |
| CIE LCh | lch(98.075% 13.148 97.871) | |
| CIE Lab | lab(98.075% -1.8 13.024) | |
| Display P3 | color(display-p3 0.9933 0.9809 0.8885) | |
| Rec. 2020 | color(rec2020 0.9845 0.978 0.8769) | |
| srgb-linear | color(srgb-linear 0.9911 0.956 0.7454)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.8851 0.9482 0.8416) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.996, 0.98, 0.878)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.991, 0.956, 0.745)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.996, 0.98, 0.878, 1.0) | |
| GLSL vec4 — linear | vec4(0.991, 0.956, 0.745, 1.0) | |
| GLSL ivec3 | ivec3(254, 250, 224) | |
| HLSL float3 — sRGB | float3(0.996, 0.98, 0.878) | |
| HLSL float3 — linear | float3(0.991, 0.956, 0.745) | |
| HLSL float4 — sRGB | float4(0.996, 0.98, 0.878, 1.0) | |
| HLSL half4 — sRGB | half4(0.996, 0.98, 0.878, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.996, 0.98, 0.878) | |
| WGSL vec4f — sRGB | vec4f(0.996, 0.98, 0.878, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.991, 0.956, 0.745) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.996f, 0.98f, 0.878f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(254, 250, 224, 255) | |
| Unreal FLinearColor | FLinearColor(0.9911f, 0.956f, 0.7454f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(254, 250, 224, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.996, 0.98, 0.878, 1) | |
| Flutter Color | Color(0xFFFEFAE0)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(254, 250, 224) | |
| SwiftUI Color | Color(red: 0.996, green: 0.98, blue: 0.878) | |
| UIKit UIColor | UIColor(red: 0.996, green: 0.98, blue: 0.878, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0xFEFAE0 | |
|---|---|---|
| 0x hex (ARGB) | 0xFFFEFAE0 | |
| Array 0–1 | [0.996, 0.98, 0.878] | |
| Array 0–255 | [254, 250, 224] | |
| Decimal integer | 16710368 |
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 Cream on white | 1.05:1 | Fail | Lc 0 | Not usable for text |
| Cornsilk Cream on black | 19.96:1 | AAA | Lc 104 | Body text at any size |
Cornsilk Cream text on a white background
Cornsilk Cream text on a black background
White text on Cornsilk Cream
Black text on Cornsilk Cream
Tonal scale
Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.
- 50#fbf8e5
- 100#f1eeda
- 200#e0ddc8
- 300#cac7b0
- 400#aeaa93
- 500#908c75
- 600#76725c
- 700#5f5b47
- 800#4b4836
- 900#3b3828
- 950#222013
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#fefbe5
- Tint 2#fefcea
- Tint 3#fefdf0
- Tint 4#fffdf5
- Tint 5#fffefa
- Shade 1#c7c4af
- Shade 2#939181
- Shade 3#636156
- Shade 4#36352e
- Shade 5#0f0e0b
Colours that work with Cornsilk Cream
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #f4f7ff
- #e1ffff
- #fff0ff
- #fff6e1
- #f1fee6
Closest CSS names
cornsilkΔEok 0.006lightyellowΔEok 0.013oldlaceΔEok 0.017beigeΔEok 0.018lightgoldenrodyellowΔEok 0.020ivoryΔEok 0.021