CSS named colour
Moccasin
#ffe4b5
A CSS named colour: moccasin is valid anywhere a colour is expected.
- RGB
- rgb(255 228 181)
- HSL
- 38°, 100%, 85%
- OKLCh
- 93.0% 0.068 81.4
Moccasin in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #ffe4b5 | |
|---|---|---|
| RGB | rgb(255 228 181) | |
| RGB legacy | rgb(255, 228, 181) | |
| RGB percent | rgb(100% 89.41% 70.98%) | |
| HSL | hsl(38.1 100% 85.5%) | |
| HSL legacy | hsl(38.1, 100%, 85.5%) | |
| HSV / HSB | hsv(38.1, 29%, 100%) | |
| HWB | hwb(38.1 71% 0%) | |
| Nearest name | moccasin | |
| CMYK | cmyk(0%, 10.6%, 29%, 0%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(92.962% 0.06754 81.379)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(92.962% 0.01012 0.06677) | |
| CIE LCh | lch(91.984% 26.978 80.26) | |
| CIE Lab | lab(91.984% 4.564 26.589) | |
| Display P3 | color(display-p3 0.9823 0.8979 0.7314) | |
| Rec. 2020 | color(rec2020 0.9506 0.8881 0.7044) | |
| srgb-linear | color(srgb-linear 1 0.7758 0.4621)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.7732 0.8008 0.551) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(1.0, 0.894, 0.71)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(1.0, 0.776, 0.462)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(1.0, 0.894, 0.71, 1.0) | |
| GLSL vec4 — linear | vec4(1.0, 0.776, 0.462, 1.0) | |
| GLSL ivec3 | ivec3(255, 228, 181) | |
| HLSL float3 — sRGB | float3(1.0, 0.894, 0.71) | |
| HLSL float3 — linear | float3(1.0, 0.776, 0.462) | |
| HLSL float4 — sRGB | float4(1.0, 0.894, 0.71, 1.0) | |
| HLSL half4 — sRGB | half4(1.0, 0.894, 0.71, 1.0) | |
| WGSL vec3f — sRGB | vec3f(1.0, 0.894, 0.71) | |
| WGSL vec4f — sRGB | vec4f(1.0, 0.894, 0.71, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(1.0, 0.776, 0.462) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(1.0f, 0.894f, 0.71f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(255, 228, 181, 255) | |
| Unreal FLinearColor | FLinearColor(1.0f, 0.7758f, 0.4621f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(255, 228, 181, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(1, 0.894, 0.71, 1) | |
| Flutter Color | Color(0xFFFFE4B5)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(255, 228, 181) | |
| SwiftUI Color | Color(red: 1, green: 0.894, blue: 0.71) | |
| UIKit UIColor | UIColor(red: 1, green: 0.894, blue: 0.71, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0xFFE4B5 | |
|---|---|---|
| 0x hex (ARGB) | 0xFFFFE4B5 | |
| Array 0–1 | [1, 0.894, 0.71] | |
| Array 0–255 | [255, 228, 181] | |
| Decimal integer | 16770229 |
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 |
|---|---|---|---|---|
| Moccasin on white | 1.23:1 | Fail | Lc 12 | Not usable for text |
| Moccasin on black | 17.02:1 | AAA | Lc 92 | Body text at any size |
Moccasin text on a white background
Moccasin text on a black background
White text on Moccasin
Black text on Moccasin
Tonal scale
Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.
- 50#fff5d2
- 100#ffebc6
- 200#f0d9b3
- 300#dac299
- 400#bea67a
- 500#a0875b
- 600#856e44
- 700#6d5730
- 800#574421
- 900#463514
- 950#2a1d03
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#ffe9c2
- Tint 2#ffedce
- Tint 3#fff2da
- Tint 4#fff6e7
- Tint 5#fffbf3
- Shade 1#c8b38d
- Shade 2#948467
- Shade 3#635844
- Shade 4#362f23
- Shade 5#0f0c07
Colours that work with Moccasin
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #d4e9ff
- #b2f6fb
- #fddaff
- #ffdcc0
- #e9edb9
Closest CSS names
moccasinexact matchnavajowhiteΔEok 0.015bisqueΔEok 0.019wheatΔEok 0.022peachpuffΔEok 0.028blanchedalmondΔEok 0.030