Moccasin #FFE4B5
Moccasin is one of the named colours in CSS, written moccasin. Black text reaches 17.02:1 on it, enough for body text.
Try on walls Preview on a website
Colour codes
| CSS keyword | moccasin |
|---|---|
| HEX | #FFE4B5 |
| RGB | rgb(255 228 181) |
| HSL | hsl(38 100% 85%) |
| OKLCH | oklch(93.0% 0.068 81.4) |
| White text | 1.23:1 · body text AA Fail |
| Black text | 17.02:1 · body text AA Pass |
Colours that go with Moccasin
The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Sulpher Yellow (#F5ECC2), close. These are the colours Wada paired it with, ranked by their contrast with Moccasin itself.
| Colour | HEX | Contrast with Moccasin | Body text AA |
|---|---|---|---|
| Black | #111314 | 15.10:1 | Pass |
| Deep Slate Olive | #253122 | 11.04:1 | Pass |
| Slate Color | #34454C | 8.10:1 | Pass |
| Vandar Poel's Blue | #064F6E | 7.24:1 | Pass |
| Pale Raw Umber | #71502F | 5.89:1 | Pass |
| Carmine Red | #A62C37 | 5.60:1 | Pass |
| Brick Red | #A84222 | 4.91:1 | Pass |
| Antwarp Blue | #007190 | 4.52:1 | Pass |
| Cossack Green | #437742 | 4.30:1 | Fail |
| Olive Green | #6B7140 | 4.19:1 | Fail |
| Olive | #837E31 | 3.41:1 | Fail |
| Eupatorium Purple | #BF5892 | 3.39:1 | Fail |
| Eugenia Red | B | #DA525D | 3.18:1 | Fail |
| Light Mauve | #9A72AA | 3.17:1 | Fail |
| Green Blue | #099197 | 3.09:1 | Fail |
| Oil Green | #819238 | 2.79:1 | Fail |
| Peach Red | #F15A30 | 2.72:1 | Fail |
| Light Brown Drab | #B59392 | 2.25:1 | Fail |
| Citrine | #B09F36 | 2.17:1 | Fail |
| Grenadine Pink | #F48067 | 2.09:1 | Fail |
| Laelia Pink | #CA92A8 | 2.08:1 | Fail |
| Salvia Blue | #97ACC8 | 1.88:1 | Fail |
| Coral Red | #F58E84 | 1.87:1 | Fail |
| Ochraceous Salmon | #D8A37B | 1.80:1 | Fail |
| Yellow Orange | #F99D1B | 1.72:1 | Fail |
| Night Green | #87C540 | 1.69:1 | Fail |
| Golden Yellow | #F3A257 | 1.68:1 | Fail |
| Pinkish Cinnamon | #EEB480 | 1.48:1 | Fail |
| Light Glaucous Blue | #A5C8D1 | 1.44:1 | Fail |
| Corinthian Pink | #F8B6BA | 1.37:1 | Fail |
| Yellow Green | #AFD472 | 1.36:1 | Fail |
| Cream Yellow | #FDBF68 | 1.33:1 | Fail |
| Pale King's Blue | #A7D4E4 | 1.29:1 | Fail |
| Cinnamon Buff | #FDC57E | 1.26:1 | Fail |
Palettes with Sulpher Yellow
- Combination #52 Sulpher Yellow · Black
- Combination #72 Sulpher Yellow · Pale King's Blue
- Combination #80 Sulpher Yellow · Light Mauve
- Combination #104 Carmine Red · Sulpher Yellow
- Combination #132 Sulpher Yellow · Golden Yellow · Citrine
- Combination #135 Sulpher Yellow · Cossack Green · Salvia Blue
- Combination #151 Sulpher Yellow · Yellow Orange · Vandar Poel's Blue
- Combination #208 Sulpher Yellow · Green Blue · Antwarp Blue
- Combination #246 Corinthian Pink · Brick Red · Sulpher Yellow · Cinnamon Buff
- Combination #254 Corinthian Pink · Sulpher Yellow · Olive · Laelia Pink
- Combination #270 Eugenia Red | B · Sulpher Yellow · Olive Green · Cossack Green
- Combination #294 Sulpher Yellow · Cream Yellow · Cossack Green · Salvia Blue
Shades and tints of Moccasin
Nine lightness steps in OKLCH that keep the hue of Moccasin. Chroma is reduced only where sRGB cannot show it.
- 100#FFF4E0
- 200#FCE1B2
- 300#E4CA9C
- 400#C7AD80
- 500#A78E62
- 600#866E42
- 700#685126
- 800#4C3607
- 900#2E1F00
:root {
--moccasin-100: #FFF4E0;
--moccasin-200: #FCE1B2;
--moccasin-300: #E4CA9C;
--moccasin-400: #C7AD80;
--moccasin-500: #A78E62;
--moccasin-600: #866E42;
--moccasin-700: #685126;
--moccasin-800: #4C3607;
--moccasin-900: #2E1F00;
}
Text that keeps Moccasin on screen
Text #2E1F00 on #FFE4B5 reaches 12.97:1, which passes WCAG AA for body text. Check it on a dashboard