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

Open in the picker

Moccasin in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#ffe4b5
RGBrgb(255 228 181)
RGB legacyrgb(255, 228, 181)
RGB percentrgb(100% 89.41% 70.98%)
HSLhsl(38.1 100% 85.5%)
HSL legacyhsl(38.1, 100%, 85.5%)
HSV / HSBhsv(38.1, 29%, 100%)
HWBhwb(38.1 71% 0%)
Nearest namemoccasin
CMYKcmyk(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.

OKLChoklch(92.962% 0.06754 81.379)Modern CSS colour space for even palettes — better than HSL when building scales.
OKLaboklab(92.962% 0.01012 0.06677)
CIE LChlch(91.984% 26.978 80.26)
CIE Lablab(91.984% 4.564 26.589)
Display P3color(display-p3 0.9823 0.8979 0.7314)
Rec. 2020color(rec2020 0.9506 0.8881 0.7044)
srgb-linearcolor(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 — sRGBvec3(1.0, 0.894, 0.71)Encoded values. Use when writing straight to the framebuffer.
GLSL vec3 — linearvec3(1.0, 0.776, 0.462)Light-linear values. Use for lighting, blending and mixing.
GLSL vec4 — sRGBvec4(1.0, 0.894, 0.71, 1.0)
GLSL vec4 — linearvec4(1.0, 0.776, 0.462, 1.0)
GLSL ivec3ivec3(255, 228, 181)
HLSL float3 — sRGBfloat3(1.0, 0.894, 0.71)
HLSL float3 — linearfloat3(1.0, 0.776, 0.462)
HLSL float4 — sRGBfloat4(1.0, 0.894, 0.71, 1.0)
HLSL half4 — sRGBhalf4(1.0, 0.894, 0.71, 1.0)
WGSL vec3f — sRGBvec3f(1.0, 0.894, 0.71)
WGSL vec4f — sRGBvec4f(1.0, 0.894, 0.71, 1.0)
WGSL vec3<f32> — linearvec3<f32>(1.0, 0.776, 0.462)

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

Unity Colornew 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 Color32new Color32(255, 228, 181, 255)
Unreal FLinearColorFLinearColor(1.0f, 0.7758f, 0.4621f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255.
Unreal FColorFColor(255, 228, 181, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor.
Godot ColorColor(1, 0.894, 0.71, 1)
Flutter ColorColor(0xFFFFE4B5)Packed ARGB, so alpha comes first.
Android ColorColor.rgb(255, 228, 181)
SwiftUI ColorColor(red: 1, green: 0.894, blue: 0.71)
UIKit UIColorUIColor(red: 1, green: 0.894, blue: 0.71, alpha: 1)

Raw valuesPacked integers and plain arrays.

0x hex0xFFE4B5
0x hex (ARGB)0xFFFFE4B5
Array 0–1[1, 0.894, 0.71]
Array 0–255[255, 228, 181]
Decimal integer16770229

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
Moccasin on white1.23:1FailLc 12Not usable for text
Moccasin on black17.02:1AAALc 92Body 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 match
  • navajowhiteΔEok 0.015
  • bisqueΔEok 0.019
  • wheatΔEok 0.022
  • peachpuffΔEok 0.028
  • blanchedalmondΔEok 0.030